Message ID | 20230410160727.3748239-1-ryasuoka@redhat.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2003618vqo; Mon, 10 Apr 2023 09:20:40 -0700 (PDT) X-Google-Smtp-Source: AKy350a8+IYLYODhR0G2KTlqVLCwUGuHRSBkQTM0wghc+BZGYlOp279zhpYNR0MY2sObp5xdgl6o X-Received: by 2002:a17:90b:1643:b0:23f:7ff6:eb8 with SMTP id il3-20020a17090b164300b0023f7ff60eb8mr14761688pjb.31.1681143639959; Mon, 10 Apr 2023 09:20:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681143639; cv=none; d=google.com; s=arc-20160816; b=qWbVMvFJ4dqjLp7Y3CT2cHL+X7KyCrH/I0REo00OB5azo+ulDBlbcsbWDLxxyoJBsb ojvLws4SS5e7dE3gP929Byf8R/YnrwEFqCKHEjuT5FT0Efuu6TrHIXB6x2fBH000zfrX 2/zZn81N/W2wie1ko30zkDfev4J+8ITxRYLyT5RxEsMc+psUj8fn5tYfAywGQvTnPLfZ f9f/PCN9lBp8jIa/mym02WhwT+TMczqpJ8hVLKAOlpM/JxNqPpvOYBoS5USnXqHoo5hw EGycRwoPpKs6IX8rscUD8SXtZ1lOlJVIvkRFxY0Snod/u+6AQ+/eV/7862xLpaiAAE7e dhtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=tKyrBwfd2oDcUs2lWJFq6u064SVhVNeOSwEIW7vUOn0=; b=UyqFMhVo2dz8zNAFShg0AF0QOXQ6D9XSPujQaS3HDggfYIXHg+53u4+qiAVcdNxCRK k2oxZiTq1bRdbO6mzCnjNo7i08N7S+p1nDjprvNVLE87e6r4DNQIAgePIuaGCXG05EQX HPe281oJikkPb9LnX0tWZ5gQcomEixrqeyi4JCydl929+bDQ1lbPeJuOCOIrx6Ln1rej CVRfUblCBCEFHykTc/WwhbqYvXqvCoa/RbzOLhHqBYgjA/V0dRhia63ZyavRFHJtC5/o CNp6ktwliQXwsdpqIsqzFwu7KPisTGwWmb9xs/MP4FOdhfRFgR8N/oVT4uT3omUw78lq /G/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Pyrq1cIk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mu2-20020a17090b388200b00246ccecce26si608650pjb.138.2023.04.10.09.20.28; Mon, 10 Apr 2023 09:20:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Pyrq1cIk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229910AbjDJQIs (ORCPT <rfc822;yuanzuo1009@gmail.com> + 99 others); Mon, 10 Apr 2023 12:08:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229771AbjDJQIr (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 10 Apr 2023 12:08:47 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3FB4E6C for <linux-kernel@vger.kernel.org>; Mon, 10 Apr 2023 09:08:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1681142883; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=tKyrBwfd2oDcUs2lWJFq6u064SVhVNeOSwEIW7vUOn0=; b=Pyrq1cIkydbSwiAL9LsPDsEtHgf7yJEOHwpFd8kv52v5Sl+MEcxWyQiD6J0kXTZBi5MAQI 1cwNINemyMD6Pl5tvsjYEhBr6wNM83F+/cZ71EoZUTp7E/gWmIgP/r6QfBKG47elVQww5E 9IcRVBZ8nIQt+74btvdwkST1SPGuhuk= Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-20-a5UfyMqANqqY1B2Gf3yZbA-1; Mon, 10 Apr 2023 12:08:02 -0400 X-MC-Unique: a5UfyMqANqqY1B2Gf3yZbA-1 Received: by mail-pg1-f198.google.com with SMTP id j62-20020a638041000000b0051827ed9c15so1989262pgd.7 for <linux-kernel@vger.kernel.org>; Mon, 10 Apr 2023 09:08:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681142881; x=1683734881; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=tKyrBwfd2oDcUs2lWJFq6u064SVhVNeOSwEIW7vUOn0=; b=aciMMqy0HbB1w2O8vEgmGQZC2CBnCRlArJ4NISvI4uwW+JtRAhPW7XOTpQYkhcxiHd 1pCg+h0Gwu5Ca3HTA/Thf419alIgaOrYD6g5HzmdWZBj5gbEpMmN40Qwb8/2Tpa59PDC FaLaZm8InEjNdjG1TJOP6wF1dJ10TYRKWy4K+sm+EJkkdE7mH/bw1tuHhqritGIGSN7v x/GtPooFGTmY14fgezDNFDIy2/Z0M9i2Nk6Qr46o1R7nR1VEigFcbA0EwOtwsyhcXWAP Bsw4Y1HvspfoWVKSlTKzekoMozw46VTMxnurMsEVbdNVg7o95Z0jB9SUT0zKTs/jkx9l ddKA== X-Gm-Message-State: AAQBX9e1BcoPnLv/wb9gLRcSBnonsYZ5ebK6CS9HmATpqHQ/C1Ho9a4M QdUNqriJwiFYNuGtFAMU+b5Li4lRtfQChzFDrwYZvxkrKu/Be99SrBKRbPsXYBgocMCjmhLL7SF ooBJ+yjtA2myo46+nFSMdwgdn X-Received: by 2002:a05:6a20:7a86:b0:e4:2a2c:869b with SMTP id u6-20020a056a207a8600b000e42a2c869bmr12067471pzh.36.1681142881291; Mon, 10 Apr 2023 09:08:01 -0700 (PDT) X-Received: by 2002:a05:6a20:7a86:b0:e4:2a2c:869b with SMTP id u6-20020a056a207a8600b000e42a2c869bmr12067447pzh.36.1681142880863; Mon, 10 Apr 2023 09:08:00 -0700 (PDT) Received: from zeus.elecom ([240b:10:83a2:bd00:6e35:f2f5:2e21:ae3a]) by smtp.gmail.com with ESMTPSA id l14-20020a63da4e000000b005004919b31dsm3449040pgj.72.2023.04.10.09.07.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Apr 2023 09:08:00 -0700 (PDT) From: Ryosuke Yasuoka <ryasuoka@redhat.com> To: djwong@kernel.org Cc: linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org, sandeen@sandeen.net, david@fromorbit.com, Ryosuke Yasuoka <ryasuoka@redhat.com> Subject: [PATCH v2] xfs: Use for_each_perag_from() to iterate all available AGs Date: Tue, 11 Apr 2023 01:07:27 +0900 Message-Id: <20230410160727.3748239-1-ryasuoka@redhat.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762806873346952812?= X-GMAIL-MSGID: =?utf-8?q?1762806873346952812?= |
Series |
[v2] xfs: Use for_each_perag_from() to iterate all available AGs
|
|
Commit Message
Ryosuke Yasuoka
April 10, 2023, 4:07 p.m. UTC
xfs_filestream_pick_ag() iterates all the available AGs when no
unassociated AGs are available by using for_each_perag_wrap().
To iterate all the available AGs, just use for_each_perag_from() instead.
This patch cleans up a code where xfs_filestream_pick_ag() iterates
all the available AGs when no unassociated AGs are available.
Current implementation is using a for_each_perag_wrap() macro which
iterates all AGs from start_agno through wrap_agno, wraps to
restart_agno, and then iterates again toward to (start_agno - 1).
In this case, xfs_filestream_pick_ag() start to iterate from 0 and
does't need to wrap. Although passing 0 as start_agno to
for_each_perag_wrap()
is not problematic, we have already a for_each_perag() macro family
which just iterates all AGs from 0 and doesn't wrap. Hense, I propose
to use for_each_perag() family simply.
Changes since v1 [1]:
Use for_each_perag_from() instead of for_each_perag() to clarify
where we are iterating from.
[1]:
https://lore.kernel.org/linux-xfs/CAHpthZrvhqh8O1HO7U_jVnaq9R9Ur=Yq2eWzjWfNx3ryDbnGPA@mail.gmail.com/T/#m5704d0409bec1ce5273be0d3860e8ad60e9886fd
Signed-off-by: Ryosuke Yasuoka <ryasuoka@redhat.com>
---
fs/xfs/xfs_filestream.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Comments
On Tue, Apr 11, 2023 at 01:07:27AM +0900, Ryosuke Yasuoka wrote: > xfs_filestream_pick_ag() iterates all the available AGs when no > unassociated AGs are available by using for_each_perag_wrap(). > To iterate all the available AGs, just use for_each_perag_from() instead. > > > This patch cleans up a code where xfs_filestream_pick_ag() iterates > all the available AGs when no unassociated AGs are available. > Current implementation is using a for_each_perag_wrap() macro which > iterates all AGs from start_agno through wrap_agno, wraps to > restart_agno, and then iterates again toward to (start_agno - 1). > In this case, xfs_filestream_pick_ag() start to iterate from 0 and > does't need to wrap. Although passing 0 as start_agno to > for_each_perag_wrap() > is not problematic, we have already a for_each_perag() macro family > which just iterates all AGs from 0 and doesn't wrap. Hense, I propose > to use for_each_perag() family simply. > > > Changes since v1 [1]: > Use for_each_perag_from() instead of for_each_perag() to clarify > where we are iterating from. > > [1]: > https://lore.kernel.org/linux-xfs/CAHpthZrvhqh8O1HO7U_jVnaq9R9Ur=Yq2eWzjWfNx3ryDbnGPA@mail.gmail.com/T/#m5704d0409bec1ce5273be0d3860e8ad60e9886fd > > Signed-off-by: Ryosuke Yasuoka <ryasuoka@redhat.com> > --- > fs/xfs/xfs_filestream.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/fs/xfs/xfs_filestream.c b/fs/xfs/xfs_filestream.c > index 22c13933c8f8..29acd9f7d422 100644 > --- a/fs/xfs/xfs_filestream.c > +++ b/fs/xfs/xfs_filestream.c > @@ -151,7 +151,8 @@ xfs_filestream_pick_ag( > * grab. > */ > if (!max_pag) { > - for_each_perag_wrap(args->mp, 0, start_agno, args->pag) > + start_agno = 0; > + for_each_perag_from(args->mp, start_agno, args->pag) IDGI. for_each_perag initializes the loop variable and calls for_each_perag_from, so this is open-coding an existing macro. If people are confused by the reuse of the function call parameter variable for the second loop, then either declare a new variable and let the compiler notice that we never use start_agno ever again and reuse a cpu register: if (!max_pag) { xfs_agnumber_t agno; for_each_perag(args->mp, agno, args->pag) break; ... } Or reuse it explicitly and leave a comment: if (!max_pag) { /* * Use any AG that we can grab. start_agno is no longer * pertinent here so we can reuse the variable. */ for_each_perag(args->mp, start_agno, args->pag) break; ... } As a third alternative, I suppose you could encapsulate all of that into a dorky helper since I bet this isn't the first or the last time we're going to need something like this: static inline struct xfs_perag * xfs_perag_get_first_avail( struct xfs_mount *mp) { struct xfs_perag *pag; xfs_agnumber_t agno; for_each_perag(mp, agno, pag) return pag; ASSERT(0); return NULL; } if (!max_pag) { args->pag = xfs_perag_get_first_avail(mp); ... } --D > break; > atomic_inc(&args->pag->pagf_fstrms); > *longest = 0; > -- > 2.39.2 >
On Mon, Apr 10, 2023 at 09:30:29AM -0700, Darrick J. Wong wrote: > On Tue, Apr 11, 2023 at 01:07:27AM +0900, Ryosuke Yasuoka wrote: > > xfs_filestream_pick_ag() iterates all the available AGs when no > > unassociated AGs are available by using for_each_perag_wrap(). > > To iterate all the available AGs, just use for_each_perag_from() instead. > > > > > > This patch cleans up a code where xfs_filestream_pick_ag() iterates > > all the available AGs when no unassociated AGs are available. > > Current implementation is using a for_each_perag_wrap() macro which > > iterates all AGs from start_agno through wrap_agno, wraps to > > restart_agno, and then iterates again toward to (start_agno - 1). > > In this case, xfs_filestream_pick_ag() start to iterate from 0 and > > does't need to wrap. Although passing 0 as start_agno to > > for_each_perag_wrap() > > is not problematic, we have already a for_each_perag() macro family > > which just iterates all AGs from 0 and doesn't wrap. Hense, I propose > > to use for_each_perag() family simply. > > > > > > Changes since v1 [1]: > > Use for_each_perag_from() instead of for_each_perag() to clarify > > where we are iterating from. > > > > [1]: > > https://lore.kernel.org/linux-xfs/CAHpthZrvhqh8O1HO7U_jVnaq9R9Ur=Yq2eWzjWfNx3ryDbnGPA@mail.gmail.com/T/#m5704d0409bec1ce5273be0d3860e8ad60e9886fd > > > > Signed-off-by: Ryosuke Yasuoka <ryasuoka@redhat.com> > > --- > > fs/xfs/xfs_filestream.c | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > diff --git a/fs/xfs/xfs_filestream.c b/fs/xfs/xfs_filestream.c > > index 22c13933c8f8..29acd9f7d422 100644 > > --- a/fs/xfs/xfs_filestream.c > > +++ b/fs/xfs/xfs_filestream.c > > @@ -151,7 +151,8 @@ xfs_filestream_pick_ag( Oh, also -- I ran the whole codebase through smatch this morning. Could you please set @err to zero in its declaration above? If the first for_each_perag_wrap never manages to get any perag structures (currently impossible with the codebase) then err will be undefined and probably nonzero. CHECK fs/xfs/xfs_filestream.c fs/xfs/xfs_filestream.c:120 xfs_filestream_pick_ag() error: uninitialized symbol 'err'. --D > > * grab. > > */ > > if (!max_pag) { > > - for_each_perag_wrap(args->mp, 0, start_agno, args->pag) > > + start_agno = 0; > > + for_each_perag_from(args->mp, start_agno, args->pag) > > IDGI. for_each_perag initializes the loop variable and calls > for_each_perag_from, so this is open-coding an existing macro. > > If people are confused by the reuse of the function call parameter > variable for the second loop, then either declare a new variable and let > the compiler notice that we never use start_agno ever again and reuse > a cpu register: > > if (!max_pag) { > xfs_agnumber_t agno; > > for_each_perag(args->mp, agno, args->pag) > break; > ... > } > > Or reuse it explicitly and leave a comment: > > if (!max_pag) { > /* > * Use any AG that we can grab. start_agno is no longer > * pertinent here so we can reuse the variable. > */ > for_each_perag(args->mp, start_agno, args->pag) > break; > ... > } > > As a third alternative, I suppose you could encapsulate all of that into > a dorky helper since I bet this isn't the first or the last time we're > going to need something like this: > > static inline struct xfs_perag * > xfs_perag_get_first_avail( > struct xfs_mount *mp) > { > struct xfs_perag *pag; > xfs_agnumber_t agno; > > for_each_perag(mp, agno, pag) > return pag; > > ASSERT(0); > return NULL; > } > > if (!max_pag) { > args->pag = xfs_perag_get_first_avail(mp); > ... > } > > --D > > > break; > > atomic_inc(&args->pag->pagf_fstrms); > > *longest = 0; > > -- > > 2.39.2 > >
Darrick Thank you for reviewing. On Tue, Apr 11, 2023 at 1:30 AM Darrick J. Wong <djwong@kernel.org> wrote: > > On Tue, Apr 11, 2023 at 01:07:27AM +0900, Ryosuke Yasuoka wrote: > > xfs_filestream_pick_ag() iterates all the available AGs when no > > unassociated AGs are available by using for_each_perag_wrap(). > > To iterate all the available AGs, just use for_each_perag_from() instead. > > > > > > This patch cleans up a code where xfs_filestream_pick_ag() iterates > > all the available AGs when no unassociated AGs are available. > > Current implementation is using a for_each_perag_wrap() macro which > > iterates all AGs from start_agno through wrap_agno, wraps to > > restart_agno, and then iterates again toward to (start_agno - 1). > > In this case, xfs_filestream_pick_ag() start to iterate from 0 and > > does't need to wrap. Although passing 0 as start_agno to > > for_each_perag_wrap() > > is not problematic, we have already a for_each_perag() macro family > > which just iterates all AGs from 0 and doesn't wrap. Hense, I propose > > to use for_each_perag() family simply. > > > > > > Changes since v1 [1]: > > Use for_each_perag_from() instead of for_each_perag() to clarify > > where we are iterating from. > > > > [1]: > > https://lore.kernel.org/linux-xfs/CAHpthZrvhqh8O1HO7U_jVnaq9R9Ur=Yq2eWzjWfNx3ryDbnGPA@mail.gmail.com/T/#m5704d0409bec1ce5273be0d3860e8ad60e9886fd > > > > Signed-off-by: Ryosuke Yasuoka <ryasuoka@redhat.com> > > --- > > fs/xfs/xfs_filestream.c | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > diff --git a/fs/xfs/xfs_filestream.c b/fs/xfs/xfs_filestream.c > > index 22c13933c8f8..29acd9f7d422 100644 > > --- a/fs/xfs/xfs_filestream.c > > +++ b/fs/xfs/xfs_filestream.c > > @@ -151,7 +151,8 @@ xfs_filestream_pick_ag( > > * grab. > > */ > > if (!max_pag) { > > - for_each_perag_wrap(args->mp, 0, start_agno, args->pag) > > + start_agno = 0; > > + for_each_perag_from(args->mp, start_agno, args->pag) > > IDGI. for_each_perag initializes the loop variable and calls > for_each_perag_from, so this is open-coding an existing macro. > > If people are confused by the reuse of the function call parameter > variable for the second loop, then either declare a new variable and let > the compiler notice that we never use start_agno ever again and reuse > a cpu register: > > if (!max_pag) { > xfs_agnumber_t agno; > > for_each_perag(args->mp, agno, args->pag) > break; > ... > } > > Or reuse it explicitly and leave a comment: > > if (!max_pag) { > /* > * Use any AG that we can grab. start_agno is no longer > * pertinent here so we can reuse the variable. > */ > for_each_perag(args->mp, start_agno, args->pag) > break; > ... > } > > As a third alternative, I suppose you could encapsulate all of that into > a dorky helper since I bet this isn't the first or the last time we're > going to need something like this: > > static inline struct xfs_perag * > xfs_perag_get_first_avail( > struct xfs_mount *mp) > { > struct xfs_perag *pag; > xfs_agnumber_t agno; > > for_each_perag(mp, agno, pag) > return pag; > > ASSERT(0); > return NULL; > } > > if (!max_pag) { > args->pag = xfs_perag_get_first_avail(mp); > ... > } OK. I update my patch with your third alternative. I'll add xfs_perag_get_first_avail() in xfs_filestream.h. It is a great idea because it can detect with ASSERT(0) if for_each_perag() gets no pag structure. The following syzbot bug [2] is an indeed pattern of this. [2]: https://syzkaller.appspot.com/bug?id=f7682cf37b02ddf3c87d88b80f74024cf330017b On Tue, Apr 11, 2023 at 2:59 AM Darrick J. Wong <djwong@kernel.org> wrote: > > Oh, also -- I ran the whole codebase through smatch this morning. > Could you please set @err to zero in its declaration above? If the > first for_each_perag_wrap never manages to get any perag structures > (currently impossible with the codebase) then err will be undefined and > probably nonzero. > > CHECK fs/xfs/xfs_filestream.c > fs/xfs/xfs_filestream.c:120 > xfs_filestream_pick_ag() error: uninitialized symbol 'err'. > > --D OK. I will also update it like this. Is my understanding correct? @@ -67,7 +67,7 @@ xfs_filestream_pick_ag( xfs_extlen_t free = 0, minfree, maxfree = 0; xfs_agnumber_t agno; bool first_pass = true; - int err; + int err = 0; Best regards, Ryosuke
diff --git a/fs/xfs/xfs_filestream.c b/fs/xfs/xfs_filestream.c index 22c13933c8f8..29acd9f7d422 100644 --- a/fs/xfs/xfs_filestream.c +++ b/fs/xfs/xfs_filestream.c @@ -151,7 +151,8 @@ xfs_filestream_pick_ag( * grab. */ if (!max_pag) { - for_each_perag_wrap(args->mp, 0, start_agno, args->pag) + start_agno = 0; + for_each_perag_from(args->mp, start_agno, args->pag) break; atomic_inc(&args->pag->pagf_fstrms); *longest = 0;