]> git.baikalelectronics.ru Git - kernel.git/commit
dax: move RADIX_DAX_* defines to dax.h
authorRoss Zwisler <ross.zwisler@linux.intel.com>
Tue, 8 Nov 2016 00:33:35 +0000 (11:33 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 8 Nov 2016 00:33:35 +0000 (11:33 +1100)
commitfa28f7296a7ce38ed15dc06bd2149e04c8db9d4b
tree09326751b287c3b0770426c4a94512f60e4679fe
parent1550290b08012637e8d741a6a298ec6320dadda2
dax: move RADIX_DAX_* defines to dax.h

The RADIX_DAX_* defines currently mostly live in fs/dax.c, with just
RADIX_DAX_ENTRY_LOCK being in include/linux/dax.h so it can be used in
mm/filemap.c.  When we add PMD support, though, mm/filemap.c will also need
access to the RADIX_DAX_PTE type so it can properly construct a 4k sized
empty entry.

Instead of shifting the defines between dax.c and dax.h as they are
individually used in other code, just move them wholesale to dax.h so
they'll be available when we need them.

Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/dax.c
include/linux/dax.h