]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dax: move DAX-related functions to a new header
authorMatthew Wilcox <willy@linux.intel.com>
Tue, 8 Sep 2015 21:58:40 +0000 (14:58 -0700)
committerDan Duval <dan.duval@oracle.com>
Wed, 7 Dec 2016 17:19:34 +0000 (12:19 -0500)
commitf26811bfcb3e7b214811418fe723abf01d28d7b6
tree301a94e5c0ac753d96e6ac04753534b81549178d
parent5ffc8ade5662051e51c9d8e25c6500c28c415715
dax: move DAX-related functions to a new header

Orabug: 22913653

In order to handle the !CONFIG_TRANSPARENT_HUGEPAGES case, we need to
return VM_FAULT_FALLBACK from the inlined dax_pmd_fault(), which is
defined in linux/mm.h.  Given that we don't want to include <linux/mm.h>
in <linux/fs.h>, the easiest solution is to move the DAX-related
functions to a new header, <linux/dax.h>.  We could also have moved
VM_FAULT_* definitions to a new header, or a different header that isn't
quite such a boil-the-ocean header as <linux/mm.h>, but this felt like
the best option.

Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Cc: Hillf Danton <dhillf@gmail.com>
Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Cc: Theodore Ts'o <tytso@mit.edu>
Cc: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(cherry picked from commit c94c2acf84dc16cf4b989bb0bc849785b7ff52f5)
Signed-off-by: Dan Duval <dan.duval@oracle.com>
fs/block_dev.c
fs/ext2/file.c
fs/ext2/inode.c
fs/ext4/file.c
fs/ext4/indirect.c
fs/ext4/inode.c
fs/xfs/xfs_buf.h
include/linux/dax.h [new file with mode: 0644]
include/linux/fs.h