OSDN Git Service

xfs: return an offset instead of a pointer from xlog_align
authorChristoph Hellwig <hch@lst.de>
Sat, 29 Jun 2019 02:27:26 +0000 (19:27 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Sat, 29 Jun 2019 02:27:26 +0000 (19:27 -0700)
commit18ffb8c3f0bfd2a0b92026eb43651591288c3a39
treed9703d53de314f97f178af7949dd362c2658e161
parent1058d0f5eeb422325e2574dbd88927dc821dee57
xfs: return an offset instead of a pointer from xlog_align

This simplifies both the helper and the callers.  We lost a bit of
size sanity checking, but that is already covered by KASAN if needed.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_log_recover.c