From patchwork Fri Jun 10 19:56:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Howells X-Patchwork-Id: 12878021 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A9616C433EF for ; Fri, 10 Jun 2022 19:57:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350525AbiFJT5B (ORCPT ); Fri, 10 Jun 2022 15:57:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350216AbiFJT46 (ORCPT ); Fri, 10 Jun 2022 15:56:58 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7FDDF1147B for ; Fri, 10 Jun 2022 12:56:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1654891015; h=from:from:reply-to:subject:subject:date:date:message-id:message-id:to: cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=irp9I7bg5aP2EcRerJx9k5cqapFEVHVDaAOauS4ZbRQ=; b=W13vQjgo8f9GO64Keid/uOeRE1Bphu+FhJVjVCf1iecZaAPQhaENDgGZVhbm5aiM6VtCIX pwv6uOmvvjTkXeQIXNWaTuGC/2XLmrUzkBeLpPTKy4UtWTxJsULM9amkw8FtL3ccznwzAg ZSoFxnDTy4Wjskag3Ylhqbj7z0B8R3c= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-121----5JlC7Nga4prmah_EWXw-1; Fri, 10 Jun 2022 15:56:49 -0400 X-MC-Unique: ---5JlC7Nga4prmah_EWXw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 6B090801756; Fri, 10 Jun 2022 19:56:48 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.33.36.62]) by smtp.corp.redhat.com (Postfix) with ESMTP id B1B6F40CF8EF; Fri, 10 Jun 2022 19:56:46 +0000 (UTC) Subject: [RFC][PATCH 0/3] netfs, afs: Cleanups From: David Howells Cc: linux-cachefs@redhat.com, linux-afs@lists.infradead.org, Jeff Layton , dhowells@redhat.com, Linus Torvalds , Jeff Layton , linux-afs@lists.infradead.org, linux-nfs@vger.kernel.org, linux-cifs@vger.kernel.org, ceph-devel@vger.kernel.org, v9fs-developer@lists.sourceforge.net, linux-erofs@lists.ozlabs.org, linux-cachefs@redhat.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Date: Fri, 10 Jun 2022 20:56:45 +0100 Message-ID: <165489100590.703883.11054313979289027590.stgit@warthog.procyon.org.uk> User-Agent: StGit/1.4 MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.11.54.1 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Hi Linus, Here are some cleanups, one for afs and a couple for netfs: (1) The afs patch cleans up a checker complaint. (2) The first netfs patch is your netfs_inode changes plus the requisite documentation changes. (3) The second netfs patch replaces the ->cleanup op with a ->free_request op. This is possible as the I/O request is now always available at the cleanup point as the stuff to be cleaned up is no longer passed into the API functions, but rather obtained by ->init_request. I've run the patches through xfstests with -g quick on afs. The patches are on a branch here: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/log/?h=fscache-fixes David --- David Howells (2): afs: Fix some checker issues netfs: Rename the netfs_io_request cleanup op and give it an op pointer Linus Torvalds (1): netfs: Further cleanups after struct netfs_inode wrapper introduced Documentation/filesystems/netfs_library.rst | 33 +++++++++++---------- fs/9p/v9fs.h | 2 +- fs/9p/vfs_addr.c | 13 ++++---- fs/9p/vfs_inode.c | 3 +- fs/afs/dynroot.c | 2 +- fs/afs/file.c | 6 ++-- fs/afs/inode.c | 2 +- fs/afs/internal.h | 2 +- fs/afs/volume.c | 3 +- fs/afs/write.c | 2 +- fs/ceph/addr.c | 12 ++++---- fs/ceph/cache.h | 2 +- fs/ceph/inode.c | 2 +- fs/cifs/fscache.h | 2 +- fs/netfs/buffered_read.c | 5 ++-- fs/netfs/objects.c | 6 ++-- include/linux/netfs.h | 25 +++++++--------- 17 files changed, 60 insertions(+), 62 deletions(-)