diff options
author | 2024-10-23 15:37:23 +0200 | |
---|---|---|
committer | 2024-10-30 11:27:18 +0100 | |
commit | 81a1e1c32ef474c20ccb9f730afe1ac25b1c62a4 (patch) | |
tree | 239ac6892f198ca198ad7bcec7291a0317cee020 /scripts/generate_rust_analyzer.py | |
parent | xfs: fix finding a last resort AG in xfs_filestream_pick_ag (diff) | |
download | linux-rng-81a1e1c32ef474c20ccb9f730afe1ac25b1c62a4.tar.xz linux-rng-81a1e1c32ef474c20ccb9f730afe1ac25b1c62a4.zip |
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>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions