patch-2.2.13 linux/fs/nfs/inode.c
Next file: linux/fs/nfsd/export.c
Previous file: linux/fs/nfs/file.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Tue Oct 19 17:14:02 1999
- Orig file:
v2.2.12/linux/fs/nfs/inode.c
- Orig date:
Sat May 8 20:00:46 1999
diff -u --recursive --new-file v2.2.12/linux/fs/nfs/inode.c linux/fs/nfs/inode.c
@@ -408,6 +408,8 @@
unhashed = 0;
while ((tmp = tmp->next) != head) {
struct dentry *dentry = list_entry(tmp, struct dentry, d_alias);
+ if (!list_empty(&dentry->d_subdirs))
+ shrink_dcache_parent(dentry);
dprintk("nfs_free_dentries: found %s/%s, d_count=%d, hashed=%d\n",
dentry->d_parent->d_name.name, dentry->d_name.name,
dentry->d_count, !list_empty(&dentry->d_hash));
@@ -417,7 +419,7 @@
dput(dentry);
goto restart;
}
- if (!list_empty(&dentry->d_hash))
+ if (list_empty(&dentry->d_hash))
unhashed++;
}
return unhashed;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)