diff options
Diffstat (limited to 'fs/aufs/hfsnotify.c')
-rw-r--r-- | fs/aufs/hfsnotify.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/aufs/hfsnotify.c b/fs/aufs/hfsnotify.c index c0a1a63a9..07b4ecc53 100644 --- a/fs/aufs/hfsnotify.c +++ b/fs/aufs/hfsnotify.c @@ -50,8 +50,6 @@ static int au_hfsn_alloc(struct au_hinode *hinode) lockdep_off(); err = fsnotify_add_mark(mark, br->br_hfsn->hfsn_group, hinode->hi_inode, /*mnt*/NULL, /*allow_dups*/1); - /* even if err */ - fsnotify_put_mark(mark); lockdep_on(); return err; @@ -73,6 +71,7 @@ static int au_hfsn_free(struct au_hinode *hinode, struct au_hnotify *hn) spin_unlock(&mark->lock); lockdep_off(); fsnotify_destroy_mark(mark, group); + fsnotify_put_mark(mark); fsnotify_put_group(group); lockdep_on(); |