]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ext4: nowait aio support
authorGoldwyn Rodrigues <rgoldwyn@suse.com>
Tue, 20 Jun 2017 12:05:47 +0000 (07:05 -0500)
committerJens Axboe <axboe@kernel.dk>
Tue, 20 Jun 2017 13:12:03 +0000 (07:12 -0600)
commit728fbc0e10b7f3ce2ee043b32e3453fd5201c055
treeeff612a5bd8832bb002d3adde66a9b6c5a475f6d
parent03a07c92a9ed9938d828ca7f1d11b8bc63a7bb89
ext4: nowait aio support

Return EAGAIN if any of the following checks fail for direct I/O:
  + i_rwsem is lockable
  + Writing beyond end of file (will trigger allocation)
  + Blocks are not allocated at the write location

Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/ext4/file.c