Received: from fout-a4-smtp.messagingengine.com (fout-a4-smtp.messagingengine.com [103.168.172.147]) (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 2C0BC29ACC5 for ; Thu, 2 Jul 2026 01:40:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.147 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782956413; cv=none; b=lJOMDVENW0rHZ0/JURe8cfmMwsOB6wshDrNu/4llwlp+eJviteQElHxbAx25bUoRbnW9Np/uGy8E1SdRks0bQ19hutp5xv6wfL5+7Dpvjf3rqrXhQT63DsyGsmFrByc9jU800Ry35OcM4RhJfvWnNigt1C/RjHjy/TqTmDDQzbk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782956413; c=relaxed/simple; bh=lO6OprdwBDWbu+lpWAS1PnLm/qWnbznHLJZ0gCbeomU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BlT/hZMkztwdr0ZmAfU2ZaInQzL6q5/bW7VEC6c1VpsqwnYRXvH7jlWd5uLB7WgvZ8FKXTBhOhtSu78+pRXWls/y1Ekze3blmYcMSVM4n1wK5PNS0Auforjhpy9KfZWpPUJ7sW9suohXphHhZofhFRgkmEH6NzRQK/Gp7vkkb5M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ownmail.net; spf=pass smtp.mailfrom=ownmail.net; dkim=pass (2048-bit key) header.d=ownmail.net header.i=@ownmail.net header.b=rW/MhjFV; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=juJaXlKX; arc=none smtp.client-ip=103.168.172.147 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ownmail.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ownmail.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ownmail.net header.i=@ownmail.net header.b="rW/MhjFV"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="juJaXlKX" Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfout.phl.internal (Postfix) with ESMTP id 49039EC01CA; Wed, 1 Jul 2026 21:40:11 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-01.internal (MEProxy); Wed, 01 Jul 2026 21:40:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ownmail.net; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:reply-to:subject :subject:to:to; s=fm1; t=1782956411; x=1783042811; bh=lxYQp5Xpew YScTm6gp83EtC7vTEEKwWNUGPhPhHMiL4=; b=rW/MhjFVEYHn9K99g0Gq1FTNqo KGSf0GljT2Q/QISrrM/zxa+6MfHpJ1sjfCkBdPIH+YHkJu3xxLILPlB+vum4Thmf tG55GgikkF8xC91yr4RasQdRw7m38+1uqhwrPXWQjpNvOcanB96beWlIKB4/Z4HZ RuINgK1zuAcbFxjEt+gOux698BLqlASM3NN/fwWDjWvcTOo1V04XS6i+R3LX/o2p /gyORlTsiFg4okhNV/CxtX53pXO/Pj1J6nD3W6813AzCV72Xtf+J5EsJsfcc8yVf YCunum2R7sSw8PU9RN5wPj0M2HuQSd8ydFDbfak+uRBk+83CUPkM6L7vtljw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:reply-to:subject :subject:to:to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1782956411; x=1783042811; bh=lxYQp5XpewYScTm6gp83EtC7vTEE KwWNUGPhPhHMiL4=; b=juJaXlKXt9dlSc3je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: i9d664b8f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 1 Jul 2026 21:40:09 -0400 (EDT) From: NeilBrown To: Chuck Lever , Jeff Layton Cc: Olga Kornievskaia , Dai Ngo , Tom Talpey , linux-nfs@vger.kernel.org Subject: [PATCH 00/10] nfsd:refactor nfsd4_create_file() Date: Thu, 2 Jul 2026 11:34:19 +1000 Message-ID: <20260702014000.3397240-1-neilb@ownmail.net> X-Mailer: git-send-email 2.50.0.107.gf914562f5916.dirty Reply-To: NeilBrown Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit nfs4_create_file() duplicates knowledge about opening a file which exists in the VFS, mostly in lookup_open(). It does use dentry_create() which shares some code, but there is more code that could be shared. The nfsd code doesn't get some details quite right, particularly patch 05 shows this. I hope to introduce a new VFS interface which encapulates more of what nfsd needs and shares more code with lookup_open(). I particularly want this as it will simplify some changes to locking rules that I am working on. This series re-arranges the nfsd code to get it ready for switching to the new interface. Once that interface lands we can then switch over fairly easily. Hopefully the series helps clarity even before that happens. The series is against nfsd-testing. Thanks, NeilBrown. [PATCH 01/10] nfsd: replace fh_fill_both_attrs() with [PATCH 02/10] nfsd: move fh_want_write() after preamble in [PATCH 03/10] nfsd: move more nfs-specific code into preamble of [PATCH 04/10] nfsd: remove subtlety from nfsd4_create_file() [PATCH 05/10] nfsd: in nfsd4_create_file() let VFS report if file was [PATCH 06/10] nfsd: nfsd4_create_file(): remove NFSD_MAY_CREATE [PATCH 07/10] nfsd: reduce range of directory lock in [PATCH 08/10] nfsd: open-code nfsd4_vfs_create() into [PATCH 09/10] nfsd: move some code out of the d_really_is_negative() [PATCH 10/10] nfsd: reduce want-write range in nfsd4_create_file(