f2fs: fix to update iostat correctly in f2fs_filemap_fault()
authorChao Yu <chao@kernel.org>
Sun, 10 Dec 2023 11:35:47 +0000 (19:35 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jan 2024 23:35:35 +0000 (15:35 -0800)
commit7bf0cba7f7e8ecd48fcc66960161408f3e88fc45
tree70fa2e2d93f5e009f44f795bdd30542670c5dafa
parent412eee2c894acbc8670f17417123dbc8f51ba237
f2fs: fix to update iostat correctly in f2fs_filemap_fault()

[ Upstream commit bb34cc6ca87ff78f9fb5913d7619dc1389554da6 ]

In f2fs_filemap_fault(), it fixes to update iostat info only if
VM_FAULT_LOCKED is tagged in return value of filemap_fault().

Fixes: 8b83ac81f428 ("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>
fs/f2fs/file.c