]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ext4: add ext4_get_block_dax()
authorMatthew Wilcox <willy@linux.intel.com>
Tue, 8 Sep 2015 21:59:20 +0000 (14:59 -0700)
committerDan Duval <dan.duval@oracle.com>
Wed, 7 Dec 2016 17:19:45 +0000 (12:19 -0500)
commitfe66b4ede6a63c0d834dd71d3ed9dc64d00d588b
tree454a8a987c30662f1856256df5a1783d1b605c50
parentfa009dc5908e100ec515d20ca3f256b1416d4624
ext4: add ext4_get_block_dax()

Orabug: 22913653

DAX wants different semantics from any currently-existing ext4 get_block
callback.  Unlike ext4_get_block_write(), it needs to honour the
'create' flag, and unlike ext4_get_block(), it needs to be able to
return unwritten extents.  So introduce a new ext4_get_block_dax() which
has those semantics.

We could also change ext4_get_block_write() to honour the 'create' flag,
but that might have consequences on other users that I do not currently
understand.

Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Cc: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(cherry picked from commit ed923b5776a2d2e949bd5b20f3956d68f3c826b7)
Signed-off-by: Dan Duval <dan.duval@oracle.com>
fs/ext4/ext4.h
fs/ext4/file.c
fs/ext4/inode.c