diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2019-02-16 20:47:28 +0100 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2019-02-18 18:38:41 +0100 |
commit | 15baadf72cedc2a09ea792c1fc59451502b55da2 (patch) | |
tree | 065992ac6a62f3dd3bb46b58734f999db5748b51 /fs/xfs/xfs_log_recover.c | |
parent | xfs: retry COW fork delalloc conversion when no extent was found (diff) | |
download | linux-15baadf72cedc2a09ea792c1fc59451502b55da2.tar.xz linux-15baadf72cedc2a09ea792c1fc59451502b55da2.zip |
xfs: fix xfs_buf magic number endian checks
Create a separate magic16 check function so that we don't run afoul of
static checkers.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Diffstat (limited to '')
-rw-r--r-- | fs/xfs/xfs_log_recover.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_log_recover.c b/fs/xfs/xfs_log_recover.c index f5948d16015b..3371d1ff27c4 100644 --- a/fs/xfs/xfs_log_recover.c +++ b/fs/xfs/xfs_log_recover.c @@ -3049,7 +3049,7 @@ xlog_recover_inode_pass2( * Make sure the place we're flushing out to really looks * like an inode! */ - if (unlikely(!xfs_verify_magic(bp, dip->di_magic))) { + if (unlikely(!xfs_verify_magic16(bp, dip->di_magic))) { xfs_alert(mp, "%s: Bad inode magic number, dip = "PTR_FMT", dino bp = "PTR_FMT", ino = %Ld", __func__, dip, bp, in_f->ilf_ino); |