xfs: scrub directory metadata
Scrub the hash tree and all the entries in a directory. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Dave Chinner <dchinner@redhat.com>
This commit is contained in:
@@ -39,7 +39,9 @@ struct xfs_name xfs_name_dotdot = { (unsigned char *)"..", 2, XFS_DIR3_FT_DIR };
|
||||
/*
|
||||
* Convert inode mode to directory entry filetype
|
||||
*/
|
||||
unsigned char xfs_mode_to_ftype(int mode)
|
||||
unsigned char
|
||||
xfs_mode_to_ftype(
|
||||
int mode)
|
||||
{
|
||||
switch (mode & S_IFMT) {
|
||||
case S_IFREG:
|
||||
|
Reference in New Issue
Block a user