f2fs: detect idle time depending on user behavior
This patch adds last time that user requested filesystem operations.
This information is used to detect whether system is idle or not later.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Conflicts:
Documentation/ABI/testing/sysfs-fs-f2fs
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index 390a759..eb66206 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -1597,6 +1597,7 @@
}
f2fs_put_page(page, 1);
+ f2fs_update_time(F2FS_I_SB(inode), REQ_TIME);
return copied;
}