Searched hist:"280227 a75b56ab5d35854f3a77ef74a7ad56a203" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/fs/ext4/ |
H A D | extents.c | diff 280227a75b56ab5d35854f3a77ef74a7ad56a203 Sat May 02 22:21:15 CDT 2015 Davide Italiano <dccitaliano@gmail.com> 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 <dccitaliano@gmail.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu> Cc: stable@vger.kernel.org
|