diff options
Diffstat (limited to 'kernel/audit_tree.c')
-rw-r--r-- | kernel/audit_tree.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/audit_tree.c b/kernel/audit_tree.c index 80f8ac328aad..cfb97d752a61 100644 --- a/kernel/audit_tree.c +++ b/kernel/audit_tree.c | |||
@@ -259,7 +259,7 @@ static void untag_chunk(struct node *p) | |||
259 | if (!new) | 259 | if (!new) |
260 | goto Fallback; | 260 | goto Fallback; |
261 | fsnotify_duplicate_mark(&new->mark, entry); | 261 | fsnotify_duplicate_mark(&new->mark, entry); |
262 | if (fsnotify_add_mark(&new->mark, new->mark.group, new->mark.i.inode, 1)) { | 262 | if (fsnotify_add_mark(&new->mark, new->mark.group, new->mark.i.inode, NULL, 1)) { |
263 | free_chunk(new); | 263 | free_chunk(new); |
264 | goto Fallback; | 264 | goto Fallback; |
265 | } | 265 | } |
@@ -322,7 +322,7 @@ static int create_chunk(struct inode *inode, struct audit_tree *tree) | |||
322 | return -ENOMEM; | 322 | return -ENOMEM; |
323 | 323 | ||
324 | entry = &chunk->mark; | 324 | entry = &chunk->mark; |
325 | if (fsnotify_add_mark(entry, audit_tree_group, inode, 0)) { | 325 | if (fsnotify_add_mark(entry, audit_tree_group, inode, NULL, 0)) { |
326 | free_chunk(chunk); | 326 | free_chunk(chunk); |
327 | return -ENOSPC; | 327 | return -ENOSPC; |
328 | } | 328 | } |
@@ -360,7 +360,7 @@ static int tag_chunk(struct inode *inode, struct audit_tree *tree) | |||
360 | struct node *p; | 360 | struct node *p; |
361 | int n; | 361 | int n; |
362 | 362 | ||
363 | old_entry = fsnotify_find_mark(audit_tree_group, inode); | 363 | old_entry = fsnotify_find_inode_mark(audit_tree_group, inode); |
364 | if (!old_entry) | 364 | if (!old_entry) |
365 | return create_chunk(inode, tree); | 365 | return create_chunk(inode, tree); |
366 | 366 | ||
@@ -395,7 +395,7 @@ static int tag_chunk(struct inode *inode, struct audit_tree *tree) | |||
395 | } | 395 | } |
396 | 396 | ||
397 | fsnotify_duplicate_mark(chunk_entry, old_entry); | 397 | fsnotify_duplicate_mark(chunk_entry, old_entry); |
398 | if (fsnotify_add_mark(chunk_entry, chunk_entry->group, chunk_entry->i.inode, 1)) { | 398 | if (fsnotify_add_mark(chunk_entry, chunk_entry->group, chunk_entry->i.inode, NULL, 1)) { |
399 | spin_unlock(&old_entry->lock); | 399 | spin_unlock(&old_entry->lock); |
400 | free_chunk(chunk); | 400 | free_chunk(chunk); |
401 | fsnotify_put_mark(old_entry); | 401 | fsnotify_put_mark(old_entry); |