From: Matthew Wilcox Date: Tue, 8 Sep 2015 21:59:22 +0000 (-0700) Subject: ext4: start transaction before calling into DAX X-Git-Tag: omap-for-v4.3/fixes-rc1~54^2~119 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01a33b4ace68bc35679a347f21d5ed6e222e30dc;p=pandora-kernel.git ext4: start transaction before calling into DAX Jan Kara pointed out that in the case where we are writing to a hole, we can end up with a lock inversion between the page lock and the journal lock. We can avoid this by starting the transaction in ext4 before calling into DAX. The journal lock nests inside the superblock pagefault lock, so we have to duplicate that code from dax_fault, like XFS does. Signed-off-by: Matthew Wilcox Cc: Jan Kara Cc: Theodore Ts'o Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed