Skip to content

Commit

Permalink
fs/notify/inode_mark.c: use list_next_entry in fsnotify_unmount_inodes
Browse files Browse the repository at this point in the history
To make the intention clearer, use list_next_entry instead of
list_entry.

Signed-off-by: Geliang Tang <geliangtang@163.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Geliang Tang authored and Linus Torvalds committed Jan 15, 2016
1 parent 72214a2 commit 1deaf9d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/notify/inode_mark.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,7 @@ void fsnotify_unmount_inodes(struct super_block *sb)
break;
}
spin_unlock(&next_i->i_lock);
next_i = list_entry(next_i->i_sb_list.next,
struct inode, i_sb_list);
next_i = list_next_entry(next_i, i_sb_list);
}

/*
Expand Down

0 comments on commit 1deaf9d

Please sign in to comment.