BACKPORT: FROMGIT: 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
Bug: 437194256
Bug: 442851870
Change-Id: I742fab6fdce42762ec2a13e62690f5e0c3dab849
Link: https://lore.kernel.org/linux-f2fs-devel/8ac33b02-b5ea-4c58-8e60-5411bf0ae62c@kernel.org/T/#t
(cherry picked from commit f1a49c1b
https: //git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git dev)
Reviewed-by:
Chao Yu <chao@kernel.org>
Signed-off-by:
Jaegeuk Kim <jaegeuk@kernel.org>
Loading
Please sign in to comment