mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 07:03:03 +02:00
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>
This commit is contained in:
parent
eb61c2cca2
commit
0cc81b1ad5
|
|
@ -4604,6 +4604,7 @@ static int f2fs_dio_write_end_io(struct kiocb *iocb, ssize_t size, int error,
|
|||
dec_page_count(sbi, F2FS_DIO_WRITE);
|
||||
if (error)
|
||||
return error;
|
||||
f2fs_update_time(sbi, REQ_TIME);
|
||||
f2fs_update_iostat(sbi, NULL, APP_DIRECT_IO, size);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user