]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
nfs: get rid of fake root dentries
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 15 Apr 2026 23:29:53 +0000 (19:29 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 5 Jun 2026 04:34:56 +0000 (00:34 -0400)
commit144bef84e1cfadfe100c6728593ea9838853f347
tree4c77492a7a8b27b87f5f0d059139132be1273e4d
parente9895609cb7f9d9712c5b20044edff5f196eec1b
nfs: get rid of fake root dentries

... just grab the reference to the (real) root we are about to return
for the first mount of this superblock and be done with that.

Once upon a time dentry tree eviction at fs shutdown used to break
if ->s_root had been spliced on top of something; that hadn't been
the case for years now, and these fake root dentries violate a bunch
of invariants.  Let's get rid of them...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/dcache.c
fs/nfs/getroot.c