mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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:
parent
7c4a07a424
commit
a5c46e5e89
11 changed files with 393 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue