f2fs: fix to update iostat correctly in f2fs_filemap_fault()
[ Upstream commitbb34cc6ca8] In f2fs_filemap_fault(), it fixes to update iostat info only if VM_FAULT_LOCKED is tagged in return value of filemap_fault(). Fixes:8b83ac81f4("f2fs: support read iostat") Signed-off-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
df2571b4d5
commit
f3a220d975
+1
-1
@@ -41,7 +41,7 @@ static vm_fault_t f2fs_filemap_fault(struct vm_fault *vmf)
|
||||
vm_fault_t ret;
|
||||
|
||||
ret = filemap_fault(vmf);
|
||||
if (!ret)
|
||||
if (ret & VM_FAULT_LOCKED)
|
||||
f2fs_update_iostat(F2FS_I_SB(inode), APP_MAPPED_READ_IO,
|
||||
F2FS_BLKSIZE);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user