]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ext4: use ext4_get_block_write() for DAX
authorMatthew Wilcox <willy@linux.intel.com>
Tue, 8 Sep 2015 21:59:11 +0000 (14:59 -0700)
committerDan Duval <dan.duval@oracle.com>
Wed, 7 Dec 2016 17:19:43 +0000 (12:19 -0500)
commitd8aa61c349284149232a2d7c499e42b55c8dd77f
treef66a7d79a86394e7051f7eb6913547a2b1aaf96f
parent74f03b4bab2a9c437d0d7643a748a21b541bf39e
ext4: use ext4_get_block_write() for DAX

Orabug: 22913653

DAX relies on the get_block function either zeroing newly allocated
blocks before they're findable by subsequent calls to get_block, or
marking newly allocated blocks as unwritten.  ext4_get_block() cannot
create unwritten extents, but ext4_get_block_write() can.

Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Reported-by: Andy Rudoff <andy.rudoff@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 e676a4c191653787c3fe851fe3b9f1f33d49dac2)
Signed-off-by: Dan Duval <dan.duval@oracle.com>
fs/ext4/file.c