Hi Jaegeuk,
On 7/9/25 01:02, Matthew Wilcox (Oracle) wrote:
> Some more folio conversions for f2fs. Again, I have checked these patches
> build, but otherwise they are untested. There are three inline functions
> in fscrypt that I change to take a const struct folio pointer instead
> of a mutabl
When we need to alloc nat entry and set it dirty, we can directly add it to
dirty set list(or initialize its list_head for new_ne) instead of adding it
to clean list and make a move. Introduce init_dirty flag to do it.
Signed-off-by: wangzijie
---
fs/f2fs/node.c | 37
__lookup_nat_cache follows LRU manner to move clean nat entry, when nat
entries are going to be dirty, no need to move them to tail of lru list.
Introduce a parameter 'for_dirty' to avoid it.
Signed-off-by: wangzijie
---
v2:
- followed by Jaegeuk's suggestion to add a parameter in __lookup_nat_ca