target/file: fix inclusive vfs_fsync_range() end
authorZach Brown <zab@zabbo.net>
Mon, 6 Oct 2014 23:40:13 +0000 (16:40 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 8 Oct 2014 06:05:07 +0000 (23:05 -0700)
Both of the file target's calls to vfs_fsync_range() got the end offset
off by one.  The range is inclusive, not exclusive.  It would sync a bit
more data than was required.

The sync path already tested the length of the range and fell back to
LLONG_MAX so I copied that pattern in the rw path.

This is untested. I found the errors by inspection while following other
code.

Signed-off-by: Zach Brown <zab@zabbo.net>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>

No differences found