diff options
Diffstat (limited to 'fs/xfs/xfs_inode.c')
-rw-r--r-- | fs/xfs/xfs_inode.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c index c39278b6c871..bf9ca579365c 100644 --- a/fs/xfs/xfs_inode.c +++ b/fs/xfs/xfs_inode.c | |||
@@ -2940,16 +2940,16 @@ xfs_iflush_int( | |||
2940 | 2940 | ||
2941 | if (XFS_TEST_ERROR(be16_to_cpu(dip->di_magic) != XFS_DINODE_MAGIC, | 2941 | if (XFS_TEST_ERROR(be16_to_cpu(dip->di_magic) != XFS_DINODE_MAGIC, |
2942 | mp, XFS_ERRTAG_IFLUSH_1, XFS_RANDOM_IFLUSH_1)) { | 2942 | mp, XFS_ERRTAG_IFLUSH_1, XFS_RANDOM_IFLUSH_1)) { |
2943 | xfs_cmn_err(XFS_PTAG_IFLUSH, CE_ALERT, mp, | 2943 | xfs_alert_tag(mp, XFS_PTAG_IFLUSH, |
2944 | "xfs_iflush: Bad inode %Lu magic number 0x%x, ptr 0x%p", | 2944 | "%s: Bad inode %Lu magic number 0x%x, ptr 0x%p", |
2945 | ip->i_ino, be16_to_cpu(dip->di_magic), dip); | 2945 | __func__, ip->i_ino, be16_to_cpu(dip->di_magic), dip); |
2946 | goto corrupt_out; | 2946 | goto corrupt_out; |
2947 | } | 2947 | } |
2948 | if (XFS_TEST_ERROR(ip->i_d.di_magic != XFS_DINODE_MAGIC, | 2948 | if (XFS_TEST_ERROR(ip->i_d.di_magic != XFS_DINODE_MAGIC, |
2949 | mp, XFS_ERRTAG_IFLUSH_2, XFS_RANDOM_IFLUSH_2)) { | 2949 | mp, XFS_ERRTAG_IFLUSH_2, XFS_RANDOM_IFLUSH_2)) { |
2950 | xfs_cmn_err(XFS_PTAG_IFLUSH, CE_ALERT, mp, | 2950 | xfs_alert_tag(mp, XFS_PTAG_IFLUSH, |
2951 | "xfs_iflush: Bad inode %Lu, ptr 0x%p, magic number 0x%x", | 2951 | "%s: Bad inode %Lu, ptr 0x%p, magic number 0x%x", |
2952 | ip->i_ino, ip, ip->i_d.di_magic); | 2952 | __func__, ip->i_ino, ip, ip->i_d.di_magic); |
2953 | goto corrupt_out; | 2953 | goto corrupt_out; |
2954 | } | 2954 | } |
2955 | if ((ip->i_d.di_mode & S_IFMT) == S_IFREG) { | 2955 | if ((ip->i_d.di_mode & S_IFMT) == S_IFREG) { |
@@ -2957,9 +2957,9 @@ xfs_iflush_int( | |||
2957 | (ip->i_d.di_format != XFS_DINODE_FMT_EXTENTS) && | 2957 | (ip->i_d.di_format != XFS_DINODE_FMT_EXTENTS) && |
2958 | (ip->i_d.di_format != XFS_DINODE_FMT_BTREE), | 2958 | (ip->i_d.di_format != XFS_DINODE_FMT_BTREE), |
2959 | mp, XFS_ERRTAG_IFLUSH_3, XFS_RANDOM_IFLUSH_3)) { | 2959 | mp, XFS_ERRTAG_IFLUSH_3, XFS_RANDOM_IFLUSH_3)) { |
2960 | xfs_cmn_err(XFS_PTAG_IFLUSH, CE_ALERT, mp, | 2960 | xfs_alert_tag(mp, XFS_PTAG_IFLUSH, |
2961 | "xfs_iflush: Bad regular inode %Lu, ptr 0x%p", | 2961 | "%s: Bad regular inode %Lu, ptr 0x%p", |
2962 | ip->i_ino, ip); | 2962 | __func__, ip->i_ino, ip); |
2963 | goto corrupt_out; | 2963 | goto corrupt_out; |
2964 | } | 2964 | } |
2965 | } else if ((ip->i_d.di_mode & S_IFMT) == S_IFDIR) { | 2965 | } else if ((ip->i_d.di_mode & S_IFMT) == S_IFDIR) { |
@@ -2968,28 +2968,28 @@ xfs_iflush_int( | |||
2968 | (ip->i_d.di_format != XFS_DINODE_FMT_BTREE) && | 2968 | (ip->i_d.di_format != XFS_DINODE_FMT_BTREE) && |
2969 | (ip->i_d.di_format != XFS_DINODE_FMT_LOCAL), | 2969 | (ip->i_d.di_format != XFS_DINODE_FMT_LOCAL), |
2970 | mp, XFS_ERRTAG_IFLUSH_4, XFS_RANDOM_IFLUSH_4)) { | 2970 | mp, XFS_ERRTAG_IFLUSH_4, XFS_RANDOM_IFLUSH_4)) { |
2971 | xfs_cmn_err(XFS_PTAG_IFLUSH, CE_ALERT, mp, | 2971 | xfs_alert_tag(mp, XFS_PTAG_IFLUSH, |
2972 | "xfs_iflush: Bad directory inode %Lu, ptr 0x%p", | 2972 | "%s: Bad directory inode %Lu, ptr 0x%p", |
2973 | ip->i_ino, ip); | 2973 | __func__, ip->i_ino, ip); |
2974 | goto corrupt_out; | 2974 | goto corrupt_out; |
2975 | } | 2975 | } |
2976 | } | 2976 | } |
2977 | if (XFS_TEST_ERROR(ip->i_d.di_nextents + ip->i_d.di_anextents > | 2977 | if (XFS_TEST_ERROR(ip->i_d.di_nextents + ip->i_d.di_anextents > |
2978 | ip->i_d.di_nblocks, mp, XFS_ERRTAG_IFLUSH_5, | 2978 | ip->i_d.di_nblocks, mp, XFS_ERRTAG_IFLUSH_5, |
2979 | XFS_RANDOM_IFLUSH_5)) { | 2979 | XFS_RANDOM_IFLUSH_5)) { |
2980 | xfs_cmn_err(XFS_PTAG_IFLUSH, CE_ALERT, mp, | 2980 | xfs_alert_tag(mp, XFS_PTAG_IFLUSH, |
2981 | "xfs_iflush: detected corrupt incore inode %Lu, total extents = %d, nblocks = %Ld, ptr 0x%p", | 2981 | "%s: detected corrupt incore inode %Lu, " |
2982 | ip->i_ino, | 2982 | "total extents = %d, nblocks = %Ld, ptr 0x%p", |
2983 | __func__, ip->i_ino, | ||
2983 | ip->i_d.di_nextents + ip->i_d.di_anextents, | 2984 | ip->i_d.di_nextents + ip->i_d.di_anextents, |
2984 | ip->i_d.di_nblocks, | 2985 | ip->i_d.di_nblocks, ip); |
2985 | ip); | ||
2986 | goto corrupt_out; | 2986 | goto corrupt_out; |
2987 | } | 2987 | } |
2988 | if (XFS_TEST_ERROR(ip->i_d.di_forkoff > mp->m_sb.sb_inodesize, | 2988 | if (XFS_TEST_ERROR(ip->i_d.di_forkoff > mp->m_sb.sb_inodesize, |
2989 | mp, XFS_ERRTAG_IFLUSH_6, XFS_RANDOM_IFLUSH_6)) { | 2989 | mp, XFS_ERRTAG_IFLUSH_6, XFS_RANDOM_IFLUSH_6)) { |
2990 | xfs_cmn_err(XFS_PTAG_IFLUSH, CE_ALERT, mp, | 2990 | xfs_alert_tag(mp, XFS_PTAG_IFLUSH, |
2991 | "xfs_iflush: bad inode %Lu, forkoff 0x%x, ptr 0x%p", | 2991 | "%s: bad inode %Lu, forkoff 0x%x, ptr 0x%p", |
2992 | ip->i_ino, ip->i_d.di_forkoff, ip); | 2992 | __func__, ip->i_ino, ip->i_d.di_forkoff, ip); |
2993 | goto corrupt_out; | 2993 | goto corrupt_out; |
2994 | } | 2994 | } |
2995 | /* | 2995 | /* |