Received: by 2002:a05:6512:2355:0:0:0:0 with SMTP id p21csp212586lfu; Wed, 30 Mar 2022 21:13:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAxvQA2tRNOW+qC7cguIdH8SrYPuDXe25v5Fj1cCjeltYYyOoKX0ciDszU5SLvKOAxQcy6 X-Received: by 2002:a17:90b:4f4b:b0:1c7:928d:1964 with SMTP id pj11-20020a17090b4f4b00b001c7928d1964mr3731189pjb.129.1648699451607; Wed, 30 Mar 2022 21:04:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648699451; cv=none; d=google.com; s=arc-20160816; b=cVEtqIMzKaZ6YATl7ksWP3XyFu20WjPqt3P6ADwtPPtBA2H3yBwQIcqnBSxDVwzw9p vUuaDydLEsBn9m16jTAd190YUsS2CzfeAQG53w63GUTtyL35NAL+h8JfsZHo6HOOZszM 7bjRKKi94xbl8JIZueuI+KumOwHrZp2i2ML50+RyblLiE5J0XIzE18VG7ha+CQIxg8CS ky8iLT7+uBbYGu4ZmnlzOt69EIvZiv0VharLlwv9mpzu5jM88PfcuLVWUttki+96yxS+ aS3tB8ux0l0xEpSgng8y9SLAGH5wA+IGT1bCQ7wKaZ79cm90hBdyKjcN4C4JHxowD8Se qSCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=XYYGWYlGuqIll3206prQVGyP0v/a7w+dmLgKcE4zaws=; b=J/REdM/Lzc6a8yvuJXmXKj6KeoxfqppLqi0J9icqmXRixF6zA8Tx1XNEJ88+53i7dM 4VeBo6VHsqQL5TBsoFN7fNDZ5R46LW6Mo4prn3D2Fb586wQFqxgt24PoVjSV0wZXa/v5 14yPsLiYuVaSR2FNSQLre/cubssFYsJgkqBkjgnC+ZBi1I7umj+kv6MjksJjzNHycdtL uK+OuLeLFc/OTIU39ptUM9FMBI6DgSgz+LpgyYgiye5cT3HnGSm+1S1mT/OgTS+K/vS5 L6FASXQg6lMeVwRQnVk/XGrWsFSJVY/RojfVe7mpgGnScethBkmEd2MnlHqKNJOwaYjG MbFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=jHHEU4mv; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id x24-20020a17090a789800b001c71583fda1si2054622pjk.29.2022.03.30.21.04.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Mar 2022 21:04:11 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=jHHEU4mv; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 262B718023D; Wed, 30 Mar 2022 20:11:20 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241648AbiC3Fnw (ORCPT + 99 others); Wed, 30 Mar 2022 01:43:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239771AbiC3Fns (ORCPT ); Wed, 30 Mar 2022 01:43:48 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59F12235757; Tue, 29 Mar 2022 22:42:03 -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=XYYGWYlGuqIll3206prQVGyP0v/a7w+dmLgKcE4zaws=; b=jHHEU4mvd0H5k2hZQ2Oh1VIDR3 ZsbE/wCHfCB3yo6Tv3WBxleJOBG5ac3ibd3V6uBxVQCqrxXmSfZyD6hLBU7jrd4ZYlnTDcbU4X3EA 4qzEE0C1hDU3VdFrAO0w5xxIA/+PsG8trZyx992Le9Grzq1a36f3m07Dbvj1SXjQqr/UZP70leQTg HrTR85viFYLEBCb4gcSTqrZvQq2/1kGUszwuEO7eefI/g0/2iJ/crGr9oCCfcZiVisT/j39xzcLh0 XcnL1oWNCPc0aLsQEryrtCXzxkh2yA0drzYSof6Xj0pKdU8LsIL60mtA3sY6JyhsWwkaUIoB7ZNHF KTpo10vg==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nZR5i-00EMe6-R7; Wed, 30 Mar 2022 05:41:58 +0000 Date: Tue, 29 Mar 2022 22:41:58 -0700 From: Christoph Hellwig To: Shiyang Ruan Cc: Dan Williams , Linux Kernel Mailing List , linux-xfs , Linux NVDIMM , Linux MM , linux-fsdevel , "Darrick J. Wong" , david , Christoph Hellwig , 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4fd95f0b-106f-6933-7bc6-9f0890012b53@fujitsu.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 16, 2022 at 09:46:07PM +0800, Shiyang Ruan wrote: > > Forgive me if this has been discussed before, but since dax_operations > > are in terms of pgoff and nr pages and memory_failure() is in terms of > > pfns what was the rationale for making the function signature byte > > based? > > Maybe I didn't describe it clearly... The @offset and @len here are > byte-based. And so is ->memory_failure(). Yes, but is there a good reason for that when the rest of the DAX code tends to work in page chunks?