summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorLuis Henriques <luis@igalia.com>2025-09-16 14:53:07 +0100
committerMiklos Szeredi <mszeredi@redhat.com>2025-11-12 11:45:03 +0100
commit395b95530343e7f4bdd2870190d985a222997fb6 (patch)
treee0e4bb02d1228fc223b3540dd77213e32970aa27 /include/linux
parent66c6a77e00a2f28330cca90c67339111cd54e54b (diff)
dcache: export shrink_dentry_list() and add new helper d_dispose_if_unused()
Add and export a new helper d_dispose_if_unused() which is simply a wrapper around to_shrink_list(), to add an entry to a dispose list if it's not used anymore. Also export shrink_dentry_list() to kill all dentries in a dispose list. Suggested-by: Miklos Szeredi <miklos@szeredi.hu> Signed-off-by: Luis Henriques <luis@igalia.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/dcache.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/dcache.h b/include/linux/dcache.h
index c83e02b94389..2bc1339bf6d0 100644
--- a/include/linux/dcache.h
+++ b/include/linux/dcache.h
@@ -268,6 +268,8 @@ extern void d_tmpfile(struct file *, struct inode *);
extern struct dentry *d_find_alias(struct inode *);
extern void d_prune_aliases(struct inode *);
+extern void d_dispose_if_unused(struct dentry *, struct list_head *);
+extern void shrink_dentry_list(struct list_head *);
extern struct dentry *d_find_alias_rcu(struct inode *);