]> www.infradead.org Git - users/hch/misc.git/commit
xfs: streamline xfs_filestream_pick_ag
authorChristoph Hellwig <hch@lst.de>
Tue, 22 Oct 2024 09:37:11 +0000 (11:37 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 22 Oct 2024 09:37:11 +0000 (11:37 +0200)
commitd41d80a9a8fbd8514017cac4d28227df91649969
tree6f229e87a4bd2fdce0484b185a4fdc10986f1701
parentc2ee9f594da826bea183ed14f2cc029c719bf4da
xfs: streamline xfs_filestream_pick_ag

Directly return the error from xfs_bmap_longest_free_extent instead
of breaking from the loop and handling it there, and use a done
label to directly jump to the exist when we found a suitable perag
structure to reduce the indentation level and pag/max_pag check
complexity in the tail of the function.

Signed-off-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_filestream.c