From mboxrd@z Thu Jan 1 00:00:00 1970 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 D3636C77B75 for ; Tue, 23 May 2023 06:01:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234742AbjEWGBD (ORCPT ); Tue, 23 May 2023 02:01:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234680AbjEWGBB (ORCPT ); Tue, 23 May 2023 02:01:01 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B27F511A; Mon, 22 May 2023 23:00:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=qD1JCzzKcMkYRVAB5EtUpEHmyv161aerpNd3/MwitKs=; b=zdNc9vP2CYb6wXqcNWOWuXPoTb 1MTtZ0V/LzQy6xS/97Axnac+xTUd1lTWlQTx0dapJ4gQ+5eNSq3RxpEalqBSeLJ/ssNvn5V0EtLEh mco0GPEUoR9CSN5b9ToRlBQ5BLQoRWJAEwRxurnVH0c6MCrlQCw1GXNWQeYKM4yCRZkuP2vBeN6Nz R6gtiaI9mYyEy0MI/YMMgtGRzFEFQafv+IEaStQdEEIsJrgeUHazg3/xBttTG/3kURZ5AseqHtuGG opsdWZZNP+Fpom2TNwztNg6H3HD58nk6VqhlDnBIBj+S7+H8XUrw/EeF/bbqeRc5ewHTu7pgVe6CL Lwed2a+A==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1q1L4s-0091rx-0y; Tue, 23 May 2023 06:00:58 +0000 Date: Mon, 22 May 2023 23:00:58 -0700 From: Christoph Hellwig To: Ritesh Harjani Cc: Christoph Hellwig , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, Matthew Wilcox , Dave Chinner , Brian Foster , Ojaswin Mujoo , Disha Goel Subject: Re: [RFCv5 3/5] iomap: Add iop's uptodate state handling functions Message-ID: References: <878rdkweay.fsf@doe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <878rdkweay.fsf@doe.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Fri, May 19, 2023 at 08:37:01PM +0530, Ritesh Harjani wrote: > We ended up modifying the APIs in v5. The idea on v4 was we will keep > iop_set_range() function which will be same for both uptodate and dirty. > The caller can pass start_blk depending upon whether we dirty/uptodate > needs to be marked. > But I guess with the API changes, we don't need this low level helpers > anymore. So If no one has any objection, I can kill this one liners. Yes, the actually uptodate/dirty helper isolate the caller from the API. We don't really need another tiny wrapper here.