patch-2.3.45 linux/fs/inode.c
Next file: linux/fs/locks.c
Previous file: linux/fs/hpfs/namei.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Sun Feb 13 18:20:21 2000
- Orig file:
v2.3.44/linux/fs/inode.c
- Orig date:
Sat Feb 12 11:22:11 2000
diff -u --recursive --new-file v2.3.44/linux/fs/inode.c linux/fs/inode.c
@@ -94,7 +94,7 @@
INIT_LIST_HEAD(&inode->i_data.pages);
INIT_LIST_HEAD(&inode->i_dentry);
sema_init(&inode->i_sem, 1);
- spin_lock_init(&inode->i_shared_lock);
+ spin_lock_init(&inode->i_data.i_shared_lock);
}
}
@@ -280,7 +280,7 @@
inode = list_entry(inode_entry, struct inode, i_list);
if (inode->i_data.nrpages)
- truncate_inode_pages(inode, 0);
+ truncate_inode_pages(&inode->i_data, 0);
clear_inode(inode);
destroy_inode(inode);
}
@@ -673,7 +673,7 @@
void (*delete)(struct inode *) = op->delete_inode;
spin_unlock(&inode_lock);
if (inode->i_data.nrpages)
- truncate_inode_pages(inode, 0);
+ truncate_inode_pages(&inode->i_data, 0);
delete(inode);
spin_lock(&inode_lock);
}
FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen (who was at: [email protected])