]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/notify/dnotify/dnotify.c
fsnotify: allow marks to not pin inodes in core
[net-next-2.6.git] / fs / notify / dnotify / dnotify.c
index 69f42df9ba457bcfb33ba6c3fc27560ceee39e28..6624c2ee8786fe9f804e5eb1dfb9c005d065abc9 100644 (file)
@@ -65,7 +65,7 @@ static void dnotify_recalc_inode_mask(struct fsnotify_mark *fsn_mark)
        new_mask = 0;
        for (dn = dn_mark->dn; dn != NULL; dn = dn->dn_next)
                new_mask |= (dn->dn_mask & ~FS_DN_MULTISHOT);
-       fsn_mark->mask = new_mask;
+       fsnotify_set_mark_mask_locked(fsn_mark, new_mask);
 
        if (old_mask == new_mask)
                return;