diff options
author | Jiaying Zhang <jiayingz@google.com> | 2010-03-02 13:28:44 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2010-03-02 13:28:44 -0500 |
commit | c7064ef13b2181a489836349f9baf87df0dab28f (patch) | |
tree | 433d86d9ed4285e5c5e7f24fbbaa7f48fad09381 /fs/ext4/ext4.h | |
parent | b8b8afe236e97b6359d46d3a3f8c46455e192271 (diff) |
ext4: mechanical rename some of the direct I/O get_block's identifiers
This commit renames some of the direct I/O's block allocation flags,
variables, and functions introduced in Mingming's "Direct IO for holes
and fallocate" patches so that they can be used by ext4's buffered
write path as well. Also changed the related function comments
accordingly to cover both direct write and buffered write cases.
Signed-off-by: Jiaying Zhang <jiayingz@google.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r-- | fs/ext4/ext4.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index 74664ca19e22..c831a580bd76 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h | |||
@@ -133,7 +133,7 @@ struct mpage_da_data { | |||
133 | int pages_written; | 133 | int pages_written; |
134 | int retval; | 134 | int retval; |
135 | }; | 135 | }; |
136 | #define DIO_AIO_UNWRITTEN 0x1 | 136 | #define EXT4_IO_UNWRITTEN 0x1 |
137 | typedef struct ext4_io_end { | 137 | typedef struct ext4_io_end { |
138 | struct list_head list; /* per-file finished AIO list */ | 138 | struct list_head list; /* per-file finished AIO list */ |
139 | struct inode *inode; /* file being written to */ | 139 | struct inode *inode; /* file being written to */ |
@@ -355,13 +355,13 @@ struct ext4_new_group_data { | |||
355 | /* caller is from the direct IO path, request to creation of an | 355 | /* caller is from the direct IO path, request to creation of an |
356 | unitialized extents if not allocated, split the uninitialized | 356 | unitialized extents if not allocated, split the uninitialized |
357 | extent if blocks has been preallocated already*/ | 357 | extent if blocks has been preallocated already*/ |
358 | #define EXT4_GET_BLOCKS_DIO 0x0008 | 358 | #define EXT4_GET_BLOCKS_PRE_IO 0x0008 |
359 | #define EXT4_GET_BLOCKS_CONVERT 0x0010 | 359 | #define EXT4_GET_BLOCKS_CONVERT 0x0010 |
360 | #define EXT4_GET_BLOCKS_DIO_CREATE_EXT (EXT4_GET_BLOCKS_DIO|\ | 360 | #define EXT4_GET_BLOCKS_IO_CREATE_EXT (EXT4_GET_BLOCKS_PRE_IO|\ |
361 | EXT4_GET_BLOCKS_CREATE_UNINIT_EXT) | 361 | EXT4_GET_BLOCKS_CREATE_UNINIT_EXT) |
362 | /* Convert extent to initialized after direct IO complete */ | 362 | /* Convert extent to initialized after IO complete */ |
363 | #define EXT4_GET_BLOCKS_DIO_CONVERT_EXT (EXT4_GET_BLOCKS_CONVERT|\ | 363 | #define EXT4_GET_BLOCKS_IO_CONVERT_EXT (EXT4_GET_BLOCKS_CONVERT|\ |
364 | EXT4_GET_BLOCKS_DIO_CREATE_EXT) | 364 | EXT4_GET_BLOCKS_IO_CREATE_EXT) |
365 | 365 | ||
366 | /* | 366 | /* |
367 | * Flags used by ext4_free_blocks | 367 | * Flags used by ext4_free_blocks |
@@ -700,8 +700,8 @@ struct ext4_inode_info { | |||
700 | qsize_t i_reserved_quota; | 700 | qsize_t i_reserved_quota; |
701 | #endif | 701 | #endif |
702 | 702 | ||
703 | /* completed async DIOs that might need unwritten extents handling */ | 703 | /* completed IOs that might need unwritten extents handling */ |
704 | struct list_head i_aio_dio_complete_list; | 704 | struct list_head i_completed_io_list; |
705 | /* current io_end structure for async DIO write*/ | 705 | /* current io_end structure for async DIO write*/ |
706 | ext4_io_end_t *cur_aio_dio; | 706 | ext4_io_end_t *cur_aio_dio; |
707 | 707 | ||
@@ -1461,7 +1461,7 @@ extern int ext4_block_truncate_page(handle_t *handle, | |||
1461 | struct address_space *mapping, loff_t from); | 1461 | struct address_space *mapping, loff_t from); |
1462 | extern int ext4_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf); | 1462 | extern int ext4_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf); |
1463 | extern qsize_t *ext4_get_reserved_space(struct inode *inode); | 1463 | extern qsize_t *ext4_get_reserved_space(struct inode *inode); |
1464 | extern int flush_aio_dio_completed_IO(struct inode *inode); | 1464 | extern int flush_completed_IO(struct inode *inode); |
1465 | extern void ext4_da_update_reserve_space(struct inode *inode, | 1465 | extern void ext4_da_update_reserve_space(struct inode *inode, |
1466 | int used, int quota_claim); | 1466 | int used, int quota_claim); |
1467 | /* ioctl.c */ | 1467 | /* ioctl.c */ |