]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - fs/notify/dnotify/dnotify.c
fsnotify: Remove fsnotify_find_{inode|vfsmount}_mark()
[mirror_ubuntu-artful-kernel.git] / fs / notify / dnotify / dnotify.c
index 5940c75541a75dbf5098e945a89c1976a4c2e4fb..b77d8d049e4d6e884847e6cb626a11d206ab6646 100644 (file)
@@ -157,7 +157,7 @@ void dnotify_flush(struct file *filp, fl_owner_t id)
        if (!S_ISDIR(inode->i_mode))
                return;
 
-       fsn_mark = fsnotify_find_inode_mark(dnotify_group, inode);
+       fsn_mark = fsnotify_find_mark(&inode->i_fsnotify_marks, dnotify_group);
        if (!fsn_mark)
                return;
        dn_mark = container_of(fsn_mark, struct dnotify_mark, fsn_mark);
@@ -313,7 +313,7 @@ int fcntl_dirnotify(int fd, struct file *filp, unsigned long arg)
        mutex_lock(&dnotify_group->mark_mutex);
 
        /* add the new_fsn_mark or find an old one. */
-       fsn_mark = fsnotify_find_inode_mark(dnotify_group, inode);
+       fsn_mark = fsnotify_find_mark(&inode->i_fsnotify_marks, dnotify_group);
        if (fsn_mark) {
                dn_mark = container_of(fsn_mark, struct dnotify_mark, fsn_mark);
                spin_lock(&fsn_mark->lock);