Re: [f2fs-dev] [PATCH v3] f2fs: show the list of donation files
From: Chao Yu
Date: Sat Aug 16 2025 - 03:05:48 EST
On 2025/8/16 00:20, Jaegeuk Kim via Linux-f2fs-devel wrote:
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,
Donation List
# of files : 2
File path Status Offset (kb) Length (kb) Cached pages (kb)
---
/local/tmp/test2 Donated 0 1048576 2097152
/local/tmp/test Evicted 0 1048576 1048576
Signed-off-by: Jaegeuk Kim <jaegeuk@xxxxxxxxxx>
Reviewed-by: Chao Yu <chao@xxxxxxxxxx>
Thanks,