diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2025-08-11 23:50:25 +0000 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2025-08-20 17:45:00 +0000 |
commit | f1a49c1b112b899643b01a5b86cf642a09a01cb6 (patch) | |
tree | 0259eb1465ee4bde7c7d3435776fc8d5b11eca84 /scripts/lib | |
parent | ff11d8701b77e303593fd86cf9ef74ef3ac4048e (diff) |
f2fs: show the list of donation files
This patch introduces a proc entry to show the currently enrolled donation
files.
- "File path" indicates a file.
- "Status"
a. "Donated" means the file is registed in the donation list by
fadvise(offset, length, POSIX_FADV_NOREUSE)
b. "Evicted" means the donated pages were reclaimed.
- "Offset (kb)" and "Length (kb) show the registered donation range.
- "Cached pages (kb)" shows the amount of cached pages in the inode page cache.
For example,
# of files : 2
File path Status Donation offset (kb) Donation size (kb) File cached size (kb)
---
/local/test2 Donated 0 1048576 2097152
/local/test Evicted 0 1048576 1048576
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'scripts/lib')
0 files changed, 0 insertions, 0 deletions