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: v3.2.70~94 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4209178b876408926ef6f02e51dd447bcebde977;p=pandora-kernel.git ext4: move check under lock scope to close a race. commit 280227a75b56ab5d35854f3a77ef74a7ad56a203 upstream. 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 [bwh: Backported to 3.2: - Adjust context - Add the 'out' label] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed