mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
fanotify: enable "evictable" inode marks
Now that the direct reclaim path is handled we can enable evictable inode marks. Link: https://lore.kernel.org/r/20220422120327.3459282-17-amir73il@gmail.com Signed-off-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Jan Kara <jack@suse.cz>
This commit is contained in:
parent
e79719a2ca
commit
5f9d3bd520
@ -1787,7 +1787,7 @@ static int __init fanotify_user_setup(void)
|
|||||||
|
|
||||||
BUILD_BUG_ON(FANOTIFY_INIT_FLAGS & FANOTIFY_INTERNAL_GROUP_FLAGS);
|
BUILD_BUG_ON(FANOTIFY_INIT_FLAGS & FANOTIFY_INTERNAL_GROUP_FLAGS);
|
||||||
BUILD_BUG_ON(HWEIGHT32(FANOTIFY_INIT_FLAGS) != 12);
|
BUILD_BUG_ON(HWEIGHT32(FANOTIFY_INIT_FLAGS) != 12);
|
||||||
BUILD_BUG_ON(HWEIGHT32(FANOTIFY_MARK_FLAGS) != 9);
|
BUILD_BUG_ON(HWEIGHT32(FANOTIFY_MARK_FLAGS) != 10);
|
||||||
|
|
||||||
fanotify_mark_cache = KMEM_CACHE(fsnotify_mark,
|
fanotify_mark_cache = KMEM_CACHE(fsnotify_mark,
|
||||||
SLAB_PANIC|SLAB_ACCOUNT);
|
SLAB_PANIC|SLAB_ACCOUNT);
|
||||||
|
@ -66,6 +66,7 @@
|
|||||||
FAN_MARK_ONLYDIR | \
|
FAN_MARK_ONLYDIR | \
|
||||||
FAN_MARK_IGNORED_MASK | \
|
FAN_MARK_IGNORED_MASK | \
|
||||||
FAN_MARK_IGNORED_SURV_MODIFY | \
|
FAN_MARK_IGNORED_SURV_MODIFY | \
|
||||||
|
FAN_MARK_EVICTABLE | \
|
||||||
FAN_MARK_FLUSH)
|
FAN_MARK_FLUSH)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user