]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/inotify.c
nfsd: Fix inconsistent assignment
[linux-2.6-omap-h63xx.git] / fs / inotify.c
index 4b2469bb65544ee6c244b96dbc2a4f9d62d77b3c..2c5b921528760b9da6d8abcc3f90668a8e9381d7 100644 (file)
@@ -701,6 +701,14 @@ out:
        return ret;
 }
 
+void inotify_evict_watch(struct inotify_watch *watch)
+{
+       get_inotify_watch(watch);
+       mutex_lock(&watch->ih->mutex);
+       inotify_remove_watch_locked(watch->ih, watch);
+       mutex_unlock(&watch->ih->mutex);
+}
+
 /**
  * inotify_rm_wd - remove a watch from an inotify instance
  * @ih: inotify handle