Received: by 10.223.176.5 with SMTP id f5csp1908557wra; Sun, 4 Feb 2018 15:17:52 -0800 (PST) X-Google-Smtp-Source: AH8x224ehco5rCnDeNmqu1ZVxC9aMwAzgslvu77Mz0IAnKr3hb8owfZBHqUjulxy+HjkFCkc3BkV X-Received: by 10.98.156.143 with SMTP id u15mr46382866pfk.170.1517786272733; Sun, 04 Feb 2018 15:17:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517786272; cv=none; d=google.com; s=arc-20160816; b=QykZ6PmLdZ5td4nFWm28LQEdwza2RFNk0OPDmh36xeIVBVK/1og/JbksTPSZ/S2wGj GLoLWWy3iCVK3x7yeOAXR2s2Jh21szEbSPyj/glxfNtppA/6m3O9xbKTVBzGgYZodLzZ dDDIRQAAeRm6xRrb2lVGcASZppuJTzPFS5C9XDlomd/Nn2RPny8uJYXm5lPdWGY5AgNd iHdVVtlahkU5C31j6GypCCs9Rhd+4bg5jVMAT8Gq9Y5af4R4fA7ee1YlYBvq64vtCh6v JVHGmd8YVNNFfYHlPXjywx7XHY0IqUms5H3v+yk06aSUMNR3UI4a6vr9KsW/3ArvbwOg IIfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:cc:to:from :subject:arc-authentication-results; bh=Crnldqxvaqo9tAGdOT+cMpqMCnRV7Sh4tJOhyrmtc0A=; b=dXxmW1Pc60CtuZlj3568hFZ8sWV7lYoU1AsHGfCyICHP0f4CJmIszCcCMNSwAB7g/Y 1PKc+K+6KvfUs7Mu92WvkdcoY7QuUSnpp1tpUmW6EgGh/vmtiyKJkASX7D12aAofkb5J WOCWTEgkvc/gohJNcXb7uOkvNIAxFKO2BpXtjbiPm3NlBJDBHU06fCbe8zmlLJtGB/Mw MSr7lSO5UCey1FO1liCEJoxJeyLeKpsD9pGfLF15TdpEdlWKIPA5QCayT+GMaAzBaFdp 0NEclGowidZCqWVORUUQ3cFN4D6JB8WY1TSWsojXMWrhfCL7Tz94ndgeRb83LXIPC2Kd Y3IA== 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 g2si4728843pgq.416.2018.02.04.15.17.38; Sun, 04 Feb 2018 15:17:52 -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 S1752278AbeBDXOn (ORCPT + 99 others); Sun, 4 Feb 2018 18:14:43 -0500 Received: from mga02.intel.com ([134.134.136.20]:17693 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752110AbeBDXO0 (ORCPT ); Sun, 4 Feb 2018 18:14:26 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Feb 2018 15:14:26 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,462,1511856000"; d="scan'208";a="198582639" Received: from dwillia2-desk3.jf.intel.com (HELO dwillia2-desk3.amr.corp.intel.com) ([10.54.39.16]) by orsmga005.jf.intel.com with ESMTP; 04 Feb 2018 15:14:25 -0800 Subject: [PATCH 1/3] dax: fix S_DAX definition From: Dan Williams To: alex.williamson@redhat.com Cc: jack@suse.cz, linux-nvdimm@lists.01.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Alexander Viro , linux-fsdevel@vger.kernel.org, hch@lst.de Date: Sun, 04 Feb 2018 15:05:20 -0800 Message-ID: <151778552057.7139.16434857860597414697.stgit@dwillia2-desk3.amr.corp.intel.com> In-Reply-To: <151778551496.7139.17808629759104553625.stgit@dwillia2-desk3.amr.corp.intel.com> References: <151778551496.7139.17808629759104553625.stgit@dwillia2-desk3.amr.corp.intel.com> User-Agent: StGit/0.17.1-9-g687f MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 511fbaabf624..a3329258ff5c 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -1850,7 +1850,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 */