f2fs: fix to wait all atomic written pages writeback
authorChao Yu <chao2.yu@samsung.com>
Fri, 17 Jul 2015 10:05:21 +0000 (18:05 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 5 Aug 2015 15:08:12 +0000 (08:08 -0700)
commita5f64b6aa69b5cc05e198291811a2f3faf95b463
treec529994d48adc21e3646871de638e249259993dc
parent6a2905443cf27f9c14889428f14fccfb98ed97f4
f2fs: fix to wait all atomic written pages writeback

This patch fixes the incorrect range (0, LONG_MAX) which is used
in ranged fsync. If we use LONG_MAX as the parameter for indicating
the end of file we want to synchronize, in 32-bits architecture
machine, these datas after 4GB offset may not be persisted in
storage after ->fsync returned.

Here, we alter LONG_MAX to LLONG_MAX to fix this issue.

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