On Wed, 23 Oct 2024 15:37:22 +0200, Christoph Hellwig wrote: > When the main loop in xfs_filestream_pick_ag fails to find a suitable > AG it tries to just pick the online AG. But the loop for that uses > args->pag as loop iterator while the later code expects pag to be > set. Fix this by reusing the max_pag case for this last resort, and > also add a check for impossible case of no AG just to make sure that > the uninitialized pag doesn't even escape in theory. > > [...] Applied to for-next, thanks! [1/2] xfs: fix finding a last resort AG in xfs_filestream_pick_ag commit: dc60992ce76fbc2f71c2674f435ff6bde2108028 [2/2] xfs: streamline xfs_filestream_pick_ag commit: 81a1e1c32ef474c20ccb9f730afe1ac25b1c62a4 Best regards, -- Carlos Maiolino <cem@xxxxxxxxxx>