From: Davide Italiano Date: Sun, 3 May 2015 03:21:15 +0000 (-0400) Subject: ext4: move check under lock scope to close a race. X-Git-Tag: omap-for-v4.2/wakeirq-drivers-v2~36^2~1 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=280227a75b56;p=pandora-kernel.git ext4: move check under lock scope to close a race. fallocate() checks that the file is extent-based and returns EOPNOTSUPP in case is not. Other tasks can convert from and to indirect and extent so it's safe to check only after grabbing the inode mutex. Signed-off-by: Davide Italiano Signed-off-by: Theodore Ts'o Cc: stable@vger.kernel.org --- Reading git-diff-tree failed