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 40A7EC88CB4 for ; Mon, 12 Jun 2023 15:25:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240701AbjFLPZb (ORCPT ); Mon, 12 Jun 2023 11:25:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240055AbjFLPYy (ORCPT ); Mon, 12 Jun 2023 11:24:54 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E92891BCB; Mon, 12 Jun 2023 08:24:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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=H1SeaVKDIPMJLrLkzyfFrpKPYszgw9Zhlv0q5NXPMT0=; b=lrpw8yJmr+oTAm4obdokvtvxhP d+85/bSGopmBUBJbQUWmXdkilS9F/Mq0Kr6CwMQ8fSS6iJ9dOlUL4FQNscG089HuNn7lnq7k2cjlP jwHc2C81m36seZ5BQR/FJ5Ubg8H37eeXQgrpqJJcFw95pgyxpp3RvzXJgXVakh1Lbjb7HV6AqZ3xe /hpJa6MuuhcmhbDdEk30dYcExIefGIC4IJik6As7fMMiFWjgQi8JEcXRtyswMfl9SidRAKT+A89Vo pYgKgUvjVWtJhqlQ4wGuzAWYvhJbmY2fdlFqAmpQbEaZgfeMShjTUZBwDOVUlUoYITjqcv/69Ynkw pgXKIgYw==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1q8jPO-002m0i-8V; Mon, 12 Jun 2023 15:24:42 +0000 Date: Mon, 12 Jun 2023 16:24:42 +0100 From: Matthew Wilcox To: Ritesh Harjani Cc: Andreas Gruenbacher , Christoph Hellwig , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, "Darrick J. Wong" , Dave Chinner , Brian Foster , Ojaswin Mujoo , Disha Goel Subject: Re: [PATCHv9 3/6] iomap: Add some uptodate state handling helpers for ifs state bitmap Message-ID: References: <87o7lkhfpj.fsf@doe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87o7lkhfpj.fsf@doe.com> Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Mon, Jun 12, 2023 at 08:48:16PM +0530, Ritesh Harjani wrote: > > Since we're at the nitpicking, I don't find those names very useful, > > either. How about the following instead? > > > > iomap_ifs_alloc -> iomap_folio_state_alloc > > iomap_ifs_free -> iomap_folio_state_free > > iomap_ifs_calc_range -> iomap_folio_state_calc_range > > First of all I think we need to get used to the name "ifs" like how we > were using "iop" earlier. ifs == iomap_folio_state... > > > > > iomap_ifs_is_fully_uptodate -> iomap_folio_is_fully_uptodate > > iomap_ifs_is_block_uptodate -> iomap_block_is_uptodate > > iomap_ifs_is_block_dirty -> iomap_block_is_dirty > > > > ...if you then look above functions with _ifs_ == _iomap_folio_state_ > naming. It will make more sense. Well, it doesn't because it's iomap_iomap_folio_state_is_fully_uptodate. I don't think there's any need to namespace this so fully. ifs_is_fully_uptodate() is just fine for a static function, IMO.