Message ID | 20241108173236.1382366-15-dhowells@redhat.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id ACD3BD64072 for <linux-mm@archiver.kernel.org>; Fri, 8 Nov 2024 17:34:37 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3D9E66B00B4; Fri, 8 Nov 2024 12:34:37 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 389016B00B6; Fri, 8 Nov 2024 12:34:37 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 20DF36B00B7; Fri, 8 Nov 2024 12:34:37 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id F3C6E6B00B4 for <linux-mm@kvack.org>; Fri, 8 Nov 2024 12:34:36 -0500 (EST) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 8954B140E86 for <linux-mm@kvack.org>; Fri, 8 Nov 2024 17:34:36 +0000 (UTC) X-FDA: 82763625462.07.C42A2F6 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf15.hostedemail.com (Postfix) with ESMTP id 0252AA0008 for <linux-mm@kvack.org>; Fri, 8 Nov 2024 17:33:56 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=gQrrk+Fm; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf15.hostedemail.com: domain of dhowells@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=dhowells@redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1731087103; a=rsa-sha256; cv=none; b=zfQcJcKug79RlVRuNmkT0lBsrexesf48dy/jSbvyAtzw4rNldmZPVpoRtVMswjy8011Y4u 5VSeUU7Qg6mLT/kDykFNxzhDLO0eqVH1jKETuFMqux6DtLC+doul5/+qYS8YDWs7thAYyJ d6E5JJ4BxGjQvsGAGsV0iZDLMKk1ai4= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=gQrrk+Fm; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf15.hostedemail.com: domain of dhowells@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=dhowells@redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1731087103; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=E8xdMX/uFcK2gZEOhPcswqOMkVx14v1DliFqQKEHbv4=; b=AgTotr4ubLljkFkXEOuHm6b96aYXYyXI/aTiC0KBhN8LFOOafPV4fXriuYW7Zm3d07VuV9 1wQv2JLRwE3/L82+Xsop/m3vlWthXxApzyww9dfx0WBp4bpOYfZ9NOeMbtUyH6cL18VDMh UWkbWa7aLuVkj0i5c/7SvAnTpFXqWS4= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1731087274; 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=E8xdMX/uFcK2gZEOhPcswqOMkVx14v1DliFqQKEHbv4=; b=gQrrk+FmNEoVrweUoyW67vSEW5oTJuCHYEP2xLWUgYqT0UcRxOlyd5FFqG/pnOUX4p3H7T OBDNJiqpP0h/mYaQBI8soOCp0MaXwkAZHf3Gr0kn8rphfkd+FV9HXQVGRPTOrGofQDEb7B XxjAmARqQJcn8r4gRdfZxXPTjomv4p0= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-404-48C0RI4NNNuNGyazsDs61w-1; Fri, 08 Nov 2024 12:34:30 -0500 X-MC-Unique: 48C0RI4NNNuNGyazsDs61w-1 X-Mimecast-MFC-AGG-ID: 48C0RI4NNNuNGyazsDs61w Received: from mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.15]) (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-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 954BF1955F37; Fri, 8 Nov 2024 17:34:27 +0000 (UTC) Received: from warthog.procyon.org.uk.com (unknown [10.42.28.231]) by mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 188B1195607C; Fri, 8 Nov 2024 17:34:21 +0000 (UTC) From: David Howells <dhowells@redhat.com> To: Christian Brauner <christian@brauner.io>, Steve French <smfrench@gmail.com>, Matthew Wilcox <willy@infradead.org> Cc: David Howells <dhowells@redhat.com>, Jeff Layton <jlayton@kernel.org>, Gao Xiang <hsiangkao@linux.alibaba.com>, Dominique Martinet <asmadeus@codewreck.org>, Marc Dionne <marc.dionne@auristor.com>, Paulo Alcantara <pc@manguebit.com>, Shyam Prasad N <sprasad@microsoft.com>, Tom Talpey <tom@talpey.com>, Eric Van Hensbergen <ericvh@kernel.org>, Ilya Dryomov <idryomov@gmail.com>, 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-erofs@lists.ozlabs.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 14/33] afs: Fix EEXIST error returned from afs_rmdir() to be ENOTEMPTY Date: Fri, 8 Nov 2024 17:32:15 +0000 Message-ID: <20241108173236.1382366-15-dhowells@redhat.com> In-Reply-To: <20241108173236.1382366-1-dhowells@redhat.com> References: <20241108173236.1382366-1-dhowells@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.0 on 10.30.177.15 X-Stat-Signature: ucc8tjh84qisgqogbsiqbsfwp5x851ca X-Rspamd-Queue-Id: 0252AA0008 X-Rspamd-Server: rspam08 X-Rspam-User: X-HE-Tag: 1731087236-436025 X-HE-Meta: U2FsdGVkX19Aeq8IBi2n98bNqd2Y+banHxVR93mXqlfMhJt2Yt2pMg1btegcS2iE8qvF9bQqW0oG2YVmrpVs25Fyda3D2hiLf3VL0jIYyzI+KbXNw/fd3uJgidpNIZp2EVS0Cq0wlgdLkL8spVOowIZi+ANMCMCXVj+NPIgoY6osAZQzJzifP2+KTgAqD+fiD9Kazt55wHohJd1rmVosTW46BFoB4kpQmp5oh/pKnlQRpJOSQfJhcWKI9wLKEOpHbuOs3scyNej2ribzttCxu60NouuxEZQsgR4ZTsF5iotrWfJibTDxYUC1b/Q9Z3uySmNnBx3hiantrjS9SsG+z+/E3aPPjzgix2GEO8HtIyZojLuyXGXqzkHJwEULq7hCDkF8X6RrVi2ig7v3unMuf0bmElg7iDhTHev4v5E++8Eg9ukZLsDfKjxyDZUtbARHJl+vhnFKn7sa/jzZQFEduu0wvyWPEDdUHH8qgEjBk0JO4KO9lFYH85/rJi8jOZk0dA3gCYXVzUYVipRnLwe9ChOrzDjKSD2onngyU9QtWfAMGKibrFqgYaxMYxcuvGF48Y6ktItobulDykgtiM0t2Nx/PNBsr58DyRJsNXAl+4bIEA0XajZiREZhXLxBjTTU0rGU9l6dAVsFA5jT72UfmyEmVtbuZ1NkyKAMhvakUrUfROhmWxB9DvH5u9z4RIoC3A8Kk6RX6eLz+21Y62y36qphC7wIUMExrvmRZzYBvD5803di5XxLu5pT2OXrCitwpt1w1orYvQx92UZcCMPl/Pm8R05ClVWKQL/vxME9XjgIBAff/Nxs5Ss5zDzT3AulpG2nayVuSk29xpcRJsSPMrsyz7OUwELkX5/odM7IICUTsbvpklAc7DZ9ZpFFovm8Xul/op3KUxA7eySQ6C6USWnwqv/llvWyHSxYxVWqGyWgT8nlVPMea0KKz+wtaaTMGv8Ix0bTmBqnB+VzC4a 2vguCxHs Lvzpyottl3IbC0p4oQqsElMGUCjavcEb6YJkbQOXSkhq9KqtU/ivwpM/+ULDqS4Y0nnKYez5D62ZTv2EgDLCoRfr+k/HqcMtvz9B7A7rt6h3T5CQAcLZKDxVJ/FNDURW65hEDXiEi9vKs79hx9eJV7gSd5JEFcIfyuEnK6WF5hWgAU3gSjWqyPcgOirSGjTz59RTxxHcoemQe/CkoNweAPvaXWFs7XvqBXCTrnM/XIQjEu+d+TeNkEHQ9kByiYvYbdSj4/tWY/uEu7W3Od6j9WB1w2ps/lIkBnRUmbQKIcE9I1ZjeaonhEkheRe3EB7T3OeafAZzjDaQHPUjnqfTCfV17SVR5yuKYHB5vtDgh92x4CIX0reKwCnH1eZwMVpArPOv/ZrnCFvFLEb8cinU3CbuC0jwZqER0fVodMTiIAjWdOXDX/cXUaeFepSl1uRqFmi+z5vCSZQ3bpcRwQHcTyMhwSUZ5rFZYGducCOWsPGvAj56cluInXJtAS1yismq8s4QE3HXIP022z0E9I2Fuy+TFWsTTD/kyxKxGb0dijJD+IZi3ZPSoBoCfMibo3MysPafP X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
netfs: Read performance improvements and "single-blob" support
|
expand
|
diff --git a/fs/afs/dir.c b/fs/afs/dir.c index ada363af5aab..50edd1cae28a 100644 --- a/fs/afs/dir.c +++ b/fs/afs/dir.c @@ -1472,7 +1472,12 @@ static int afs_rmdir(struct inode *dir, struct dentry *dentry) op->file[1].vnode = vnode; } - return afs_do_sync_operation(op); + ret = afs_do_sync_operation(op); + + /* Not all systems that can host afs servers have ENOTEMPTY. */ + if (ret == -EEXIST) + ret = -ENOTEMPTY; + return ret; error: return afs_put_operation(op);
AFS servers pass back a code indicating EEXIST when they're asked to remove a directory that is not empty rather than ENOTEMPTY because not all the systems that an AFS server can run on have the latter error available and AFS preexisted the addition of that error in general. Fix afs_rmdir() to translate EEXIST to ENOTEMPTY. Fixes: 260a980317da ("[AFS]: Add "directory write" support.") Signed-off-by: David Howells <dhowells@redhat.com> cc: Marc Dionne <marc.dionne@auristor.com> cc: linux-afs@lists.infradead.org --- fs/afs/dir.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)