]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_repair: invalidate dirty dir buffers when we zap a directory
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 23 May 2018 21:30:48 +0000 (16:30 -0500)
committerEric Sandeen <sandeen@redhat.com>
Wed, 23 May 2018 21:30:48 +0000 (16:30 -0500)
commitf9c559f4e4fb4587b3090d63385d6cbed760d3a8
treeabcfa34b4014f10ccbefcc38c210f90d03fd0b75
parent67a79e2cc9320aaf269cd00e9c8d16892931886d
xfs_repair: invalidate dirty dir buffers when we zap a  directory

If we decide to rebuild a directory in phase 6, we need to find and
invalidate all of the old directory buffers so that they don't get
written out, which can trigger write verifier errors when we finish.
This fixes the write verifier errors in phase 7 that can occur via
xfs/382.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/libxfs_api_defs.h
repair/phase6.c