diff options
author | Dave Chinner <dchinner@redhat.com> | 2013-09-01 23:22:58 -0400 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2013-09-09 17:42:48 -0400 |
commit | e9fbbad8d8b2cbd6df7f237e0b4de02d63837ce1 (patch) | |
tree | 6e40e3bac508dc0ae77af8531ba085933d602503 | |
parent | 1d03c6fa88af35e55047a1f2ab116f0fdf2f55aa (diff) |
xfs: fix endian warning in xlog_recover_get_buf_lsn()
sparse reports:
fs/xfs/xfs_log_recover.c:2017:24: sparse: cast to restricted __be64
Because I used the wrong structure for the on-disk superblock cast
in 50d5c8d ("xfs: check LSN ordering for v5 superblocks during
recovery"). Fix it.
Reported-by: kbuild test robot
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ben Myers <bpm@sgi.com>
-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 7c0c1fdc728b..1728c7c016a6 100644 --- a/fs/xfs/xfs_log_recover.c +++ b/fs/xfs/xfs_log_recover.c | |||
@@ -2014,7 +2014,7 @@ xlog_recover_get_buf_lsn( | |||
2014 | case XFS_ATTR3_RMT_MAGIC: | 2014 | case XFS_ATTR3_RMT_MAGIC: |
2015 | return be64_to_cpu(((struct xfs_attr3_rmt_hdr *)blk)->rm_lsn); | 2015 | return be64_to_cpu(((struct xfs_attr3_rmt_hdr *)blk)->rm_lsn); |
2016 | case XFS_SB_MAGIC: | 2016 | case XFS_SB_MAGIC: |
2017 | return be64_to_cpu(((struct xfs_sb *)blk)->sb_lsn); | 2017 | return be64_to_cpu(((struct xfs_dsb *)blk)->sb_lsn); |
2018 | default: | 2018 | default: |
2019 | break; | 2019 | break; |
2020 | } | 2020 | } |