summaryrefslogtreecommitdiff
path: root/fs/exportfs/Makefile
diff options
context:
space:
mode:
authorChao Yu <chao@kernel.org>2021-08-06 03:05:58 +0300
committerJaegeuk Kim <jaegeuk@kernel.org>2021-08-06 03:16:36 +0300
commit4b10651864429386ae931167d3518f37a8c762e0 (patch)
treeabcb63695be68a6e905ea50a6e02cb827c429139 /fs/exportfs/Makefile
parent94afd6d6e5253179c9b891d02081cc8355a11768 (diff)
downloadlinux-4b10651864429386ae931167d3518f37a8c762e0.tar.xz
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>
Diffstat (limited to 'fs/exportfs/Makefile')
0 files changed, 0 insertions, 0 deletions