Received: by 10.223.185.116 with SMTP id b49csp3547620wrg; Mon, 26 Feb 2018 01:45:26 -0800 (PST) X-Google-Smtp-Source: AH8x226P1H33bqOF66cfqVSr5A1XObDJ9RLpIklVItItutq6V+QKSDl3WJnmsSJzNCBnqS5az9TU X-Received: by 10.98.101.195 with SMTP id z186mr9931097pfb.47.1519638326641; Mon, 26 Feb 2018 01:45:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519638326; cv=none; d=google.com; s=arc-20160816; b=Q62sC0HSHf8jMoEeKL320yn7dv+qWfRyDpw2y3kCTA/mEzgJWfEI8jmbrl6ybXFHwX 5CupYTpglpP+3nrks8/dMq24To1iYrMiNdQuZ+XWpGoFCjGq1zDwD6/CqGcH+Ck9pvT7 1tYgynv6lfXod6gu+xptqBnJbacFqeoJYA7Tw3Ob+/1b2He5P4jUbBuqrB5K4jix1Oah WPZV/+dmsy7qIhRO8GT0ZSJAtPPVnGYAoJzpcQuCLu+h6cQGFftFB6Fz57JyJ0CcCTm4 tmBgrJoZrUVJgxZ6i6QREuwMoVBaF1jvglNJlNGABrWhOiRRvIk7lOiENKeeem4LRpzS J18w== 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:message-id:subject:cc :to:from:date:arc-authentication-results; bh=y/qOASqA7EglFOeaSvUIsvqxgFnPgK/sLOhvbzc1+0M=; b=mbs4uu8IcJ+mjzNES4nVxSlQ4zFGt2IkXDladtH0s3MdeBsDdsFYaj4rHLy1nsrb7h OqqwXPXxGkONBA3dYIbzBpALi2QN+G+7hEGXYppk6eKznvH9xn692dmLY4Dt4pm4AAiH jztrp5StAzsQoXv0yhaw4WG9YblUQADAVZ9E/Z7eNEU8Lm+sUUycl4Sc8d//XCjmBJTq tqw2SZ5vdq/qKms3bIlL0HQS8tfAr7zOaFriXh/pyrZSY2qC+FGS/pM+6cv3NGo7hDH6 8iZIgMgEiusbMZXXW+GTeB93UKjR7sDIPKqqF/dkpWN/o9aQvKNV55swohenE3UOcTqM rnyA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o4si5357827pgf.441.2018.02.26.01.45.12; Mon, 26 Feb 2018 01:45:26 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752369AbeBZJoC (ORCPT + 99 others); Mon, 26 Feb 2018 04:44:02 -0500 Received: from mx2.suse.de ([195.135.220.15]:51360 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751963AbeBZJn4 (ORCPT ); Mon, 26 Feb 2018 04:43:56 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id F409DAB3E; Mon, 26 Feb 2018 09:43:54 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id 5DA2E1E04F9; Mon, 26 Feb 2018 10:43:54 +0100 (CET) Date: Mon, 26 Feb 2018 10:43:54 +0100 From: Jan Kara To: Dan Williams Cc: linux-nvdimm@lists.01.org, Jan Kara , linux-kernel@vger.kernel.org, stable@vger.kernel.org, linux-mm@kvack.org, Alexander Viro , linux-fsdevel@vger.kernel.org, Christoph Hellwig Subject: Re: [PATCH v2 3/5] dax: fix S_DAX definition Message-ID: <20180226094354.puos4owvd5s5pxtv@quack2.suse.cz> References: <151937026001.18973.12034171121582300402.stgit@dwillia2-desk3.amr.corp.intel.com> <151937027614.18973.7636331271085629639.stgit@dwillia2-desk3.amr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <151937027614.18973.7636331271085629639.stgit@dwillia2-desk3.amr.corp.intel.com> User-Agent: NeoMutt/20170421 (1.8.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 22-02-18 23:17:56, Dan Williams wrote: > Make sure S_DAX is defined in the CONFIG_FS_DAX=n + CONFIG_DEV_DAX=y > case. Otherwise vma_is_dax() may incorrectly return false in the > Device-DAX case. > > Cc: Alexander Viro > Cc: linux-fsdevel@vger.kernel.org > Cc: Christoph Hellwig > Cc: Jan Kara > Cc: > Fixes: dee410792419 ("/dev/dax, core: file operations and dax-mmap") > Signed-off-by: Dan Williams Looks good. You can add: Reviewed-by: Jan Kara Honza > --- > include/linux/fs.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/linux/fs.h b/include/linux/fs.h > index 79c413985305..b2fa9b4c1e51 100644 > --- a/include/linux/fs.h > +++ b/include/linux/fs.h > @@ -1859,7 +1859,7 @@ struct super_operations { > #define S_IMA 1024 /* Inode has an associated IMA struct */ > #define S_AUTOMOUNT 2048 /* Automount/referral quasi-directory */ > #define S_NOSEC 4096 /* no suid or xattr security attributes */ > -#ifdef CONFIG_FS_DAX > +#if IS_ENABLED(CONFIG_FS_DAX) || IS_ENABLED(CONFIG_DEV_DAX) > #define S_DAX 8192 /* Direct Access, avoiding the page cache */ > #else > #define S_DAX 0 /* Make all the DAX code disappear */ > -- Jan Kara SUSE Labs, CR