]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit30fd0f956c7f7103b7fd2450ab27648e95e84672
treed9703d53de314f97f178af7949dd362c2658e161
parent67e5403520d775b5d473d25455a7638e40fbd3b3
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