Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fs/inode.c: use hlist_for_each_entry()

fs/inode.c: use hlist_for_each_entry() in find_inode() and find_inode_fast()

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Matthias Kaehlcke and committed by
Linus Torvalds
c5c8be3c af065b8a

+2 -4
+2 -4
fs/inode.c
··· 495 495 struct inode * inode = NULL; 496 496 497 497 repeat: 498 - hlist_for_each (node, head) { 499 - inode = hlist_entry(node, struct inode, i_hash); 498 + hlist_for_each_entry(inode, node, head, i_hash) { 500 499 if (inode->i_sb != sb) 501 500 continue; 502 501 if (!test(inode, data)) ··· 519 520 struct inode * inode = NULL; 520 521 521 522 repeat: 522 - hlist_for_each (node, head) { 523 - inode = hlist_entry(node, struct inode, i_hash); 523 + hlist_for_each_entry(inode, node, head, i_hash) { 524 524 if (inode->i_ino != ino) 525 525 continue; 526 526 if (inode->i_sb != sb)