Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp474963pxu; Tue, 5 Jan 2021 17:06:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJximr99ZrYtUnNYpy6246e33b0JO0LCKBIcCsmHiy81YquXJM4oVmwnell/QU/KGPnvBfs3 X-Received: by 2002:aa7:db14:: with SMTP id t20mr2289399eds.158.1609895169749; Tue, 05 Jan 2021 17:06:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609895169; cv=none; d=google.com; s=arc-20160816; b=tbQ1S2kwQ69BdHIvAS686rYuBgAamKRBX8tq/NeoLpAn15cfqYhQOFVjiKk1MQ2pdS Wpa49JVOBTo7hed+nac5w3UjLN2f2JOrvtfMUXAV8AGxgFhVS56VjNpCqmMXTYXG4Ba0 nKdGhkE71QLtbDoM0qOEgqeH8jqRp1UO81a9/lrrLHCBHyF6n2Y3jgK1RJ55KFKh/5lt KNSF8KU+f3KEICiUk8Ns3+r9WGHJj6LANEJ7xGMyKOx5EEuXObP3JYP9Py6DswvzrQwv c+17GDCnRuparFPzRhnoDKFzHVPInRFh9yIkpO7PsB6seuI7NCkhfzkqekWBAwikyTJH dixA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=Xw9rKABBLhxipqqh0s5RPLCgWGX6LtUAOv4zKgAriNo=; b=Ws4OubUPLvZjuTQUkkxhrC/ak8F7G9SP5y0Ierh69/uF7ePFrdEU6dPcS2Tnt6FbD0 pqAdQt5UG6Ap6dcAAKkfHKrhCoTd2TUPOaGRWj1K8EAW3Zf6bCo+ff6zAw+flElCYO8p ZwOZpDrol3eGCWHH8yjvdJvzU9lQ/cM1WUlZZpJKkC9bw2eILiDg3nxpg/rlcQIOMKxr iS6q3wc4d5b+zAQgCL/zoO5AYwcaq8GFzfPg4wBRNT5SS9cocg1CNkeWPWLsR0gT4pkq A4kywnfkAIKc586MACQx7wbZ6hi3S8Co4zylKHCF4stV6/zwfsyUinb9eEJOvpX5CGNo gaxw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s2si326438eds.424.2021.01.05.17.05.46; Tue, 05 Jan 2021 17:06:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727096AbhAFBDy (ORCPT + 99 others); Tue, 5 Jan 2021 20:03:54 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:10548 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725879AbhAFBDx (ORCPT ); Tue, 5 Jan 2021 20:03:53 -0500 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4D9WKh0WRbzMFxr; Wed, 6 Jan 2021 09:02:00 +0800 (CST) Received: from [10.136.114.67] (10.136.114.67) by smtp.huawei.com (10.3.19.205) with Microsoft SMTP Server (TLS) id 14.3.498.0; Wed, 6 Jan 2021 09:03:08 +0800 Subject: Re: [f2fs-dev] [PATCH v2] f2fs: fix null page reference in redirty_blocks To: Daeho Jeong CC: Markus Elfring , , , Colin Ian King , , References: <20210105041630.1393157-1-daeho43@gmail.com> From: Chao Yu Message-ID: <6c8e6561-8a5d-010f-3d7c-8c051b4027e6@huawei.com> Date: Wed, 6 Jan 2021 09:03:08 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.136.114.67] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Daeho, FYI https://www.spinics.net/lists/kernel/msg3595944.html On 2021/1/5 20:04, Markus Elfring wrote: >> Fixed null page reference when find_lock_page() fails in >> redirty_blocks(). > > I suggest to choose an other imperative wording for this change description. > > See also: > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?id=36bbbd0e234d817938bdc52121a0f5473b3e58f5#n89 > > >> v2: changed error value and break the loop when error occurs > > I propose to use a return statement instead of a break in the second if branch > for this function implementation. > > See also: > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/coding-style.rst?id=36bbbd0e234d817938bdc52121a0f5473b3e58f5#n481 > > Regards, > Markus > > > _______________________________________________ > Linux-f2fs-devel mailing list > Linux-f2fs-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel > . >