From: Dave Chinner Date: Mon, 23 Feb 2015 10:44:54 +0000 (+1100) Subject: xfs: use i_mmaplock on write faults X-Git-Tag: omap-for-v4.1/fixes-rc1~44^2~5^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=075a924d45cc69c75a35f20b4912b85aa98b180a;p=pandora-kernel.git xfs: use i_mmaplock on write faults Take the i_mmaplock over write page faults. These come through the ->page_mkwrite callout, so we need to wrap that calls with the i_mmaplock. This gives us a lock order of mmap_sem -> i_mmaplock -> page_lock -> i_lock. Also, move the page_mkwrite wrapper to the same region of xfs_file.c as the read fault wrappers and add a tracepoint. Signed-off-by: Dave Chinner Reviewed-by: Brian Foster Signed-off-by: Dave Chinner --- Reading git-diff-tree failed