diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2017-10-18 07:37:44 +0300 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2017-10-27 01:38:25 +0300 |
commit | a5c46e5e8912d232b959faf511cd9a17cc829f0a (patch) | |
tree | cfb855ef552faf04cf53f76c93d500d217ea3ac3 /fs/xfs/libxfs/xfs_dir2.c | |
parent | 7c4a07a424c18d95f49b0c0c3d8c5afd969e0a10 (diff) | |
download | linux-a5c46e5e8912d232b959faf511cd9a17cc829f0a.tar.xz |
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>
Diffstat (limited to 'fs/xfs/libxfs/xfs_dir2.c')
-rw-r--r-- | fs/xfs/libxfs/xfs_dir2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_dir2.c b/fs/xfs/libxfs/xfs_dir2.c index ee5e9160eb01..41ea6d40bbeb 100644 --- a/fs/xfs/libxfs/xfs_dir2.c +++ b/fs/xfs/libxfs/xfs_dir2.c @@ -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: |