Skip to content

Commit

Permalink
fanotify: enable "evictable" inode marks
Browse files Browse the repository at this point in the history
[ Upstream commit 5f9d3bd ]

Now that the direct reclaim path is handled we can enable evictable
inode marks.

Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Amir Goldstein <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
Signed-off-by: Chuck Lever <[email protected]>
  • Loading branch information
amir73il authored and gregkh committed Apr 10, 2024
1 parent c47bab4 commit a97561b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion fs/notify/fanotify/fanotify_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -1814,7 +1814,7 @@ static int __init fanotify_user_setup(void)

BUILD_BUG_ON(FANOTIFY_INIT_FLAGS & FANOTIFY_INTERNAL_GROUP_FLAGS);
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,
SLAB_PANIC|SLAB_ACCOUNT);
Expand Down
1 change: 1 addition & 0 deletions include/linux/fanotify.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ extern struct ctl_table fanotify_table[]; /* for sysctl */
FAN_MARK_ONLYDIR | \
FAN_MARK_IGNORED_MASK | \
FAN_MARK_IGNORED_SURV_MODIFY | \
FAN_MARK_EVICTABLE | \
FAN_MARK_FLUSH)

/*
Expand Down

0 comments on commit a97561b

Please sign in to comment.