Skip to content

Commit b0c3ba3

Browse files
committed
Merge tag 'fsnotify_for_v5.7-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs
Pull fanotify FAN_DIR_MODIFY disabling from Jan Kara: "A single patch that disables FAN_DIR_MODIFY support that was merged in this merge window. When discussing further functionality we realized it may be more logical to guard it with a feature flag or to call things slightly differently (or maybe not) so let's not set the API in stone for now." * tag 'fsnotify_for_v5.7-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs: fanotify: turn off support for FAN_DIR_MODIFY
2 parents 3301f6a + f179369 commit b0c3ba3

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

fs/notify/fanotify/fanotify.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ static int fanotify_handle_event(struct fsnotify_group *group,
520520
BUILD_BUG_ON(FAN_OPEN_EXEC != FS_OPEN_EXEC);
521521
BUILD_BUG_ON(FAN_OPEN_EXEC_PERM != FS_OPEN_EXEC_PERM);
522522

523-
BUILD_BUG_ON(HWEIGHT32(ALL_FANOTIFY_EVENT_BITS) != 20);
523+
BUILD_BUG_ON(HWEIGHT32(ALL_FANOTIFY_EVENT_BITS) != 19);
524524

525525
mask = fanotify_group_event_mask(group, iter_info, mask, data,
526526
data_type);

include/linux/fanotify.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@
4747
* Directory entry modification events - reported only to directory
4848
* where entry is modified and not to a watching parent.
4949
*/
50-
#define FANOTIFY_DIRENT_EVENTS (FAN_MOVE | FAN_CREATE | FAN_DELETE | \
51-
FAN_DIR_MODIFY)
50+
#define FANOTIFY_DIRENT_EVENTS (FAN_MOVE | FAN_CREATE | FAN_DELETE)
5251

5352
/* Events that can only be reported with data type FSNOTIFY_EVENT_INODE */
5453
#define FANOTIFY_INODE_EVENTS (FANOTIFY_DIRENT_EVENTS | \

0 commit comments

Comments
 (0)