patch-2.1.117 linux/fs/inode.c
Next file: linux/fs/nfs/dir.c
Previous file: linux/fs/fcntl.c
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
Wed Aug 19 13:07:49 1998
- Orig file:
v2.1.116/linux/fs/inode.c
- Orig date:
Sun Jul 26 11:57:18 1998
diff -u --recursive --new-file v2.1.116/linux/fs/inode.c linux/fs/inode.c
@@ -177,14 +177,13 @@
*/
void sync_inodes(kdev_t dev)
{
- struct super_block * sb = super_blocks + 0;
- int i;
+ struct super_block * sb = sb_entry(super_blocks.next);
/*
* Search the super_blocks array for the device(s) to sync.
*/
spin_lock(&inode_lock);
- for (i = NR_SUPER ; i-- ; sb++) {
+ for (; sb != sb_entry(&super_blocks); sb = sb_entry(sb->s_list.next)) {
if (!sb->s_dev)
continue;
if (dev && sb->s_dev != dev)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov