diff options
Diffstat (limited to 'fs/xfs/xfs_da_btree.c')
-rw-r--r-- | fs/xfs/xfs_da_btree.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/xfs/xfs_da_btree.c b/fs/xfs/xfs_da_btree.c index 2847bbc1c534..0ca556b4bf31 100644 --- a/fs/xfs/xfs_da_btree.c +++ b/fs/xfs/xfs_da_btree.c | |||
@@ -46,6 +46,7 @@ | |||
46 | #include "xfs_dir2_block.h" | 46 | #include "xfs_dir2_block.h" |
47 | #include "xfs_dir2_node.h" | 47 | #include "xfs_dir2_node.h" |
48 | #include "xfs_error.h" | 48 | #include "xfs_error.h" |
49 | #include "xfs_trace.h" | ||
49 | 50 | ||
50 | /* | 51 | /* |
51 | * xfs_da_btree.c | 52 | * xfs_da_btree.c |
@@ -1533,8 +1534,8 @@ xfs_da_hashname(const __uint8_t *name, int namelen) | |||
1533 | enum xfs_dacmp | 1534 | enum xfs_dacmp |
1534 | xfs_da_compname( | 1535 | xfs_da_compname( |
1535 | struct xfs_da_args *args, | 1536 | struct xfs_da_args *args, |
1536 | const char *name, | 1537 | const unsigned char *name, |
1537 | int len) | 1538 | int len) |
1538 | { | 1539 | { |
1539 | return (args->namelen == len && memcmp(args->name, name, len) == 0) ? | 1540 | return (args->namelen == len && memcmp(args->name, name, len) == 0) ? |
1540 | XFS_CMP_EXACT : XFS_CMP_DIFFERENT; | 1541 | XFS_CMP_EXACT : XFS_CMP_DIFFERENT; |
@@ -2107,7 +2108,7 @@ xfs_da_do_buf( | |||
2107 | (be32_to_cpu(free->hdr.magic) != XFS_DIR2_FREE_MAGIC), | 2108 | (be32_to_cpu(free->hdr.magic) != XFS_DIR2_FREE_MAGIC), |
2108 | mp, XFS_ERRTAG_DA_READ_BUF, | 2109 | mp, XFS_ERRTAG_DA_READ_BUF, |
2109 | XFS_RANDOM_DA_READ_BUF))) { | 2110 | XFS_RANDOM_DA_READ_BUF))) { |
2110 | xfs_buftrace("DA READ ERROR", rbp->bps[0]); | 2111 | trace_xfs_da_btree_corrupt(rbp->bps[0], _RET_IP_); |
2111 | XFS_CORRUPTION_ERROR("xfs_da_do_buf(2)", | 2112 | XFS_CORRUPTION_ERROR("xfs_da_do_buf(2)", |
2112 | XFS_ERRLEVEL_LOW, mp, info); | 2113 | XFS_ERRLEVEL_LOW, mp, info); |
2113 | error = XFS_ERROR(EFSCORRUPTED); | 2114 | error = XFS_ERROR(EFSCORRUPTED); |