mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/2] fs: add revalidating of dentries
@ 2018-10-17  8:43 Sascha Hauer
  2018-10-17  8:43 ` [PATCH 1/2] fs: implement d_revalidate Sascha Hauer
  2018-10-17  8:43 ` [PATCH 2/2] fs: devfs: implement d_revalidate hook Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Sascha Hauer @ 2018-10-17  8:43 UTC (permalink / raw)
  To: Barebox List; +Cc: Ladislav Michl

Currently we do not revalidate dentries. I knew this is not correct for
network filesystems, but as it turned out it is also not correct for
devfs. In devfs files can be created/removed without the fs layer
noticing, so have to check if a dentry is still valid before using it.

Sascha Hauer (2):
  fs: implement d_revalidate
  fs: devfs: implement d_revalidate hook

 fs/devfs.c             | 27 +++++++++++++++++++++++++++
 fs/fs.c                | 37 ++++++++++++++++++++++++++++++++++++-
 include/linux/dcache.h |  3 +++
 3 files changed, 66 insertions(+), 1 deletion(-)

-- 
2.19.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-10-17  8:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-17  8:43 [PATCH 0/2] fs: add revalidating of dentries Sascha Hauer
2018-10-17  8:43 ` [PATCH 1/2] fs: implement d_revalidate Sascha Hauer
2018-10-17  8:43 ` [PATCH 2/2] fs: devfs: implement d_revalidate hook Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox