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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 86107C433F5 for ; Wed, 30 Mar 2022 10:13:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245251AbiC3KPF (ORCPT ); Wed, 30 Mar 2022 06:15:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245234AbiC3KPD (ORCPT ); Wed, 30 Mar 2022 06:15:03 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1842C3A5C4; Wed, 30 Mar 2022 03:13:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Agj8zzqvWDpZMOBEEasMzSNfdr1gbrYwMIOAO4LamnI=; b=J1iPv3ZhgUKOquThe2zFhWa0mI llIxIKvuAlGogtQY7vnhQNxlFPGw5+bJmgRTsvhvVY9mEsgccHsSxCgxG/KEfmJce7AOCxD4K8Exj 6kuuBQG9Vmd677+eRtKWzL7lxsm/BUAVy5TLvhjgNUwWD/OJJwZsSVkVkvtreQb502vp/EEi1s2M6 NFxa5560Tf7Px3KaBClsWI3kzPxxI8mg6BfUY4KMZtYDC1WqQWZChQE1IU3L621fCEbnmNusYLn6O ic2aNhKBzSwNA/vY+vElPib2Cj9VgGe3HRjtK6gSH2MAiVwbn6OoSbXgapUMIKTkkBDQssa/py8Dd 3C47CEBg==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nZVKC-00F9X8-Rh; Wed, 30 Mar 2022 10:13:12 +0000 Date: Wed, 30 Mar 2022 03:13:12 -0700 From: Christoph Hellwig To: Shiyang Ruan Cc: Christoph Hellwig , Dan Williams , Linux Kernel Mailing List , linux-xfs , Linux NVDIMM , Linux MM , linux-fsdevel , "Darrick J. Wong" , david , Jane Chu Subject: Re: [PATCH v11 1/8] dax: Introduce holder for dax_device Message-ID: References: <20220227120747.711169-1-ruansy.fnst@fujitsu.com> <20220227120747.711169-2-ruansy.fnst@fujitsu.com> <4fd95f0b-106f-6933-7bc6-9f0890012b53@fujitsu.com> <15a635d6-2069-2af5-15f8-1c0513487a2f@fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15a635d6-2069-2af5-15f8-1c0513487a2f@fujitsu.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 30, 2022 at 06:03:01PM +0800, Shiyang Ruan wrote: > > Because I am not sure if the offset between each layer is page aligned. For > example, when pmem dirver handles ->memory_failure(), it should subtract its > ->data_offset when it calls dax_holder_notify_failure(). If they aren't, none of the DAX machinery would work.