Skip to contentSkip to conversation

Comment is now wrong and redundant to code

PATCH New Thomas Haynes 1 participant 1 message Jun 4, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Comment is now wrong and redundant to code

From: Tom Haynes <[email protected]>

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

---
 fs/nfs/filelayout/filelayout.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
fs/nfs/filelayout/filelayout.c +1 -4
index 7d479fd..b04ae035 100644
@@ -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 */
Signature · 1 line
1.9.3