diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-02-03 22:49:44 +0100 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-02-23 01:07:23 +0100 |
commit | 24b8491251cde66879e74092167cc0f27a1f11ce (patch) | |
tree | ffb8fc277cc2a649e6d98c6305083683e2dfee1b /fs/f2fs/f2fs.h | |
parent | f2fs: move dio preallocation into f2fs_file_write_iter (diff) | |
download | linux-24b8491251cde66879e74092167cc0f27a1f11ce.tar.xz linux-24b8491251cde66879e74092167cc0f27a1f11ce.zip |
f2fs: preallocate blocks for buffered aio writes
This patch preallocates data blocks for buffered aio writes.
With this patch, we can avoid redundant locking and unlocking of node pages
given consecutive aio request.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r-- | fs/f2fs/f2fs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 445179152c3e..f6a841b85d40 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -392,6 +392,7 @@ struct f2fs_map_blocks { #define F2FS_GET_BLOCK_FIEMAP 2 #define F2FS_GET_BLOCK_BMAP 3 #define F2FS_GET_BLOCK_PRE_DIO 4 +#define F2FS_GET_BLOCK_PRE_AIO 5 /* * i_advise uses FADVISE_XXX_BIT. We can add additional hints later. |