patch-2.2.14 linux/include/linux/dcache.h
Next file: linux/include/linux/elf.h
Previous file: linux/include/linux/blk.h
Back to the patch index
Back to the overall index
- Lines: 28
- Date:
Tue Jan 4 10:12:24 2000
- Orig file:
v2.2.13/linux/include/linux/dcache.h
- Orig date:
Sat May 8 17:56:37 1999
diff -u --recursive --new-file v2.2.13/linux/include/linux/dcache.h linux/include/linux/dcache.h
@@ -133,15 +133,14 @@
/* allocate/de-allocate */
extern struct dentry * d_alloc(struct dentry * parent, const struct qstr *name);
-extern void prune_dcache(int);
+extern int prune_dcache(int, int);
extern void shrink_dcache_sb(struct super_block *);
extern void shrink_dcache_parent(struct dentry *);
extern int d_invalidate(struct dentry *);
-#define shrink_dcache() prune_dcache(0)
+#define shrink_dcache() prune_dcache(0, -1)
/* dcache memory management */
-extern int select_dcache(int, int);
extern void shrink_dcache_memory(int, unsigned int);
extern void check_dcache_memory(void);
extern void free_inode_memory(int); /* defined in fs/inode.c */
@@ -151,6 +150,9 @@
/* test whether root is busy without destroying dcache */
extern int is_root_busy(struct dentry *);
+
+/* test whether we have any submounts in a subdir tree */
+extern int have_submounts(struct dentry *);
/*
* This adds the entry to the hash queues.
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)