msync: fix incorrect fstart calculation
Fix a regression caused by 7fc34a62 ("mm/msync.c: sync only the requested range in msync()"). xfstests generic/075 fail occured on ext4 data=journal mode because the intended range was not syncing due to wrong fstart calculation. Signed-off-by: NNamjae Jeon <namjae.jeon@samsung.com> Signed-off-by: NAshish Sangwan <a.sangwan@samsung.com> Reported-by: NEric Whitney <enwlinux@gmail.com> Tested-by: NEric Whitney <enwlinux@gmail.com> Acked-by: NMatthew Wilcox <matthew.r.wilcox@intel.com> Reviewed-by: NLukas Czerner <lczerner@redhat.com> Tested-by: NLukas Czerner <lczerner@redhat.com> Reviewed-by: NTheodore Ts'o <tytso@mit.edu> Signed-off-by: NAndrew Morton <akpm@linux-foundation.org> Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
Showing
想要评论请 注册 或 登录