summaryrefslogtreecommitdiffstats
path: root/fs/inode.c
diff options
context:
space:
mode:
authorEric Paris <eparis@redhat.com>2009-05-21 23:01:58 +0200
committerEric Paris <eparis@redhat.com>2009-06-11 20:57:54 +0200
commit164bc6195139047faaf5ada1278332e99494803b (patch)
treefdc0e31f9dc15796a4777ed917533091797b8b69 /fs/inode.c
parentfsnotify: fsnotify marks on inodes pin them in core (diff)
downloadlinux-164bc6195139047faaf5ada1278332e99494803b.tar.xz
linux-164bc6195139047faaf5ada1278332e99494803b.zip
fsnotify: handle filesystem unmounts with fsnotify marks
When an fs is unmounted with an fsnotify mark entry attached to one of its inodes we need to destroy that mark entry and we also (like inotify) send an unmount event. Signed-off-by: Eric Paris <eparis@redhat.com> Acked-by: Al Viro <viro@zeniv.linux.org.uk> Cc: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/inode.c')
-rw-r--r--fs/inode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/inode.c b/fs/inode.c
index 54c63ce3de25..ca337014ae29 100644
--- a/fs/inode.c
+++ b/fs/inode.c
@@ -407,6 +407,7 @@ int invalidate_inodes(struct super_block *sb)
mutex_lock(&iprune_mutex);
spin_lock(&inode_lock);
inotify_unmount_inodes(&sb->s_inodes);
+ fsnotify_unmount_inodes(&sb->s_inodes);
busy = invalidate_list(&sb->s_inodes, &throw_away);
spin_unlock(&inode_lock);