]> git.baikalelectronics.ru Git - kernel.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)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 8 Sep 2015 22:35:28 +0000 (15:35 -0700)
commitef3df7a8b8021ad9395ef534821d7a2125bf14bd
tree5b83a284b5a4fbe41da5a34f0e321e09e0d4c188
parent6a6f816361de7a66f642dde8921c485655f54e1c
ext4: use ext4_get_block_write() for DAX

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>
fs/ext4/file.c