public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xfs: Use for_each_perag() to iterate all available AGs
@ 2023-04-04  8:47 Ryosuke Yasuoka
  2023-04-04 14:19 ` Eric Sandeen
  2023-04-05  1:04 ` Dave Chinner
  0 siblings, 2 replies; 7+ messages in thread
From: Ryosuke Yasuoka @ 2023-04-04  8:47 UTC (permalink / raw)
  To: djwong; +Cc: Ryosuke Yasuoka, linux-xfs, linux-kernel

for_each_perag_wrap() doesn't expect 0 as 2nd arg.
To iterate all the available AGs, just use for_each_perag() instead.

Signed-off-by: Ryosuke Yasuoka <ryasuoka@redhat.com>
---
 fs/xfs/xfs_filestream.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/xfs/xfs_filestream.c b/fs/xfs/xfs_filestream.c
index 22c13933c8f8..48f43c340c58 100644
--- a/fs/xfs/xfs_filestream.c
+++ b/fs/xfs/xfs_filestream.c
@@ -151,7 +151,7 @@ xfs_filestream_pick_ag(
 		 * grab.
 		 */
 		if (!max_pag) {
-			for_each_perag_wrap(args->mp, 0, start_agno, args->pag)
+			for_each_perag(args->mp, start_agno, args->pag)
 				break;
 			atomic_inc(&args->pag->pagf_fstrms);
 			*longest = 0;
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-04-07 13:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-04  8:47 [PATCH] xfs: Use for_each_perag() to iterate all available AGs Ryosuke Yasuoka
2023-04-04 14:19 ` Eric Sandeen
2023-04-06 16:03   ` Ryosuke Yasuoka
2023-04-07 13:24     ` Eric Sandeen
2023-04-05  1:04 ` Dave Chinner
     [not found]   ` <CAHpthZoWRWS2bXFDQrB+iOz7AA_ZLGJKmytHjN582VaWQ_TRwg@mail.gmail.com>
2023-04-05 23:04     ` Dave Chinner
2023-04-07  9:06       ` Ryosuke Yasuoka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox