aboutsummaryrefslogtreecommitdiffstats
path: root/fs/notify/inotify
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2010-08-10 14:26:52 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2010-08-10 14:26:52 -0400
commit5f248c9c251c60af3403902b26e08de43964ea0b (patch)
tree6d3328e72a7e4015a64017eb30be18095c6a3c64 /fs/notify/inotify
parentf6cec0ae58c17522a7bc4e2f39dae19f199ab534 (diff)
parentdca332528bc69e05f67161e1ed59929633d5e63d (diff)
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6: (96 commits) no need for list_for_each_entry_safe()/resetting with superblock list Fix sget() race with failing mount vfs: don't hold s_umount over close_bdev_exclusive() call sysv: do not mark superblock dirty on remount sysv: do not mark superblock dirty on mount btrfs: remove junk sb_dirt change BFS: clean up the superblock usage AFFS: wait for sb synchronization when needed AFFS: clean up dirty flag usage cifs: truncate fallout mbcache: fix shrinker function return value mbcache: Remove unused features add f_flags to struct statfs(64) pass a struct path to vfs_statfs update VFS documentation for method changes. All filesystems that need invalidate_inode_buffers() are doing that explicitly convert remaining ->clear_inode() to ->evict_inode() Make ->drop_inode() just return whether inode needs to be dropped fs/inode.c:clear_inode() is gone fs/inode.c:evict() doesn't care about delete vs. non-delete paths now ... Fix up trivial conflicts in fs/nilfs2/super.c
Diffstat (limited to 'fs/notify/inotify')
-rw-r--r--fs/notify/inotify/inotify.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/notify/inotify/inotify.c b/fs/notify/inotify/inotify.c
index 27b75ebc7460..cf6b0429a257 100644
--- a/fs/notify/inotify/inotify.c
+++ b/fs/notify/inotify/inotify.c
@@ -377,11 +377,11 @@ void inotify_unmount_inodes(struct list_head *list)
377 struct list_head *watches; 377 struct list_head *watches;
378 378
379 /* 379 /*
380 * We cannot __iget() an inode in state I_CLEAR, I_FREEING, 380 * We cannot __iget() an inode in state I_FREEING,
381 * I_WILL_FREE, or I_NEW which is fine because by that point 381 * I_WILL_FREE, or I_NEW which is fine because by that point
382 * the inode cannot have any associated watches. 382 * the inode cannot have any associated watches.
383 */ 383 */
384 if (inode->i_state & (I_CLEAR|I_FREEING|I_WILL_FREE|I_NEW)) 384 if (inode->i_state & (I_FREEING|I_WILL_FREE|I_NEW))
385 continue; 385 continue;
386 386
387 /* 387 /*
@@ -403,8 +403,7 @@ void inotify_unmount_inodes(struct list_head *list)
403 /* In case the dropping of a reference would nuke next_i. */ 403 /* In case the dropping of a reference would nuke next_i. */
404 if ((&next_i->i_sb_list != list) && 404 if ((&next_i->i_sb_list != list) &&
405 atomic_read(&next_i->i_count) && 405 atomic_read(&next_i->i_count) &&
406 !(next_i->i_state & (I_CLEAR | I_FREEING | 406 !(next_i->i_state & (I_FREEING|I_WILL_FREE))) {
407 I_WILL_FREE))) {
408 __iget(next_i); 407 __iget(next_i);
409 need_iput = next_i; 408 need_iput = next_i;
410 } 409 }