]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit44947653e80584c87755f16ffa9d4d7711a06b2c
tree9fc8101f40b8205079f5313c8f8207cefb099959
parent707b10a03e05bf844dddaa473b6621952eb323e7
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 9596fc7049782d43ddadfc20f1e60af0278ab7ad "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