diff options
author | Davide Italiano <dccitaliano@gmail.com> | 2015-05-02 23:21:15 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-05-13 05:14:29 -0700 |
commit | 1754083fb992e955ef22fc07de639a41a5ca3c7a (patch) | |
tree | 290ec8867c65d259ce07776041bee1da15a10774 /drivers/scsi/mpt2sas/mpi/mpi2_sas.h | |
parent | ce879f96b58445d098969a1b329deae67b61d514 (diff) |
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 <dccitaliano@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi/mpi2_sas.h')
0 files changed, 0 insertions, 0 deletions