From: Chris Mason Date: Thu, 1 Oct 2009 16:29:10 +0000 (-0400) Subject: Btrfs: take i_mutex before generic_write_checks X-Git-Tag: v2.6.32-rc3~13^2~2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab93dbecfba72bbc04b7036343d180aaff1b61a3;p=pandora-kernel.git Btrfs: take i_mutex before generic_write_checks btrfs_file_write was incorrectly calling generic_write_checks without taking i_mutex. This lead to problems with racing around i_size when doing O_APPEND writes. The fix here is to move i_mutex higher. Signed-off-by: Chris Mason --- Reading git-diff-tree failed