diff options
author | Andreas Gruenbacher <agruen@suse.de> | 2009-12-17 21:24:28 -0500 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2010-07-28 09:58:58 -0400 |
commit | 90dd201d1ab064512078a77762a793e0bf5f3040 (patch) | |
tree | 23da2eabf9d2b5182ef831bf043189b5a1c1b371 /fs/notify/fanotify | |
parent | 52202dfbd9107787dc68a2019cc7be4e79f52e5c (diff) |
fanotify: remove fanotify_add_mark
fanotify_add_mark now does nothing useful anymore, drop it.
Signed-off-by: Andreas Gruenbacher <agruen@suse.de>
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'fs/notify/fanotify')
-rw-r--r-- | fs/notify/fanotify/fanotify_user.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/fs/notify/fanotify/fanotify_user.c b/fs/notify/fanotify/fanotify_user.c index 7d7c13872852..db80a0d89d24 100644 --- a/fs/notify/fanotify/fanotify_user.c +++ b/fs/notify/fanotify/fanotify_user.c | |||
@@ -424,27 +424,6 @@ static int fanotify_add_inode_mark(struct fsnotify_group *group, | |||
424 | return 0; | 424 | return 0; |
425 | } | 425 | } |
426 | 426 | ||
427 | static int fanotify_add_mark(struct fsnotify_group *group, struct inode *inode, | ||
428 | struct vfsmount *mnt, __u32 mask) | ||
429 | { | ||
430 | int ret; | ||
431 | |||
432 | pr_debug("%s: group=%p inode=%p mnt=%p mask=%x\n", | ||
433 | __func__, group, inode, mnt, mask); | ||
434 | |||
435 | BUG_ON(inode && mnt); | ||
436 | BUG_ON(!inode && !mnt); | ||
437 | |||
438 | if (inode) | ||
439 | ret = fanotify_add_inode_mark(group, inode, mask); | ||
440 | else if (mnt) | ||
441 | ret = fanotify_add_vfsmount_mark(group, mnt, mask); | ||
442 | else | ||
443 | BUG(); | ||
444 | |||
445 | return ret; | ||
446 | } | ||
447 | |||
448 | static bool fanotify_mark_validate_input(int flags, | 427 | static bool fanotify_mark_validate_input(int flags, |
449 | __u32 mask) | 428 | __u32 mask) |
450 | { | 429 | { |
@@ -542,7 +521,7 @@ SYSCALL_DEFINE(fanotify_mark)(int fanotify_fd, unsigned int flags, | |||
542 | /* create/update an inode mark */ | 521 | /* create/update an inode mark */ |
543 | switch (flags & (FAN_MARK_ADD | FAN_MARK_REMOVE)) { | 522 | switch (flags & (FAN_MARK_ADD | FAN_MARK_REMOVE)) { |
544 | case FAN_MARK_ADD: | 523 | case FAN_MARK_ADD: |
545 | ret = fanotify_add_mark(group, inode, NULL, mask); | 524 | ret = fanotify_add_inode_mark(group, inode, mask); |
546 | break; | 525 | break; |
547 | case FAN_MARK_REMOVE: | 526 | case FAN_MARK_REMOVE: |
548 | ret = fanotify_remove_mark(group, inode, NULL, mask); | 527 | ret = fanotify_remove_mark(group, inode, NULL, mask); |