summaryrefslogtreecommitdiffstats
path: root/include/linux/dcache.h
diff options
context:
space:
mode:
authorAhmad Fatoum <ahmad@a3f.at>2019-08-22 08:51:01 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-08-23 09:37:59 +0200
commitfe201c695af55df51ee414f89e29558abab97437 (patch)
tree5e3bb142563ebafe94ad4575a3bc1b127cdb57dd /include/linux/dcache.h
parente68c3d08dccb951476d1e31a66f31c15390e4af7 (diff)
downloadbarebox-fe201c695af55df51ee414f89e29558abab97437.tar.gz
barebox-fe201c695af55df51ee414f89e29558abab97437.tar.xz
fs: provide no_revalidate_d_ops for network file systems
Networked file systems may wish to forego dentry caching altogether, so every lookup goes over the network and stale data is avoided. Provide a no_revalidate_d_ops helper object that does this. Signed-off-by: Ahmad Fatoum <ahmad@a3f.at> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/linux/dcache.h')
-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 1581ddc701..a961942201 100644
--- a/include/linux/dcache.h
+++ b/include/linux/dcache.h
@@ -185,4 +185,6 @@ static inline struct inode *d_inode(const struct dentry *dentry)
char *dpath(struct dentry *dentry, struct dentry *root);
+extern const struct dentry_operations no_revalidate_d_ops;
+
#endif /* __LINUX_DCACHE_H */