From 47537564bf1d8a519ba5b5e729b2aa40a2f64942 Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Thu, 22 Aug 2019 08:51:02 +0200 Subject: fs: tftp: don't maintain tftp dentries in dcache Currently a negative dentry is cached whenever a non-existing file was looked up over TFTP. Short of a barebox reset, there is no way to invalidate that dentry, so barebox retries the look up. Fix this by always reporting TFTP dentries as invalid in the d_revalidate callback. Signed-off-by: Ahmad Fatoum Signed-off-by: Sascha Hauer --- fs/tftp.c | 1 + 1 file changed, 1 insertion(+) (limited to 'fs') diff --git a/fs/tftp.c b/fs/tftp.c index 54dcba272f..1f36c56511 100644 --- a/fs/tftp.c +++ b/fs/tftp.c @@ -715,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); -- cgit v1.2.3