Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3309949pxu; Tue, 15 Dec 2020 04:05:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJwLsc6CdHJbnh1olNKnYk4Z8AkV5X7xUDb4R9zA9pDqNYbqts/5mgtNq3nBx+Af6u09clmB X-Received: by 2002:a17:906:6c8b:: with SMTP id s11mr26494601ejr.187.1608033919747; Tue, 15 Dec 2020 04:05:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608033919; cv=none; d=google.com; s=arc-20160816; b=TKucbY6dqsnCR5Eme/jTqAQe3k9LO04Y2qb44AxRk34UHrepEmXgrhZ1R7dO1a006T T0NHMkJOXLe9uAu2hyXIdcjWhN+3FL1HjVQp9IX7F230/EuRuQPkAojKMpEi4AR2mT7m lJhp4CxmWWx8am5kk451q2iInESxchqhgFu9Q2uIM/PQ7e4SJnvOrytQB+wWALviZhay NCTtr6ZgwMkKLExRNbwoFUfJmaWUcECqoXHti4Tg0pQKXmFr21wDUSfAvzuWTPNG0+YI gQ7b+SLHx1p1SCD7w3RpKU4BqwVUiHpAv3Yra75kacf1TWUj0rxgT1OELZArTZV65Zpw 8DNQ== 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=I4Vfpg9RjqAhKerdtgvzTy1GEGmKmWL0amPgsg80Cw4=; b=E1lhFblVM92z+sS+nPPEokXXl+mfLr5kxR//R0jkZX1wlWUYT7WS9G5sIYhuOcWt6Q qjPg1RF/xDIyImrYMJYyBmzPfrLDktgh8Klqv7xnpMWqWG2y98f0ax0oRJSWexTstvHc VbIjK8Wr/TBrK5ofAlK+wd8dYijfjjObo/TFpDARjhPM3os8SWRj/wBwOP6/OmmXQQ/7 z8EkYAdCfMuiIGRT2EVu6gnCGLSH/ooCvLyq/Lx0i1mc1aoqRAAUVDmCLq5neTXubFBw 0cE4Lok+NYFFT9fhRt5AK3rQdgXnKWDdZ37ZyHVXs7bNb0N+7zEOqnQN5bpMZhFF89MD ZE3g== 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 go32si728795ejc.64.2020.12.15.04.04.52; Tue, 15 Dec 2020 04:05:19 -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 S1728998AbgLOMBb (ORCPT + 99 others); Tue, 15 Dec 2020 07:01:31 -0500 Received: from mail.cn.fujitsu.com ([183.91.158.132]:23578 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728743AbgLOMAt (ORCPT ); Tue, 15 Dec 2020 07:00:49 -0500 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 Content-Transfer-Encoding: 8bit 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 X-Spam-Status: No Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jane On 2020/12/15 上午4:58, Jane Chu wrote: > Hi, Shiyang, > > 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: >>    - Intorduce ->block_lost() for block device >>    - Support mapped device >>    - Add 'not available' warning for realtime device in XFS >>    - 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.  The interface is called by memory_failure() in mm, and >> implemented by pmem device.  Then pmem device calls its ->block_lost() >> 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 do > > Does that mean clearing poison? if so, would you mind to elaborate > specifically which change does that? Recovering data for filesystem (or pmem device) has not been done in this patchset... I just triggered the handler for the files sharing the corrupted page here. -- Thanks, Ruan Shiyang. > > Thanks! > -jane > >> other necessary processing, such as killing processes who are using the >> files affected. > >