From: Zach Brown Date: Mon, 6 Oct 2014 23:42:52 +0000 (-0700) Subject: nfsd: fix inclusive vfs_fsync_range() end X-Git-Tag: omap-for-v3.19/fixes-rc1~62^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e77a7b4f01b4c7b02c1c15b5d5b4ce4bd147b043;p=pandora-kernel.git nfsd: fix inclusive vfs_fsync_range() end The vfs_fsync_range() call during write processing got the end of the range off by one. The range is inclusive, not exclusive. The error has nfsd sync more data than requested -- it's correct but unnecessary overhead. The call during commit processing is correct so I copied that pattern in write processing. Maybe a helper would be nice but I kept it trivial. This is untested. I found it while reviewing code for something else entirely. Signed-off-by: Zach Brown Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed