Home
last modified time | relevance | path

Searched hist:"4 b10651864429386ae931167d3518f37a8c762e0" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/fs/f2fs/
H A Dcheckpoint.cdiff 4b10651864429386ae931167d3518f37a8c762e0 Thu Aug 05 19:05:58 CDT 2021 Chao Yu <chao@kernel.org> f2fs: avoid unneeded memory allocation in __add_ino_entry()

__add_ino_entry() will allocate slab cache even if we have already
cached ino entry in radix tree, e.g. for case of multiple devices.

Let's check radix tree first under protection of rcu lock to see
whether we need to do slab allocation, it will mitigate memory
pressure from "f2fs_ino_entry" slab cache.

Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>