Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4878207iob; Mon, 9 May 2022 03:54:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzz/Yl3lAb+bH5KkMjB9cMGmIaPAwj5aa09u9ObWG+hrFjZFOJ4wBy1jTkvlFz7Ng4kHYaF X-Received: by 2002:a17:90b:35cb:b0:1dc:7905:c4c1 with SMTP id nb11-20020a17090b35cb00b001dc7905c4c1mr25717368pjb.95.1652093657858; Mon, 09 May 2022 03:54:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652093657; cv=none; d=google.com; s=arc-20160816; b=WSjsMAtmWqC8Df0dTXSfzbTsyqRMFLfzq9ivY29X6BIF8gl7dFMs/BG2M4pTnbB9NT KHjoHfzhQ1G02hCGV/rVuF8iHzvgSmkVZXF5x/mfhvsb3Zj8R52dLUv6vpRNFeoNCspB Iv/+8qDbvfmSX7pXRXCgXEt237UjJ2h9jpAzeG5A9GfBuzgo0H+EJH3KEGvbGRbNlS3v /+TLPmVW7BSONltJwJiTdfkb0HHpQAaYCi9/7YnEjByTeyYcz2BVWEZZ0TgN4aNF08Dy m6U66MC/uERcni8GkBojCQCuiGZR7+ALXew86wuO9otYYiOnfTCFtqDRyr8W2CTtyE65 C2NQ== 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=2zdJr1D4+tOVKDyCMf5btV9F16hwBzLta+dcq/GYO3o=; b=yeEC86mSy7s1sdk21j/8QpDBuaE/J6ahO2dkulo732G6G/d4S+aYWShxeuEK8pT6Em HWzasYYbQ2rSNUkrD1vzFEDZdZMCfUIwxgMNFqTLkHMs2OLUaWAyuw1ZtgF430zN33Ek aGjrNyssEHqcQ/33pqvgR/ZNBGEwuTjCdZG3dnEtgJOIvTE6kKradeq3xfvmwbthXKTB /c+x+rtdLXxX2W+xii7shtsT8ChtnEDoUDxVWksbhp6zvngqtOptb8LzbvlXZaYYNoJO 7Tplj1F0eGay8t4zZr4uba/2YH22S74dmOHKJvF4LCUsdQd+HZbDvyj91OpWJHuhC0yE aG0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=d8vnpsUJ; 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 u190-20020a6385c7000000b003a0771d526esi11729014pgd.705.2022.05.09.03.54.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 03:54:17 -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=d8vnpsUJ; 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 98B7521552E; Mon, 9 May 2022 03:11:33 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232056AbiEIJxk (ORCPT + 99 others); Mon, 9 May 2022 05:53:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239527AbiEIJqb (ORCPT ); Mon, 9 May 2022 05:46:31 -0400 Received: from mail-vk1-xa34.google.com (mail-vk1-xa34.google.com [IPv6:2607:f8b0:4864:20::a34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46E9421E03; Mon, 9 May 2022 02:42:33 -0700 (PDT) Received: by mail-vk1-xa34.google.com with SMTP id d132so6642170vke.0; Mon, 09 May 2022 02:42:33 -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=2zdJr1D4+tOVKDyCMf5btV9F16hwBzLta+dcq/GYO3o=; b=d8vnpsUJmFdQOs7ehYldCku6+vzQBhhGng4fPhDRY+TfRBQy12C2DVVQaCjn8T6waC JOoeiQ/HdzWNEVpzLD7bzNnBOkLosvKImmK3Z9P6Kgf9U6YOWtkINzab8q3UZ0V+7sM1 pTLWnnePfezNoV35397EyOs353V1ANpZiqGZS/1kNREI5llWBziHCssLZIozoAcqtcpl WUPTjbNdYZiV1nA8N/C+PA5zScP/vDvXs2bn/PlzLSlJ+zeocl9RMk/TjYRb+cuskof2 Nc6Hd5XxRsAyF89YPU0BZjT5bX9pwNTRlgLhTzpfGX04E8+9iBlIDbmGmnAdQm5eeE22 Ugcg== 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=2zdJr1D4+tOVKDyCMf5btV9F16hwBzLta+dcq/GYO3o=; b=O2uAOvPsBzBtdxDtKv0OLrO+QURTF3Hx0TaMrX97F6r8o92rnzNkCWt5rvrc/a0ZtP gOd/bJzxz1nhywYAczlc63aLOmu+ne0w60znJeUBTy3wIGgT745itO53AeLcVJh67Mhj quWcw7x9t5Jpv7xsqRBgx2GUFG36D2GXs8Y9f+TC4UNqfRL+CK5VZ6/QRjLtHFtrLGna Vh/vnrGNwHUuG4z8Ms2d4DxFACV3FwaH0AlF4AMQwhKQPS2hECtJsjJ0bQdqYDmiBeH9 bXmLN3zx4W3wW98lPNEdtw9E/ZHg2gso+qgmq7wPiFQY5NyRnI5zIV2UUNbh7u+EK/5q jVJQ== X-Gm-Message-State: AOAM531P3wMb6Y8ZGeakHrtXQVhyUJsQTCYT4YTmcJfsvfC43+V33jBp wd+2AdyEBS8Yc9iaBIvkkZ6AD8rJfPx5rZdzL+4= X-Received: by 2002:a1f:ae08:0:b0:352:6e83:e963 with SMTP id x8-20020a1fae08000000b003526e83e963mr7568288vke.0.1652089291126; Mon, 09 May 2022 02:41:31 -0700 (PDT) MIME-Version: 1.0 References: <20220505134731.5295-1-jing.xia@unisoc.com> In-Reply-To: From: jing xia Date: Mon, 9 May 2022 17:41:20 +0800 Message-ID: Subject: Re: [PATCH] writeback: Avoid skipping inode writeback To: Christoph Hellwig Cc: Jing Xia , viro@zeniv.linux.org.uk, Jan Kara , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 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,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Mon, May 9, 2022 at 2:46 PM Christoph Hellwig wrote: > > On Thu, May 05, 2022 at 09:47:31PM +0800, Jing Xia wrote: > > if (!(inode->i_state & I_DIRTY_ALL)) > > inode_cgwb_move_to_attached(inode, wb); > > + else if (!(inode->i_state & I_SYNC_QUEUED) && (inode->i_state & I_DIRTY)) > > Please turn this into > > else if ((inode->i_state & I_DIRTY) && > !(inode->i_state & I_SYNC_QUEUED)) > > to keep it a little more readable. > > Otherwise looks good: > > Reviewed-by: Christoph Hellwig Ok. And thanks for the review.