]> 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)
commitbbdd4e8deccb78df6a3b2bf58eb1b2fbc39d203d
tree09326751b287c3b0770426c4a94512f60e4679fe
parent260e27e370df3d1f82541f97c2dd1c26610af7f4
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