patch-2.1.117 linux/fs/dcache.c
Next file: linux/fs/fcntl.c
Previous file: linux/fs/binfmt_elf.c
Back to the patch index
Back to the overall index
- Lines: 13
- Date:
Wed Aug 19 13:07:49 1998
- Orig file:
v2.1.116/linux/fs/dcache.c
- Orig date:
Tue Aug 18 22:02:06 1998
diff -u --recursive --new-file v2.1.116/linux/fs/dcache.c linux/fs/dcache.c
@@ -643,9 +643,10 @@
* Special case: local mount points don't live in
* the hashes, so we search the super blocks.
*/
- struct super_block *sb = super_blocks + 0;
+ struct super_block *sb = sb_entry(super_blocks.next);
- for (; sb < super_blocks + NR_SUPER; sb++) {
+ for (; sb != sb_entry(&super_blocks);
+ sb = sb_entry(sb->s_list.next)) {
if (!sb->s_dev)
continue;
if (sb->s_root == dentry)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov