Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1313254iob; Thu, 19 May 2022 04:08:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXKir0x8FDzFbw+skXhWqjHZ7sueFwn3xyGMwHHSgXxY89psETDEw3GvyX9Fl/O8NnkRs+ X-Received: by 2002:a65:48c5:0:b0:3c5:fe30:75dd with SMTP id o5-20020a6548c5000000b003c5fe3075ddmr3435953pgs.269.1652958484907; Thu, 19 May 2022 04:08:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652958484; cv=none; d=google.com; s=arc-20160816; b=Hx/2X+noQdZdBGCX+2CmbtpQ8ddHzs6VVlC4/RqdV9bDMLtldm5u0zczawVVj5l6Zg rM9+qfA+q2jePJMPUfOVQD5Md2yHl35zTn0Ik1pjBwC6LMEN9a0dYRt/q0ROBu4OpMLm 71s6ZNvlukDDDu7sJlGw6MgHdgQhf+1tQnpjpDrW59TJ4g8KQT9zOclohV55KxTys+2C 3cDFH9KU6hlkYMndozJMgZ05nVfqNvJJKyrUqCFtPoKoi6Y88ZHhmQ8lgv4lss1cTm6a uOBbrueu6aS8CKzSUuOo13MgRTZLwlva1VQWGLp3x8yUp4Ng4fTsONZb0jMVygqRXBDQ nLiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=PNDXrv+ygiGRP7Ew+ogCVIR6dtT/3oMpUNbrS/sX8rY=; b=dfxKZ4cmaE8ba/FdTr4anRMgNCoOAIwEfV1a6v3XztOvPrPwu62UzYc32l9WQetdW3 o+/jPgzvo7iHvGtEkX0U1AWlI/JbIjhd0vSF931QjVoUZonUsbaE5oTOvdMS9+J0aRp2 PM5npEpq68ijR2DwIzIWg4z8l9Vb8uKzeQM9sUlIyDHiJbbPDQBGHrhulhyhc7DDnhBH 7taCHeQy3WqZTMOQN1B7dV1uyNiDVdwCKrQjQUHfkSkd/mHTKpDhrb+ncrYpsuliTC4p qIjgTPFlMiShXhe9/BBP/wAH9ZN+sW3VyAPkOBjAU5NJoV1qaZkjaxbuQmqmxxYNp0UJ fDSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=JraGpmG0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bw7-20020a056a00408700b004fa3a8e002csi6460559pfb.227.2022.05.19.04.07.50; Thu, 19 May 2022 04:08:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=JraGpmG0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234304AbiESGJZ (ORCPT + 99 others); Thu, 19 May 2022 02:09:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234299AbiESGJW (ORCPT ); Thu, 19 May 2022 02:09:22 -0400 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE1AC819AC for ; Wed, 18 May 2022 23:09:20 -0700 (PDT) Received: by mail-lj1-x232.google.com with SMTP id q130so5006500ljb.5 for ; Wed, 18 May 2022 23:09:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PNDXrv+ygiGRP7Ew+ogCVIR6dtT/3oMpUNbrS/sX8rY=; b=JraGpmG0cqUHEyLAfLVhlpM+dTRiEpUtcsF0rqAjnl/+B59Y9yXJff5hLwRoGkgk2O u72zMcTB48oO881CVG7a9/iVM6gTiRqxMW8zSp/jYsjniUTfyl5utHeSoPkgeFEeQO3j cA6EdnCYdvzttofR8wbD6CHz6CDBp6FhqCBBLyUQTg1SV7w0YZvLo3eMR1RZosUFO1ez 8iH/WaeMwUSQeKHqCyGGsWhY3M/8VhwtwJwXk8y/UGsehKGk4eMffFH3aXiKrNW27wFI ld/fW3048PVpXv45bNZK5u27I6G3mDoNlycNroowpREKpCQB5/lu4aZrCpO61LTzwjlh /X3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PNDXrv+ygiGRP7Ew+ogCVIR6dtT/3oMpUNbrS/sX8rY=; b=Dnl7s/cNT9Vifg3/IOxVwP05OhiNujf7ie2VvHLWuPZYGHBtOLsp5pVUqYbyKigY1K YUW3+7+dN8GFFG9p/6r38DWOg1Sba0DbKIx8PeGmgdJx+L4cRP7bEtnG4yaX1IgfjD1N BoTaZj3jP3/G5fSFm9wpuDJHwlGwnGth5lJKxKjItdDXOmuLxxhs1G7H1SuuMWnmQuh1 Kvul+se8QT5BmXCRSnOwoQr5xPn3tKl22NkJUn9QPIsendXDMZMe51DBWgA+6bWVYQSI O17M1eoXlso6jRutFp+8X2t9kKH8lo4kXBDXUMlsewOhCJWNpbcrI3P3Ne1o0ujIUz1z KKow== X-Gm-Message-State: AOAM531yI+xaWFS9VBQHfpTqkr9YT84QdT22e1lXGrRv3efDAv1VsNpW YLQMNgmy4pIaBnLhiQtfzD5f5/eN5R6N6/go2bs= X-Received: by 2002:a2e:8210:0:b0:250:87c9:fb69 with SMTP id w16-20020a2e8210000000b0025087c9fb69mr1723105ljg.470.1652940557605; Wed, 18 May 2022 23:09:17 -0700 (PDT) MIME-Version: 1.0 References: <20220518023123.2455827-1-liuchao@coolpad.com> <7d1878ef-e1ae-0550-7d6d-2a2ff858586c@kernel.org> In-Reply-To: <7d1878ef-e1ae-0550-7d6d-2a2ff858586c@kernel.org> From: Chao Liu Date: Thu, 19 May 2022 14:09:06 +0800 Message-ID: Subject: Re: [PATCH] f2fs: make f2fs_read_inline_data() more readable To: Chao Yu Cc: Chao Liu , Jaegeuk Kim , linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Yue Hu , Wayne Zhang Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 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 Wed, May 18, 2022 at 11:23 PM Chao Yu wrote: > > On 2022/5/18 10:33, Chao Liu wrote: > > In f2fs_read_inline_data(), it is confused with checking of > > inline_data flag, as we checked it before calling. So this > > patch add some comments for f2fs_has_inline_data(). > > > > Signed-off-by: Chao Liu > > It looks email address is missing, but it shows after I can apply this > patch to my local git repo... > > Could you please check your email client configuration? Oh, sorry, this may be caused by my SMTP server, I will try to resend it later via this email address. > > Thanks, > > > --- > > fs/f2fs/f2fs.h | 4 ++++ > > 1 file changed, 4 insertions(+) > > > > diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h > > index f579e2ed0f14..5071f6636e41 100644 > > --- a/fs/f2fs/f2fs.h > > +++ b/fs/f2fs/f2fs.h > > @@ -3167,6 +3167,10 @@ static inline int inline_xattr_size(struct inode *inode) > > return 0; > > } > > > > +/* > > + * Notice: check inline_data flag without inode page lock is unsafe. > > + * It could change at any time by f2fs_convert_inline_page(). > > + */ > > static inline int f2fs_has_inline_data(struct inode *inode) > > { > > return is_inode_flag_set(inode, FI_INLINE_DATA); > > -- > > 2.25.1 > >