projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb61c2c
)
f2fs: should update REQ_TIME for direct write
author
Zhiguo Niu
<zhiguo.niu@unisoc.com>
Thu, 10 Aug 2023 08:40:00 +0000
(16:40 +0800)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Mon, 14 Aug 2023 20:42:28 +0000
(13:42 -0700)
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>
fs/f2fs/file.c
patch
|
blob
|
history
diff --git
a/fs/f2fs/file.c
b/fs/f2fs/file.c
index ff5494c255f6e8ad0c7ddc434e238523854c15c4..047942d2ec5da18a9f33842864dbe1e4bda35e3c 100644
(file)
--- a/
fs/f2fs/file.c
+++ b/
fs/f2fs/file.c
@@
-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;
}