summaryrefslogtreecommitdiffstats
path: root/kernel/audit_watch.c
diff options
context:
space:
mode:
authorAmir Goldstein <amir73il@gmail.com>2018-04-20 19:10:50 -0400
committerJan Kara <jack@suse.cz>2018-05-18 08:58:22 -0400
commit5b0457ad021f3f7e3d9f4b84e7c3080748f383f8 (patch)
tree71075e48e360e92dc139df2eb4872e911cacb6c0 /kernel/audit_watch.c
parentd6f7b98bc8147abd290ead82922f8d83c525fb42 (diff)
fsnotify: remove redundant arguments to handle_event()
inode_mark and vfsmount_mark arguments are passed to handle_event() operation as function arguments as well as on iter_info struct. The difference is that iter_info struct may contain marks that should not be handled and are represented as NULL arguments to inode_mark or vfsmount_mark. Instead of passing the inode_mark and vfsmount_mark arguments, add a report_mask member to iter_info struct to indicate which marks should be handled, versus marks that should only be kept alive during user wait. This change is going to be used for passing more mark types with handle_event() (i.e. super block marks). Signed-off-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'kernel/audit_watch.c')
-rw-r--r--kernel/audit_watch.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/audit_watch.c b/kernel/audit_watch.c
index 9eb8b3511636..43fcae4b0500 100644
--- a/kernel/audit_watch.c
+++ b/kernel/audit_watch.c
@@ -472,12 +472,11 @@ void audit_remove_watch_rule(struct audit_krule *krule)
472/* Update watch data in audit rules based on fsnotify events. */ 472/* Update watch data in audit rules based on fsnotify events. */
473static int audit_watch_handle_event(struct fsnotify_group *group, 473static int audit_watch_handle_event(struct fsnotify_group *group,
474 struct inode *to_tell, 474 struct inode *to_tell,
475 struct fsnotify_mark *inode_mark,
476 struct fsnotify_mark *vfsmount_mark,
477 u32 mask, const void *data, int data_type, 475 u32 mask, const void *data, int data_type,
478 const unsigned char *dname, u32 cookie, 476 const unsigned char *dname, u32 cookie,
479 struct fsnotify_iter_info *iter_info) 477 struct fsnotify_iter_info *iter_info)
480{ 478{
479 struct fsnotify_mark *inode_mark = fsnotify_iter_inode_mark(iter_info);
481 const struct inode *inode; 480 const struct inode *inode;
482 struct audit_parent *parent; 481 struct audit_parent *parent;
483 482