nfsd: fix bad offset use
authorKent Overstreet <koverstreet@google.com>
Fri, 22 Mar 2013 18:18:24 +0000 (11:18 -0700)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 22 Mar 2013 20:55:15 +0000 (16:55 -0400)
commite49dbbf3e770aa590a8a464ac4978a09027060b9
tree9fc8101f40b8205079f5313c8f8207cefb099959
parentac534ff2d5508bdff1358a55d88053da729ff46b
nfsd: fix bad offset use

vfs_writev() updates the offset argument - but the code then passes the
offset to vfs_fsync_range(). Since offset now points to the offset after
what was just written, this is probably not what was intended

Introduced by face15025ffdf664de95e86ae831544154d26c9c "nfsd: use
vfs_fsync_range(), not O_SYNC, for stable writes".

Signed-off-by: Kent Overstreet <koverstreet@google.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: stable@vger.kernel.org
Reviewed-by: Zach Brown <zab@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/vfs.c