patch-2.1.56 linux/include/linux/dcache.h
Next file: linux/include/linux/ext2_fs.h
Previous file: linux/include/linux/atalk.h
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Sun Sep 14 10:35:44 1997
- Orig file:
v2.1.55/linux/include/linux/dcache.h
- Orig date:
Wed Sep 3 20:52:44 1997
diff -u --recursive --new-file v2.1.55/linux/include/linux/dcache.h linux/include/linux/dcache.h
@@ -50,6 +50,7 @@
struct qstr d_name;
unsigned long d_time; /* used by d_revalidate */
struct dentry_operations *d_op;
+ struct super_block * d_sb; /* The root of the dentry tree */
};
struct dentry_operations {
@@ -102,8 +103,10 @@
/* allocate/de-allocate */
extern struct dentry * d_alloc(struct dentry * parent, const struct qstr *name);
-extern void shrink_dcache(void);
+extern void prune_dcache(int);
extern int d_invalidate(struct dentry *);
+
+#define shrink_dcache() prune_dcache(0)
/* only used at mount-time */
extern struct dentry * d_alloc_root(struct inode * root_inode, struct dentry * old_root);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov