Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2462060ybh; Mon, 16 Mar 2020 03:46:12 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtLE8Y+XpBdY3gHmHHnuGq4pBjzx4Um1+TWCTYrnm1TUOt5QXbY+x3zh3BLmGSW6Sv9PBmx X-Received: by 2002:a9d:4810:: with SMTP id c16mr22590305otf.248.1584355572750; Mon, 16 Mar 2020 03:46:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584355572; cv=none; d=google.com; s=arc-20160816; b=ANPpRzii7uBEOMPtsSyhxp0k4zLEdnt+cxgRLpIPMs+1p/Sv0fM6yu0KWILM8bepms 65L8OgLuMqu8QHGkR6xk0eyh740R7ZY+u1stORh5Ag/yUaKqiVEIqtu/arGYh6E+kTki K512OXVvx8/u+eYIZm5FftvNG2KRFwvPcll8hcgxvkM7iF1aad5ExIxyGkEf1QtZ83he 77yWCCutZxcU5Gl/ldrc4y/G5MHoUorb3Tx8HP1SgzBAu8ORwhsGSPnaTbcaAahg6+Ft LXfL1eWfjl7rosxcQrtwMQ2TZ7l5QY0rhF9XxIqi5E4BaYVnqNh3N4PfuZ0zVIr5yQg8 vDEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=dfQuLOcg7sSd3PAwsjqA3PMsDGLPmhwjv29pKqp3cKU=; b=A1GkUJ6V4KOwQoahko/N4UV3plgl785tyIloAcpBTmmBkxSEDAvlkItEBchbV51xgs HLqEkeszmpC7ceqwy3deNX0CLiJryzXCi1Wte+qiCnTg3u/owJSpJkn+4RPE8RZ121Uh ccXW1FrqtH2EcQU1X52smPzUw0z7aLyCkWvo4sSTxNF7NCgwlboQR730AifbJZYrByPw d5x6jcu5MrMJazeP0MxwxX2IPn4cK1mhbJfBnQMXIcMkQ6AKsZOLyB+gwM2iDh1bOeKt dCILb9xI9p4ff5284OK9IRqOkEE5GAlyUjzxxz/SY5fx+kJpMLaLUGG/HlOT5Pea2EYJ VwEQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-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 g11si9509346otq.309.2020.03.16.03.45.54; Mon, 16 Mar 2020 03:46:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-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-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730679AbgCPKpG (ORCPT + 99 others); Mon, 16 Mar 2020 06:45:06 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:11698 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730478AbgCPKpF (ORCPT ); Mon, 16 Mar 2020 06:45:05 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 7D63C5D2B9DB25FD55C8; Mon, 16 Mar 2020 18:45:02 +0800 (CST) Received: from [127.0.0.1] (10.133.210.141) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.487.0; Mon, 16 Mar 2020 18:44:59 +0800 Subject: Re: [PATCH] ext4: using matching invalidatepage in ext4_writepage To: , CC: References: <20200226041002.13914-1-yangerkun@huawei.com> From: yangerkun Message-ID: <9b5009e3-cc2f-4960-be94-30784e85c8b3@huawei.com> Date: Mon, 16 Mar 2020 18:44:59 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20200226041002.13914-1-yangerkun@huawei.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [10.133.210.141] X-CFilter-Loop: Reflected Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Hi, Ted, can you consider to apply this patch. On 2020/2/26 12:10, yangerkun wrote: > Run generic/388 with journal data mode sometimes may trigger the warning > in ext4_invalidatepage. Actually, we should use the matching invalidatepage > in ext4_writepage. > > Signed-off-by: yangerkun > --- > fs/ext4/inode.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c > index fa0ff78dc033..78e805d42ada 100644 > --- a/fs/ext4/inode.c > +++ b/fs/ext4/inode.c > @@ -1974,7 +1974,7 @@ static int ext4_writepage(struct page *page, > bool keep_towrite = false; > > if (unlikely(ext4_forced_shutdown(EXT4_SB(inode->i_sb)))) { > - ext4_invalidatepage(page, 0, PAGE_SIZE); > + inode->i_mapping->a_ops->invalidatepage(page, 0, PAGE_SIZE); > unlock_page(page); > return -EIO; > }