From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (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 6E7E2221563; Thu, 20 Mar 2025 14:12:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742479979; cv=none; b=VqxuIvVwrw3LS65lHLbh3tVzDcMjWQXDPjGuHS+sr2qlVU5dyybWxqykFc3ohCMQ+vhaPSIU3V7Aff8pSW4stOMbick0msTzueT7EXMdjAJtN1omKhGGiUg2zSNJCpAzwZE5ZXk8GymTFaBZ/nvHZlhGvDy5vn8qAVFHWsqgxHo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742479979; c=relaxed/simple; bh=iYZLHFS+sUPT1uWziqin4XyUb36fkzNi2aFQ/f4HF5Y=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=P/MC9nGAyXEL+1O+GQ2N0DI/pi5LSZcEA+ve4qgBDFbOFLm9i+S4arxB34qqBAItDtO8Vd0Spx58uY9JVPuClh1ly/De9bz9n8m9YzT3TmZPCUTNO8lri8lHp24vN0N8aoOD8VusPhKFfhu5DvNT7ckoSe+Xb8xc2seqPAqgkjA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id 1522368BFE; Thu, 20 Mar 2025 15:12:54 +0100 (CET) Date: Thu, 20 Mar 2025 15:12:53 +0100 From: Christoph Hellwig To: John Garry Cc: Christoph Hellwig , brauner@kernel.org, djwong@kernel.org, cem@kernel.org, dchinner@redhat.com, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, ojaswin@linux.ibm.com, ritesh.list@gmail.com, martin.petersen@oracle.com, tytso@mit.edu, linux-ext4@vger.kernel.org Subject: Re: [PATCH v6 10/13] xfs: iomap COW-based atomic write support Message-ID: <20250320141253.GD10939@lst.de> References: <20250318053906.GD14470@lst.de> <20250318083203.GA18902@lst.de> <20250319073045.GA25373@lst.de> <20250320052929.GA12560@lst.de> Precedence: bulk X-Mailing-List: linux-xfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) On Thu, Mar 20, 2025 at 09:49:44AM +0000, John Garry wrote: >>> offset_fsb does not change, and logically cmap.br_startoff == end_fsb >>> already, right? >> >> Afte unlocking and relocking the ilock the extent layout could have >> changed. > > ok, understood. Maybe a comment will help understanding that. Sure. As said this was just intended as draft code. Maybe factoring out a helper or two would also be useful, although I couldn't think of a really obvious one.