xfs: use xfs_trans_getsb in xfs_sync_sb_buf
authorEric Sandeen <sandeen@redhat.com>
Tue, 5 Jun 2018 00:29:09 +0000 (17:29 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 5 Jun 2018 01:25:05 +0000 (18:25 -0700)
commit89c2e71123badc1e75316ccd969ee8a5c6fd921a
tree380be5c7fcc8dd652dc8700ab58c6b0993c1f524
parentd2e736654247dcfe98e2b86fa2ee77fb36292144
xfs: use xfs_trans_getsb in xfs_sync_sb_buf

Use xfs_trans_getsb rather than reaching right in for
mp->m_sb_bp; I think this is more correct, and it facilitates
building this libxfs code in userspace as well.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/libxfs/xfs_sb.c