aboutsummaryrefslogtreecommitdiffstats
path: root/fs/notify/fanotify
diff options
context:
space:
mode:
authorEric Paris <eparis@redhat.com>2010-05-27 09:41:40 -0400
committerEric Paris <eparis@redhat.com>2010-07-28 09:59:03 -0400
commit08ae89380a8210a9965d04083e1de78cb8bca4b1 (patch)
tree95ef9493b5a6152e7c683d2d5a8531844530f0f7 /fs/notify/fanotify
parent269ed32a9ce00132b9372e9c00014532e054d6b2 (diff)
fanotify: drop the useless priority argument
The priority argument in fanotify is useless. Kill it. Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'fs/notify/fanotify')
-rw-r--r--fs/notify/fanotify/fanotify_user.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/fs/notify/fanotify/fanotify_user.c b/fs/notify/fanotify/fanotify_user.c
index 7c869fa23ec6..664102084766 100644
--- a/fs/notify/fanotify/fanotify_user.c
+++ b/fs/notify/fanotify/fanotify_user.c
@@ -616,14 +616,13 @@ static int fanotify_add_inode_mark(struct fsnotify_group *group,
616} 616}
617 617
618/* fanotify syscalls */ 618/* fanotify syscalls */
619SYSCALL_DEFINE3(fanotify_init, unsigned int, flags, unsigned int, event_f_flags, 619SYSCALL_DEFINE2(fanotify_init, unsigned int, flags, unsigned int, event_f_flags)
620 unsigned int, priority)
621{ 620{
622 struct fsnotify_group *group; 621 struct fsnotify_group *group;
623 int f_flags, fd; 622 int f_flags, fd;
624 623
625 pr_debug("%s: flags=%d event_f_flags=%d priority=%d\n", 624 pr_debug("%s: flags=%d event_f_flags=%d\n",
626 __func__, flags, event_f_flags, priority); 625 __func__, flags, event_f_flags);
627 626
628 if (event_f_flags) 627 if (event_f_flags)
629 return -EINVAL; 628 return -EINVAL;
@@ -645,7 +644,6 @@ SYSCALL_DEFINE3(fanotify_init, unsigned int, flags, unsigned int, event_f_flags,
645 if (IS_ERR(group)) 644 if (IS_ERR(group))
646 return PTR_ERR(group); 645 return PTR_ERR(group);
647 646
648 group->priority = priority;
649#ifdef CONFIG_FANOTIFY_ACCESS_PERMISSIONS 647#ifdef CONFIG_FANOTIFY_ACCESS_PERMISSIONS
650 mutex_init(&group->fanotify_data.access_mutex); 648 mutex_init(&group->fanotify_data.access_mutex);
651 init_waitqueue_head(&group->fanotify_data.access_waitq); 649 init_waitqueue_head(&group->fanotify_data.access_waitq);