diff options
author | Darrick J. Wong <djwong@kernel.org> | 2024-04-15 23:54:57 +0200 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2024-04-15 23:58:57 +0200 |
commit | 73597e3e42b4a15030e6f93b71b53a04377ea419 (patch) | |
tree | d55182f3c052cbab543fb488fa4bbdc4b7a47a65 /drivers | |
parent | xfs: move files to orphanage instead of letting nlinks drop to zero (diff) | |
download | linux-73597e3e42b4a15030e6f93b71b53a04377ea419.tar.xz linux-73597e3e42b4a15030e6f93b71b53a04377ea419.zip |
xfs: ensure dentry consistency when the orphanage adopts a file
When the orphanage adopts a file, that file becomes a child of the
orphanage. The dentry cache may have entries for the orphanage
directory and the name we've chosen, so (1) make sure we abort if the
dcache has a positive entry because something's not right; and (2)
invalidate and purge negative dentries if the adoption goes through.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions