Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1029722imm; Fri, 1 Jun 2018 14:00:46 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJXN/Fjx0UZg0Ir9tsWkfLukXNBAue9aIT7CJOiIm1te5zokJOdScKl8giNXVtrXzxW7o0q X-Received: by 2002:a62:8a5b:: with SMTP id y88-v6mr12271235pfd.103.1527886846323; Fri, 01 Jun 2018 14:00:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527886846; cv=none; d=google.com; s=arc-20160816; b=DUjPajwHJzcBHXeEIQIMtwUrRfziK6H0a1kclLWoMIXkSxBnRwMkFLzsA+OE7KuEnx /T3x1HaV4sIc8KNlmsYUBs2FCwASlWXAH2Hwx0Zv8j1qMDnn3YD/danhzxPZo9z0S8kD Y8gzY8daXjsARlkK/ta8z+KyJqtgB3H0Xa8Y9QnfoyVyVEuj3JmuzY8M2cDPPP1ZrZ4K 6jRx4XiAnP3GXMIO6s5dhjdf1WayHuV5JyxUXH8Kyi4CgxFKJM3NML8j1tPvhQka48S9 jH+kcDw59zGyViBDQ/QUkbhf3qn8UhK/fJ92+yxmo37oRp+vlu2+lGNNuSQV5SmAnXM1 Qyrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:arc-authentication-results; bh=VV7ZiPnN8bVwd6FSg0+I5XXl1zP4fPZ4R87DCizVkXU=; b=oU1RATB74OBGvzbvY80/C2ZqO45bu5MjRTJsxCtb/235yui+4NkYZbRj6gCuBd9NSp 3E96AzUjoPe8Xre65YQqzyCgFE3R5S4mIdiN6Hwt9EGRBRJuZBos8g4ZWafH/I/6vf22 rMtg/ZDUhos9bacCRgPzDGNYSK3gUEehAG/1UerGNAeixkxyEKtg4bDgLWxDe/vS+ch8 5iurSbD6DimldX1i9Pe7uHE6Qgr5Qbr2G5eNq7rL6F7y66zJshU9Pshl+1jVmDkG8kMV wQI/239Demhth+cJMpcmLR6Y7Kx7iIdKL0R1s9FpeTlN/2EX6pbnKZFERURhYCjn2WUu 3afw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d1-v6si3918049pgo.337.2018.06.01.14.00.31; Fri, 01 Jun 2018 14:00:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751206AbeFAVAA (ORCPT + 99 others); Fri, 1 Jun 2018 17:00:00 -0400 Received: from mga09.intel.com ([134.134.136.24]:53818 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750989AbeFAU7w (ORCPT ); Fri, 1 Jun 2018 16:59:52 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Jun 2018 13:59:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,467,1520924400"; d="scan'208";a="44014363" Received: from theros.lm.intel.com (HELO linux.intel.com) ([10.232.112.164]) by fmsmga007.fm.intel.com with ESMTP; 01 Jun 2018 13:59:50 -0700 Date: Fri, 1 Jun 2018 14:59:50 -0600 From: Ross Zwisler To: "Darrick J. Wong" Cc: Mike Snitzer , Dave Jiang , Toshi Kani , linux-nvdimm@lists.01.org, linux-kernel@vger.kernel.org, linux-xfs@vger.kernel.org, dm-devel@redhat.com, linux-fsdevel@vger.kernel.org, Ross Zwisler Subject: Re: [dm-devel] [PATCH v2 2/7] dax: change bdev_dax_supported() to support boolean returns Message-ID: <20180601205950.GA12821@linux.intel.com> Mail-Followup-To: Ross Zwisler , "Darrick J. Wong" , Mike Snitzer , Dave Jiang , Toshi Kani , linux-nvdimm@lists.01.org, linux-kernel@vger.kernel.org, linux-xfs@vger.kernel.org, dm-devel@redhat.com, linux-fsdevel@vger.kernel.org References: <20180529195106.14268-1-ross.zwisler@linux.intel.com> <20180529195106.14268-3-ross.zwisler@linux.intel.com> <20180529212510.GJ30110@magnolia> <20180529220114.GA13948@linux.intel.com> <20180531191332.GB7825@magnolia> <20180531205206.GA12681@redhat.com> <20180531222645.GA6086@magnolia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180531222645.GA6086@magnolia> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 31, 2018 at 03:26:45PM -0700, Darrick J. Wong wrote: > On Thu, May 31, 2018 at 04:52:06PM -0400, Mike Snitzer wrote: > > On Thu, May 31 2018 at 3:13pm -0400, > > Darrick J. Wong wrote: > > > > > On Tue, May 29, 2018 at 04:01:14PM -0600, Ross Zwisler wrote: > > > > On Tue, May 29, 2018 at 02:25:10PM -0700, Darrick J. Wong wrote: > > > > > On Tue, May 29, 2018 at 01:51:01PM -0600, Ross Zwisler wrote: > > > > > > From: Dave Jiang > > > > > > > > > > > > The function return values are confusing with the way the function is > > > > > > named. We expect a true or false return value but it actually returns > > > > > > 0/-errno. This makes the code very confusing. Changing the return values > > > > > > to return a bool where if DAX is supported then return true and no DAX > > > > > > support returns false. > > > > > > > > > > > > Signed-off-by: Dave Jiang > > > > > > Signed-off-by: Ross Zwisler > > > > > > > > > > Looks ok, do you want me to pull the first two patches through the xfs > > > > > tree? > > > > > > > > > > Reviewed-by: Darrick J. Wong > > > > > > > > Thanks for the review. > > > > > > > > I'm not sure what's best. If you do that then Mike will need to have a DM > > > > branch for the rest of the series based on your stable commits, yea? > > > > > > > > Mike what would you prefer? > > > > > > I /was/ about to say that I would pull in the first two patches, but now > > > I can't get xfs to mount with pmem at all, and have no way of testing > > > this...? > > > > Once you get this sorted out, please feel free to pull in the first 2. > > Sorted. It'll be in Friday's for-next. Ross helped me bang on the pmem > devices w/ ndctl to enable fsdax mode and twist qemu until everything > worked properly. ;) For anyone else who would like to simulate persistent memory using QEMU, I've added some hints here: https://nvdimm.wiki.kernel.org/pmem_in_qemu