From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BF39DC2BB48 for ; Tue, 15 Dec 2020 12:00:39 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 4CF72222BB for ; Tue, 15 Dec 2020 12:00:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4CF72222BB Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=cn.fujitsu.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 9A6676B006E; Tue, 15 Dec 2020 07:00:38 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 955738D0003; Tue, 15 Dec 2020 07:00:38 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 86D4A8D0002; Tue, 15 Dec 2020 07:00:38 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0160.hostedemail.com [216.40.44.160]) by kanga.kvack.org (Postfix) with ESMTP id 706F46B006E for ; Tue, 15 Dec 2020 07:00:38 -0500 (EST) Received: from smtpin13.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 2C184363B for ; Tue, 15 Dec 2020 12:00:38 +0000 (UTC) X-FDA: 77595374556.13.fly00_521160a27423 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin13.hostedemail.com (Postfix) with ESMTP id 1642618140B7C for ; Tue, 15 Dec 2020 12:00:38 +0000 (UTC) X-HE-Tag: fly00_521160a27423 X-Filterd-Recvd-Size: 3510 Received: from heian.cn.fujitsu.com (mail.cn.fujitsu.com [183.91.158.132]) by imf13.hostedemail.com (Postfix) with ESMTP for ; Tue, 15 Dec 2020 12:00:35 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.78,420,1599494400"; d="scan'208";a="102419797" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 15 Dec 2020 20:00:29 +0800 Received: from G08CNEXMBPEKD05.g08.fujitsu.local (unknown [10.167.33.204]) by cn.fujitsu.com (Postfix) with ESMTP id 928374CE600B; Tue, 15 Dec 2020 20:00:26 +0800 (CST) Received: from irides.mr (10.167.225.141) by G08CNEXMBPEKD05.g08.fujitsu.local (10.167.33.204) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 15 Dec 2020 20:00:25 +0800 Subject: Re: [RFC PATCH v2 0/6] fsdax: introduce fs query to support reflink To: Jane Chu , , , , CC: , , , , , , , , , References: <20201123004116.2453-1-ruansy.fnst@cn.fujitsu.com> <89ab4ec4-e4f0-7c17-6982-4f55bb40f574@oracle.com> From: Ruan Shiyang Message-ID: Date: Tue, 15 Dec 2020 19:58:36 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.1 MIME-Version: 1.0 In-Reply-To: <89ab4ec4-e4f0-7c17-6982-4f55bb40f574@oracle.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US X-Originating-IP: [10.167.225.141] X-ClientProxiedBy: G08CNEXCHPEKD06.g08.fujitsu.local (10.167.33.205) To G08CNEXMBPEKD05.g08.fujitsu.local (10.167.33.204) X-yoursite-MailScanner-ID: 928374CE600B.AB884 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: ruansy.fnst@cn.fujitsu.com Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000120, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi Jane On 2020/12/15 =E4=B8=8A=E5=8D=884:58, Jane Chu wrote: > Hi, Shiyang, >=20 > On 11/22/2020 4:41 PM, Shiyang Ruan wrote: >> This patchset is a try to resolve the problem of tracking shared page >> for fsdax. >> >> Change from v1: >> =C2=A0=C2=A0 - Intorduce ->block_lost() for block device >> =C2=A0=C2=A0 - Support mapped device >> =C2=A0=C2=A0 - Add 'not available' warning for realtime device in XFS >> =C2=A0=C2=A0 - Rebased to v5.10-rc1 >> >> This patchset moves owner tracking from dax_assocaite_entry() to pmem >> device, by introducing an interface ->memory_failure() of struct >> pagemap.=C2=A0 The interface is called by memory_failure() in mm, and >> implemented by pmem device.=C2=A0 Then pmem device calls its ->block_l= ost() >> to find the filesystem which the damaged page located in, and call >> ->storage_lost() to track files or metadata assocaited with this page. >> Finally we are able to try to fix the damaged data in filesystem and d= o >=20 > Does that mean clearing poison? if so, would you mind to elaborate=20 > specifically which change does that? Recovering data for filesystem (or pmem device) has not been done in=20 this patchset... I just triggered the handler for the files sharing the=20 corrupted page here. -- Thanks, Ruan Shiyang. >=20 > Thanks! > -jane >=20 >> other necessary processing, such as killing processes who are using th= e >> files affected. >=20 >=20