f2fs: write only the pages in range during defragment
authorFan Li <fanofcode.li@samsung.com>
Mon, 14 Dec 2015 05:34:00 +0000 (13:34 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 14 Dec 2015 18:17:54 +0000 (10:17 -0800)
commitd8fe4f0e74cb27e79b2b500ca6eae9f9b02748b4
treed09cf0bcb4e04f94a752ac5174a8ef169c0e669a
parente1c51b9f1df2f9efc2ec11488717e40cd12015f9
f2fs: write only the pages in range during defragment

@lend of filemap_write_and_wait_range is supposed to be a "offset
in bytes where the range ends (inclusive)". Subtract 1 to avoid
writing an extra page.

Signed-off-by: Fan li <fanofcode.li@samsung.com>
Reviewed-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c