• Darrick J. Wong's avatar
    xfs: inactivate directory data blocks · 8d81082a
    Darrick J. Wong authored
    Teach inode inactivation to delete all the incore buffers backing a
    directory.  In normal runtime this should never happen because the VFS
    forbids rmdir on a non-empty directory.
    
    In the next patch, online directory repair stands up a new directory,
    exchanges it with the broken directory, and then drops the private
    temporary directory.  If we cancel the repair just prior to exchanging
    the directory contents, the new directory will need to be torn down.
    Note: If we commit the repair, reaping will take care of all the ondisk
    space allocations and incore buffers for the old corrupt directory.
    Signed-off-by: default avatarDarrick J. Wong <djwong@kernel.org>
    Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
    8d81082a
xfs_inode.c 110 KB