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 98B8719D07A for ; Mon, 30 Jun 2025 05:43:19 +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=1751262201; cv=none; b=E0YdXVRrsFlXQisdlvroNWOMboZ4pfVAeHak29f5jYIHh9rqNE2jgMvYEeW4AYxouDbHnEAVDOAAMPfXWzlI64TxwzT7tYhc1ULz7V3SXHS+z+4GM7zA7g7xTOposa2CdkMJF9Kie8XxF4j5TaYpXMzl6K/8X1YNeQliM8n6ZLw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751262201; c=relaxed/simple; bh=ZlS+nx0Km3PxiKn+xd47Kjpqv/msUR9APIhVUn+Jj8s=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=c6ljz+5kqihPD4x4jrbO/5QS/Ogysp+XBLjUaIO5IlDgVfl/AQQMy7XqaHww3qY9SYFvkv85ZxeYF28IoXSWxFUkwssn33HBERLQcOUAutscmFyIcSFC6UHHKNmPco4ZiSOfwx9W74UvJ3o448ZuUaDkWw0cdqEZ3aKKbhD/Iw4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (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=pass (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 D370A68AA6; Mon, 30 Jun 2025 07:43:15 +0200 (CEST) Date: Mon, 30 Jun 2025 07:43:15 +0200 From: Christoph Hellwig To: Brian Foster Cc: Christoph Hellwig , Christian Brauner , "Darrick J. Wong" , Joanne Koong , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-doc@vger.kernel.org, linux-block@vger.kernel.org, gfs2@lists.linux.dev Subject: Re: [PATCH 10/12] iomap: replace iomap_folio_ops with iomap_write_ops Message-ID: <20250630054315.GB28532@lst.de> References: <20250627070328.975394-1-hch@lst.de> <20250627070328.975394-11-hch@lst.de> Precedence: bulk X-Mailing-List: gfs2@lists.linux.dev 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 Fri, Jun 27, 2025 at 03:18:25PM -0400, Brian Foster wrote: > > diff --git a/fs/xfs/xfs_iomap.c b/fs/xfs/xfs_iomap.c > > index ff05e6b1b0bb..2e94a9435002 100644 > > --- a/fs/xfs/xfs_iomap.c > > +++ b/fs/xfs/xfs_iomap.c > > @@ -79,6 +79,9 @@ xfs_iomap_valid( > > { > > struct xfs_inode *ip = XFS_I(inode); > > > > + if (iomap->type == IOMAP_HOLE) > > + return true; > > + > > Is this to handle the xfs_hole_to_iomap() case? I.e., no validity cookie > and no folio_ops set..? If so, I think a small comment would be helpful. Yes, and I can add a comment.