]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: simplify xfs_iomap_eof_align_last_fsb
authorChristoph Hellwig <hch@lst.de>
Wed, 30 Oct 2019 19:24:57 +0000 (12:24 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Sun, 3 Nov 2019 18:22:30 +0000 (10:22 -0800)
commitdf51efd965df48c1b02aee1dc9c8111d4c6848e6
tree7e6db2208335549db39a7a1c6d11e11d5428887b
parent90326260e8f68b01c0191fa6a2d6e92b02060c2b
xfs: simplify xfs_iomap_eof_align_last_fsb

By open coding xfs_bmap_last_extent instead of calling it through a
double indirection we don't need to handle an error return that
can't happen given that we are guaranteed to have the extent list in
memory already.  Also simplify the calling conventions a little and
move the extent list assert from the only caller into the function.

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_bmap_util.c
fs/xfs/xfs_bmap_util.h
fs/xfs/xfs_iomap.c