From: Andrew Morton Documentation/SubmitChecklist, item 2 ;) Cc: David Howells Cc: NeilBrown Signed-off-by: Andrew Morton --- fs/dcache.c | 2 ++ 1 file changed, 2 insertions(+) diff -puN /dev/null /dev/null diff -puN fs/dcache.c~destroy-the-dentries-contributed-by-a-superblock-on-unmounting-fix fs/dcache.c --- a/fs/dcache.c~destroy-the-dentries-contributed-by-a-superblock-on-unmounting-fix +++ a/fs/dcache.c @@ -610,7 +610,9 @@ static void shrink_dcache_for_umount_sub inode = dentry->d_inode; if (inode) { +#ifdef CONFIG_INOTIFY BUG_ON(!list_empty(&inode->inotify_watches)); +#endif dentry->d_inode = NULL; list_del_init(&dentry->d_alias); if (dentry->d_op && dentry->d_op->d_iput) _