patch-2.1.129 linux/fs/nfs/dir.c
Next file: linux/fs/nfs/file.c
Previous file: linux/fs/namei.c
Back to the patch index
Back to the overall index
- Lines: 33
- Date:
Fri Nov 13 12:33:49 1998
- Orig file:
v2.1.128/linux/fs/nfs/dir.c
- Orig date:
Mon Sep 28 10:51:35 1998
diff -u --recursive --new-file v2.1.128/linux/fs/nfs/dir.c linux/fs/nfs/dir.c
@@ -488,13 +488,7 @@
printk("nfs_dentry_iput: pending writes for %s/%s, i_count=%d\n",
dentry->d_parent->d_name.name, dentry->d_name.name, inode->i_count);
#endif
- while (nfs_find_dentry_request(inode, dentry)) {
-#ifdef NFS_PARANOIA
-printk("nfs_dentry_iput: flushing %s/%s\n",
-dentry->d_parent->d_name.name, dentry->d_name.name);
-#endif
- nfs_flush_dirty_pages(inode, 0, 0, 0);
- }
+ nfs_wbinval(inode);
}
iput(inode);
}
@@ -940,7 +934,7 @@
error = -EBUSY;
if (inode) {
if (NFS_WRITEBACK(inode)) {
- nfs_flush_dirty_pages(inode, 0, 0, 0);
+ nfs_wbinval(inode);
if (NFS_WRITEBACK(inode)) {
#ifdef NFS_PARANOIA
printk("nfs_safe_remove: %s/%s writes pending, d_count=%d\n",
@@ -1204,7 +1198,7 @@
printk("nfs_rename: %s/%s has pending writes\n",
old_dentry->d_parent->d_name.name, old_dentry->d_name.name);
#endif
- nfs_flush_dirty_pages(old_inode, 0, 0, 0);
+ nfs_wbinval(old_inode);
if (NFS_WRITEBACK(old_inode)) {
#ifdef NFS_PARANOIA
printk("nfs_rename: %s/%s has pending writes after flush\n",
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov