Use more explicit FSNOTIFY_GROUP_FLAG_ prefix. Signed-off-by: Amir Goldstein --- fs/notify/fanotify/fanotify_user.c | 2 +- fs/notify/group.c | 4 ++-- fs/notify/inotify/inotify_user.c | 2 +- fs/notify/mark.c | 2 +- include/linux/fsnotify_backend.h | 4 ++-- kernel/audit_fsnotify.c | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/fs/notify/fanotify/fanotify_user.c b/fs/notify/fanotify/fanotify_user.c index 63c9759fc3b06..22c6424c334a0 100644 --- a/fs/notify/fanotify/fanotify_user.c +++ b/fs/notify/fanotify/fanotify_user.c @@ -1670,7 +1670,7 @@ SYSCALL_DEFINE2(fanotify_init, unsigned int, flags, unsigned int, event_f_flags) f_flags |= O_NONBLOCK; CLASS(fsnotify_group, group)(&fanotify_fsnotify_ops, - FSNOTIFY_GROUP_USER); + FSNOTIFY_GROUP_FLAG_USER); /* fsnotify_alloc_group takes a ref. Dropped in fanotify_release */ if (IS_ERR(group)) return PTR_ERR(group); diff --git a/fs/notify/group.c b/fs/notify/group.c index b56d1c1d9644a..cf445e270ba6a 100644 --- a/fs/notify/group.c +++ b/fs/notify/group.c @@ -145,8 +145,8 @@ static struct fsnotify_group *__fsnotify_alloc_group( struct fsnotify_group *fsnotify_alloc_group(const struct fsnotify_ops *ops, int flags) { - gfp_t gfp = (flags & FSNOTIFY_GROUP_USER) ? GFP_KERNEL_ACCOUNT : - GFP_KERNEL; + gfp_t gfp = (flags & FSNOTIFY_GROUP_FLAG_USER) ? + GFP_KERNEL_ACCOUNT : GFP_KERNEL; return __fsnotify_alloc_group(ops, flags, gfp); } diff --git a/fs/notify/inotify/inotify_user.c b/fs/notify/inotify/inotify_user.c index 5f19c24ec187f..641485e3492eb 100644 --- a/fs/notify/inotify/inotify_user.c +++ b/fs/notify/inotify/inotify_user.c @@ -644,7 +644,7 @@ static struct fsnotify_group *inotify_new_group(unsigned int max_events) struct inotify_event_info *oevent; group = fsnotify_alloc_group(&inotify_fsnotify_ops, - FSNOTIFY_GROUP_USER); + FSNOTIFY_GROUP_FLAG_USER); if (IS_ERR(group)) return group; diff --git a/fs/notify/mark.c b/fs/notify/mark.c index b2640d836a712..79f32a42f580a 100644 --- a/fs/notify/mark.c +++ b/fs/notify/mark.c @@ -937,7 +937,7 @@ static int fsnotify_add_mark_list(struct fsnotify_mark *mark, void *obj, if ((lmark->group == mark->group) && (lmark->flags & FSNOTIFY_MARK_FLAG_ATTACHED) && - !(mark->group->flags & FSNOTIFY_GROUP_DUPS)) { + !(mark->group->flags & FSNOTIFY_GROUP_FLAG_DUPS)) { err = -EEXIST; goto out_err; } diff --git a/include/linux/fsnotify_backend.h b/include/linux/fsnotify_backend.h index 618eed4d6d724..ad310de907819 100644 --- a/include/linux/fsnotify_backend.h +++ b/include/linux/fsnotify_backend.h @@ -232,8 +232,8 @@ struct fsnotify_group { enum fsnotify_group_prio priority; /* priority for sending events */ bool shutdown; /* group is being shut down, don't queue more events */ -#define FSNOTIFY_GROUP_USER 0x01 /* user allocated group */ -#define FSNOTIFY_GROUP_DUPS 0x02 /* allow multiple marks per object */ +#define FSNOTIFY_GROUP_FLAG_USER 0x01 /* user allocated group */ +#define FSNOTIFY_GROUP_FLAG_DUPS 0x02 /* allow multiple marks per object */ int flags; unsigned int owner_flags; /* stored flags of mark_mutex owner */ diff --git a/kernel/audit_fsnotify.c b/kernel/audit_fsnotify.c index fa33d57e43207..162ebe992fb19 100644 --- a/kernel/audit_fsnotify.c +++ b/kernel/audit_fsnotify.c @@ -194,7 +194,7 @@ static const struct fsnotify_ops audit_mark_fsnotify_ops = { static int __init audit_fsnotify_init(void) { audit_fsnotify_group = fsnotify_alloc_group(&audit_mark_fsnotify_ops, - FSNOTIFY_GROUP_DUPS); + FSNOTIFY_GROUP_FLAG_DUPS); if (IS_ERR(audit_fsnotify_group)) { audit_fsnotify_group = NULL; audit_panic("cannot create audit fsnotify group"); -- 2.55.0