]> git.karo-electronics.de Git - linux-beck.git/commitdiff
NFSv4.1: Comment is now wrong and redundant to code
authorTom Haynes <Thomas.Haynes@primarydata.com>
Wed, 4 Jun 2014 22:36:05 +0000 (15:36 -0700)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 9 Jun 2014 13:54:29 +0000 (09:54 -0400)
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!

Signed-off-by: Tom Haynes <Thomas.Haynes@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/filelayout/filelayout.c

index a008e859041754129888ed95c35664a01e93e10c..c7fbc917ae3cb74a99d2048f12057b56195e23ad 100644 (file)
@@ -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 */