Skip to content

Commit 0cc81b1

Browse files
Zhiguo NiuJaegeuk Kim
authored andcommitted
f2fs: should update REQ_TIME for direct write
The sending interval of discard and GC should also consider direct write requests; filesystem is not idle if there is direct write. Signed-off-by: Zhiguo Niu <zhiguo.niu@unisoc.com> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
1 parent eb61c2c commit 0cc81b1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/f2fs/file.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4604,6 +4604,7 @@ static int f2fs_dio_write_end_io(struct kiocb *iocb, ssize_t size, int error,
46044604
dec_page_count(sbi, F2FS_DIO_WRITE);
46054605
if (error)
46064606
return error;
4607+
f2fs_update_time(sbi, REQ_TIME);
46074608
f2fs_update_iostat(sbi, NULL, APP_DIRECT_IO, size);
46084609
return 0;
46094610
}

0 commit comments

Comments
 (0)