diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2019-09-12 07:53:30 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-09-12 07:53:30 +0200 |
commit | 613d5df6f6498cdf401a171cb0234083c59f638d (patch) | |
tree | 685188d2045a45e1df1fcced94f09c88b355a39f /fs | |
parent | 45d273f3a149727bbf3c2d68d8098bd9a181fb19 (diff) | |
parent | 47537564bf1d8a519ba5b5e729b2aa40a2f64942 (diff) | |
download | barebox-613d5df6f6498cdf401a171cb0234083c59f638d.tar.gz barebox-613d5df6f6498cdf401a171cb0234083c59f638d.tar.xz |
Merge branch 'for-next/tftp'
Diffstat (limited to 'fs')
-rw-r--r-- | fs/fs.c | 9 | ||||
-rw-r--r-- | fs/tftp.c | 2 |
2 files changed, 10 insertions, 1 deletions
@@ -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)) @@ -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); |