OSDN Git Service

f2fs: add nowait aio support
authorHyunchul Lee <cheol.lee@lge.com>
Thu, 8 Mar 2018 10:34:38 +0000 (19:34 +0900)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sat, 17 Mar 2018 04:57:32 +0000 (13:57 +0900)
commitb91050a80cec3daf5a21f78274330df64a4936a3
tree0195cd219ab9a4f33027b694b64bbfaa970e0e0a
parent63189b785960c3346d1af347516b7438f7ada8ec
f2fs: add nowait aio support

This patch adds nowait aio support[1].

Return EAGAIN if any of the following checks fail for direct I/O:
  - i_rwsem is not lockable
  - Blocks are not allocated at the write location

And xfstests generic/471 is passed.

 [1]: 6be96d "Introduce RWF_NOWAIT and FMODE_AIO_NOWAIT"

Signed-off-by: Hyunchul Lee <cheol.lee@lge.com>
Reviewed-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c
fs/f2fs/f2fs.h
fs/f2fs/file.c