Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4726329iob; Sun, 8 May 2022 23:24:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8hT/NfglOjAC3/gn5VBtLBXUQjaltAI4AFPJPaA2airxP37iD5BfvtCabMUt8GvwWhwh6 X-Received: by 2002:a63:88c8:0:b0:3ab:1871:13ac with SMTP id l191-20020a6388c8000000b003ab187113acmr12148229pgd.561.1652077485945; Sun, 08 May 2022 23:24:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652077485; cv=none; d=google.com; s=arc-20160816; b=KWqc7j/wgBK6hzRrAr4dOxWE/9PglBNC1tyKqX63HxTV9PPsByGJZRuThtqsk5VYR3 N8uO/igL5luaTwSfRhBgRoN92oupgQPtS8nTSnBJJ5SQ/5TJsLvEALSA0VodSd669W/h RrJkgmRNYCfWiZ91DK/CwwmL7d8GcTsKL49RFLlBsvBvpQ8BmB4eHOtyT8Sn2L/cY+zz QUNxdlLX2jZ5lSTuf4pcLt0NLgDl4MPRYrbbl9x6aSPnOoGFlvM2ryO3iIsXXRCoWvRx 03pHuRHYrH8dhzCFzyOYzCCVn7djBro/+ZU/zcPtKjYKyl5ukh2eNTPydRoRDG9MF+0Z iQGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=AVuaOiXhV01Z47Oo1rP7YN34nHEPNRHjJX/XRSE9e0M=; b=kRxpQFGau7kPILqPC6Z2G4OPoX0ovjm1U20kQYl4dsU2Kq/QJKGjcuijp59kc8HiJ3 bx+hY5DzqFYHrQuNHP6iFUz/kmLCz70JGjVB2qTucZAbcG+hnxNoJy9oyWSUgtBQ3qwe g6mxmuUOvucpQpDFi1I1cGbdzbyo9vkiyjI7Sg87wVFSg6fqsWLuV6U/cfFeFbTzc2eT aSp0RHoG8kBLl/qwcz1xdUJf6upIpK6ohpJcrmkxJwExypoeL5bAhZPcJ7RKxGQep0eY q+4inE1KSxKniDnDQyXMsM+lzuc1KX7nnUBHwAWwXvHC47aes5NpmKAL1wJcQFaCMPif 1B6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="EkJzGm/J"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id c17-20020a63d511000000b003aa6b7e91ebsi11670139pgg.629.2022.05.08.23.24.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 23:24:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="EkJzGm/J"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A331A14913A; Sun, 8 May 2022 23:21:58 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1383336AbiEGFom (ORCPT + 99 others); Sat, 7 May 2022 01:44:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1445737AbiEGFo0 (ORCPT ); Sat, 7 May 2022 01:44:26 -0400 Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0B2DE000 for ; Fri, 6 May 2022 22:40:40 -0700 (PDT) Received: by mail-pg1-x52e.google.com with SMTP id e5so7740803pgc.5 for ; Fri, 06 May 2022 22:40:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=AVuaOiXhV01Z47Oo1rP7YN34nHEPNRHjJX/XRSE9e0M=; b=EkJzGm/JeHn0Akm0WvBv/z4h/vyU57IPa7rnZoXNc/ZlcQ0LKsROLOEpk33iPvRk8H wAbpoS72stM8zkuhQq55tVgSEbT5p7v+UQrNpyWBG/D7qQ1vsOmTUkSNyAoHt7ljGG// 4R5J+W1RhtpueH8IaUblBU46vRlfpC69NotB/JLGJgX3YsI1EV0SgevZ4Kw5tpoYZ2e/ q2gd9srrc8xYR4riTXVR5YFFtaqQl41wfLR1AWCDoQsRSAqrDas2+9fixH5xynyLa0ur UUHm+uWyetASlKm/O8M6i1RTMyvbDlBrTnfuIjzY7z5esa6cc4AnIQtLrXudShsCR3iX bE5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=AVuaOiXhV01Z47Oo1rP7YN34nHEPNRHjJX/XRSE9e0M=; b=uUiSWegpayhgCvITqyEQnbUwEuwioaQE0ci5JiKFoEdKqhKqRuK8MFQKDsNi72DloF SS+MBOtWw9PGBbZKBz01+wNzvWT07LMI3i+FdidMqXMQBBC0/zPY3KuazO5Xj/M+9vQK Ky7X47jMhb+VJxhsq3cFvQAsKKlmG2gutVT8zCIhrvM3zPkEhSLFArloLESp2z736Gze 460NsL61MHdH0sUGYekVNO1U3WLYEfJ03XLyjF64Q89w9mgkJzesnKVMV+jmKn5EvLlU 6Kp/MVqBuo0oXXHpDZ2xF8x3kF3/zqqE48Lb1XUw05nt2YEFKDZfKqrZequkHCOjkXmT Lohg== X-Gm-Message-State: AOAM533oqiVTXzxZ5muicC4uoOXrKau1BRZCEEaSZRKEnLycoaCY4WVa bsCd5S22SmWzZBGJIofw2hw4wZqUUZJc7Q== X-Received: by 2002:a63:eb58:0:b0:3c2:6d66:c238 with SMTP id b24-20020a63eb58000000b003c26d66c238mr5597405pgk.436.1651902040128; Fri, 06 May 2022 22:40:40 -0700 (PDT) Received: from localhost ([103.220.76.197]) by smtp.gmail.com with ESMTPSA id 19-20020a170902e9d300b0015e8d4eb253sm2748412plk.157.2022.05.06.22.40.38 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 06 May 2022 22:40:39 -0700 (PDT) Date: Sat, 7 May 2022 13:40:41 +0800 From: Yue Hu To: Gao Xiang Cc: linux-erofs@lists.ozlabs.org, Chao Yu , LKML , zhangwen@coolpad.com Subject: Re: [PATCH 2/3] erofs: remove obsoluted comments Message-ID: <20220507134041.000060da.zbestahu@gmail.com> In-Reply-To: <20220506194612.117120-2-hsiangkao@linux.alibaba.com> References: <20220506194612.117120-1-hsiangkao@linux.alibaba.com> <20220506194612.117120-2-hsiangkao@linux.alibaba.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; i686-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=1.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SBL_CSS, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 7 May 2022 03:46:11 +0800 Gao Xiang wrote: > Some comments haven't been useful anymore since the code updated. > Let's drop them instead. > > Signed-off-by: Gao Xiang > --- > fs/erofs/inode.c | 5 ----- > fs/erofs/internal.h | 25 ------------------------- > 2 files changed, 30 deletions(-) > > diff --git a/fs/erofs/inode.c b/fs/erofs/inode.c > index 8d3f56c6469b..8b18d57ec18f 100644 > --- a/fs/erofs/inode.c > +++ b/fs/erofs/inode.c > @@ -8,11 +8,6 @@ > > #include > > -/* > - * if inode is successfully read, return its inode page (or sometimes > - * the inode payload page if it's an extended inode) in order to fill > - * inline data if possible. > - */ > static void *erofs_read_inode(struct erofs_buf *buf, > struct inode *inode, unsigned int *ofs) > { > diff --git a/fs/erofs/internal.h b/fs/erofs/internal.h > index ce2a04836cd2..cfee49d33b95 100644 > --- a/fs/erofs/internal.h > +++ b/fs/erofs/internal.h > @@ -397,31 +397,6 @@ extern const struct super_operations erofs_sops; > extern const struct address_space_operations erofs_raw_access_aops; > extern const struct address_space_operations z_erofs_aops; > > -/* > - * Logical to physical block mapping > - * > - * Different with other file systems, it is used for 2 access modes: > - * > - * 1) RAW access mode: > - * > - * Users pass a valid (m_lblk, m_lofs -- usually 0) pair, > - * and get the valid m_pblk, m_pofs and the longest m_len(in bytes). > - * > - * Note that m_lblk in the RAW access mode refers to the number of > - * the compressed ondisk block rather than the uncompressed > - * in-memory block for the compressed file. > - * > - * m_pofs equals to m_lofs except for the inline data page. > - * > - * 2) Normal access mode: > - * > - * If the inode is not compressed, it has no difference with > - * the RAW access mode. However, if the inode is compressed, > - * users should pass a valid (m_lblk, m_lofs) pair, and get > - * the needed m_pblk, m_pofs, m_len to get the compressed data > - * and the updated m_lblk, m_lofs which indicates the start > - * of the corresponding uncompressed data in the file. > - */ > enum { > BH_Encoded = BH_PrivateStart, > BH_FullMapped, Reviewed-by: Yue Hu