Commit 280227a7 authored by Committed by Theodore Ts'o
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 <email@example.com> Signed-off-by: Theodore Ts'o <firstname.lastname@example.org> Cc: email@example.com
Showing with 8 additions and 7 deletions