Commit e64347a
f2fs: support POSIX_FADV_DONTNEED drop compressed page cache
Previously, compressed page cache drop when clean page cache, but
POSIX_FADV_DONTNEED can't clean compressed page cache because raw page
don't have private data, and won't call f2fs_invalidate_compress_pages.
This commit call f2fs_invalidate_compress_pages() directly in
f2fs_file_fadvise() for POSIX_FADV_DONTNEED case.
Signed-off-by: Fengnan Chang <changfengnan@vivo.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>1 parent d191786 commit e64347a
1 file changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4663 | 4663 | | |
4664 | 4664 | | |
4665 | 4665 | | |
4666 | | - | |
4667 | 4666 | | |
4668 | 4667 | | |
| 4668 | + | |
| 4669 | + | |
4669 | 4670 | | |
4670 | 4671 | | |
4671 | | - | |
4672 | 4672 | | |
4673 | 4673 | | |
4674 | 4674 | | |
| |||
4685 | 4685 | | |
4686 | 4686 | | |
4687 | 4687 | | |
4688 | | - | |
| 4688 | + | |
| 4689 | + | |
| 4690 | + | |
| 4691 | + | |
| 4692 | + | |
| 4693 | + | |
| 4694 | + | |
4689 | 4695 | | |
4690 | 4696 | | |
4691 | 4697 | | |
| |||
0 commit comments