Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp2595776imc; Tue, 12 Mar 2019 18:19:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqycrbSatZ75AA7MqrDSJocmByXWanO8SbQc2ihetc8zy2Bz71vVWxQ137spLNWp3zPxS6mC X-Received: by 2002:a17:902:5e2:: with SMTP id f89mr36862719plf.170.1552439947176; Tue, 12 Mar 2019 18:19:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552439947; cv=none; d=google.com; s=arc-20160816; b=NSB7PKst5r+RnlnBDCMNBlOFMlva+InCgaKwuPQySZKJJnDJoZXwFi4ELV5IbC732U A0c4GnCTMYz1pIDbTDik4U2nphYUMPoPghf58SoNC0VXY6QdiGWhhJXFRi/dQ279df0Q fqBHKMN95uFUxIck3mJoW+PGox87Mgkay3Y+oOMJpvKS6moTcTVB8d9+FASveWyQi5nR 1ZGIyTKCOYbhvxZQE28U6+/upNBmPdK166+/o708OKtsiSq7JVAf7dwWXa5O5/fbSnj7 +s28tiAYzT0Jhd6qUKd9l8HhktIUTNTtj/MyUWYicgC8iKIRz3WjXddksXWCm19RIfGh FLdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=oEC9oNRdf4Nf1M35dVtF1qJDSbVgf1wFlY79QkkkdUw=; b=SX8tmtFfJnWlIaZg+0uJSEHFH6o1DRepU/r+TVELTR8x/pO1Ri2DA41oV/R3jiB4N2 Z1Ng83yc4X/ePFAOSuQOJwEtTUEgfjyeowCm7KojfwLbv9tOwWRka3U2w8JLcDL8rV8v F9vY+b0FSiHbaQpcr/PesetYB6vKKSpygb1GKmv1shfHsYr2IkmjWbbU8zkUpgGhDV1q kv8ZXfSQASEy2VkCCnMId6pKOMgWYE6y1xctDb85z/yO1I+kqxkz3IxwBYVLeF0GMnc9 3e4DE78aKKRZV1E5hNW2CuddtLj8QtnzczvufkfulJwLPlv8ksWXqekjBbeap1fjZacB PzwQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t24si8490915pgv.141.2019.03.12.18.18.50; Tue, 12 Mar 2019 18:19:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726619AbfCMBRp (ORCPT + 99 others); Tue, 12 Mar 2019 21:17:45 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:5243 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725917AbfCMBRo (ORCPT ); Tue, 12 Mar 2019 21:17:44 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 07C24267DD869F72A3E8; Wed, 13 Mar 2019 09:17:43 +0800 (CST) Received: from [127.0.0.1] (10.134.22.195) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.408.0; Wed, 13 Mar 2019 09:17:41 +0800 Subject: Re: [PATCH v11] f2fs: guarantee journalled quota data by checkpoint To: Jaegeuk Kim CC: Chao Yu , , , Weichao Guo References: <20180920120500.21026-1-chao@kernel.org> <7a2b9277-acbf-eda4-d043-74463d7b61c7@huawei.com> <20190312182855.GA45421@jaegeuk-macbookpro.roam.corp.google.com> From: Chao Yu Message-ID: Date: Wed, 13 Mar 2019 09:17:42 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20190312182855.GA45421@jaegeuk-macbookpro.roam.corp.google.com> Content-Type: text/plain; charset="windows-1252" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.134.22.195] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/3/13 2:28, Jaegeuk Kim wrote: > On 03/06, Chao Yu wrote: >> Hi Jaegeuk, >> >> On 2018/9/20 20:05, Chao Yu wrote: >>> @@ -3456,3 +3477,16 @@ >>> >>> extern void f2fs_build_fault_attr(struct f2fs_sb_info *sbi, unsigned int rate, >>> >>> #endif >>> #endif >>> + >>> +static inline bool is_journalled_quota(struct f2fs_sb_info *sbi) >>> +{ >>> +#ifdef CONFIG_QUOTA >>> + if (f2fs_sb_has_quota_ino(sbi->sb)) >>> + return true; >>> + if (F2FS_OPTION(sbi).s_qf_names[USRQUOTA] || >>> + F2FS_OPTION(sbi).s_qf_names[GRPQUOTA] || >>> + F2FS_OPTION(sbi).s_qf_names[PRJQUOTA]) >>> + return true; >>> +#endif >>> + return false; >>> +} >> >> I checked dev branch, and found one patch we didn't send to mailing list, >> could you please send it out? >> >> f2fs: fix wrong #endif >> >> I think my quota patch caused this 'wrong #endif' issue, could you add >> single line comment to notice which #if the last #endif is corresponding >> to? so that we can avoid same mistake as quota patch made. > > Ah, I forgot to post the patch. It's quite late but obvious, and thus let me > keep the patch as is in order to avoid messing up the commit history. Okay, let me add one other patch for that. :) Thanks, > > Thanks, > > . >