summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2019-09-12 07:53:30 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-09-12 07:53:30 +0200
commit613d5df6f6498cdf401a171cb0234083c59f638d (patch)
tree685188d2045a45e1df1fcced94f09c88b355a39f /fs
parent45d273f3a149727bbf3c2d68d8098bd9a181fb19 (diff)
parent47537564bf1d8a519ba5b5e729b2aa40a2f64942 (diff)
downloadbarebox-613d5df6f6498cdf401a171cb0234083c59f638d.tar.gz
barebox-613d5df6f6498cdf401a171cb0234083c59f638d.tar.xz
Merge branch 'for-next/tftp'
Diffstat (limited to 'fs')
-rw-r--r--fs/fs.c9
-rw-r--r--fs/tftp.c2
2 files changed, 10 insertions, 1 deletions
diff --git a/fs/fs.c b/fs/fs.c
index c6cb49996e..dda19db913 100644
--- a/fs/fs.c
+++ b/fs/fs.c
@@ -1262,6 +1262,15 @@ static void d_invalidate(struct dentry *dentry)
{
}
+static int d_no_revalidate(struct dentry *dir, unsigned int flags)
+{
+ return 0;
+}
+
+const struct dentry_operations no_revalidate_d_ops = {
+ .d_revalidate = d_no_revalidate,
+};
+
static inline int d_revalidate(struct dentry *dentry, unsigned int flags)
{
if (unlikely(dentry->d_flags & DCACHE_OP_REVALIDATE))
diff --git a/fs/tftp.c b/fs/tftp.c
index 43293272d7..1f36c56511 100644
--- a/fs/tftp.c
+++ b/fs/tftp.c
@@ -29,7 +29,6 @@
#include <libgen.h>
#include <fcntl.h>
#include <getopt.h>
-#include <fs.h>
#include <init.h>
#include <linux/stat.h>
#include <linux/err.h>
@@ -716,6 +715,7 @@ static int tftp_probe(struct device_d *dev)
}
sb->s_op = &tftp_ops;
+ sb->s_d_op = &no_revalidate_d_ops;
inode = tftp_get_inode(sb, NULL, S_IFDIR);
sb->s_root = d_make_root(inode);