* [PATCH] Comment is now wrong and redundant to code
@ 2014-06-04 22:36 Thomas Haynes
0 siblings, 0 replies; only message in thread
From: Thomas Haynes @ 2014-06-04 22:36 UTC (permalink / raw)
To: trond.myklebust, linux-nfs; +Cc: Tom Haynes
From: Tom Haynes <Thomas.Haynes@primarydata.com>
The save of the write offset was removed some time ago, so that
part of the comment is bogus.
The remainder is pretty self-evident.
So off with it!
This is based off of trond/testing
Signed-off-by: Tom Haynes <Thomas.Haynes@primarydata.com>
---
fs/nfs/filelayout/filelayout.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/fs/nfs/filelayout/filelayout.c b/fs/nfs/filelayout/filelayout.c
index 7d479fd..b04ae035 100644
--- a/fs/nfs/filelayout/filelayout.c
+++ b/fs/nfs/filelayout/filelayout.c
@@ -608,10 +608,7 @@ filelayout_write_pagelist(struct nfs_pgio_data *data, int sync)
fh = nfs4_fl_select_ds_fh(lseg, j);
if (fh)
data->args.fh = fh;
- /*
- * Get the file offset on the dserver. Set the write offset to
- * this offset and save the original offset.
- */
+
data->args.offset = filelayout_get_dserver_offset(lseg, offset);
/* Perform an asynchronous write */
--
1.9.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-06-04 22:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-04 22:36 [PATCH] Comment is now wrong and redundant to code Thomas Haynes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).