From patchwork Mon May 19 13:48:04 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Howells X-Patchwork-Id: 893729 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DDC1A28541A for ; Mon, 19 May 2025 13:49:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747662554; cv=none; b=t1ZkzDOX7NQPNksrgGPfeqfec2g8ssGddz00RKjkw9guovabWrIgjIZ7eXgv8PbH+VVuDaGjhAsG8K3+jrwDI8IWC3zDKLyWom0EFIrJkZSuVZRR9gD+mRZgHMLtDnJVCzMZJAyhnoEmBkjY8BWrD8+KL9vNH/qGjKktgm7M03U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747662554; c=relaxed/simple; bh=UCoMdICp/gw89XIbdQM+OmSIRLQL7az7fwhXkn4tDLM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=X+d2W8VR22XEsYmXyvVt4k0G3qtDDbyKCbpWXw/cF5mgOPl/PV5MseZL2nj1Rg391vA8CEDmsEdeUL81dNpgjJOlCx+Gdegcgi/e6UCMz30F+7ihaxd/nPLN/6ab2zwM3hGsC2+sMsi6e3HKB1nx7s1dh7izeJrpMhEhsgMwIfg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=WedDtIPw; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="WedDtIPw" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1747662552; 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: in-reply-to:in-reply-to:references:references; bh=DPjMJJz2v4n37NQzAn1i/LDtyNv/dDQ+9/+iNZyVoKo=; b=WedDtIPwQVurA5UIfNv6/auKCKdWAF+X6UEjHIkp2a7GHDsCLBFWN+YEPtFWkp8G8OK6K1 it05jhLY52+gk35ZFnZY1v9q20o+oHBnKoIsEW9Xou0CEGxPM1s5sR7T4wEdCaX5Ce9AS7 BenGrltndTDxYfReRvGVQX/fy2VBIm0= Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-385-VnAWM9DbMCu6SncNgvJyQA-1; Mon, 19 May 2025 09:49:08 -0400 X-MC-Unique: VnAWM9DbMCu6SncNgvJyQA-1 X-Mimecast-MFC-AGG-ID: VnAWM9DbMCu6SncNgvJyQA_1747662547 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 032A8180087B; Mon, 19 May 2025 13:49:07 +0000 (UTC) Received: from warthog.procyon.org.com (unknown [10.42.28.188]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id DD608180045B; Mon, 19 May 2025 13:49:03 +0000 (UTC) From: David Howells To: Christian Brauner Cc: David Howells , Paulo Alcantara , Max Kellermann , netfs@lists.linux.dev, linux-afs@lists.infradead.org, linux-cifs@vger.kernel.org, linux-nfs@vger.kernel.org, ceph-devel@vger.kernel.org, v9fs@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 08/11] fs/netfs: declare field `proc_link` only if CONFIG_PROC_FS=y Date: Mon, 19 May 2025 14:48:04 +0100 Message-ID: <20250519134813.2975312-9-dhowells@redhat.com> In-Reply-To: <20250519134813.2975312-1-dhowells@redhat.com> References: <20250519134813.2975312-1-dhowells@redhat.com> Precedence: bulk X-Mailing-List: ceph-devel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 From: Max Kellermann This field is only used for the "proc" filesystem. Signed-off-by: Max Kellermann Signed-off-by: David Howells cc: Paulo Alcantara cc: netfs@lists.linux.dev cc: linux-fsdevel@vger.kernel.org --- include/linux/netfs.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/netfs.h b/include/linux/netfs.h index 2b127527544e..3f7056d837f8 100644 --- a/include/linux/netfs.h +++ b/include/linux/netfs.h @@ -228,7 +228,9 @@ struct netfs_io_request { struct kiocb *iocb; /* AIO completion vector */ struct netfs_cache_resources cache_resources; struct netfs_io_request *copy_to_cache; /* Request to write just-read data to the cache */ +#ifdef CONFIG_PROC_FS struct list_head proc_link; /* Link in netfs_iorequests */ +#endif struct netfs_io_stream io_streams[2]; /* Streams of parallel I/O operations */ #define NR_IO_STREAMS 2 //wreq->nr_io_streams struct netfs_group *group; /* Writeback group being written back */