aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/ext4.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r--fs/ext4/ext4.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index 75b2326b04c6..3b41d4ae6f9d 100644
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
@@ -198,19 +198,8 @@ struct mpage_da_data {
198#define EXT4_IO_END_ERROR 0x0002 198#define EXT4_IO_END_ERROR 0x0002
199#define EXT4_IO_END_DIRECT 0x0004 199#define EXT4_IO_END_DIRECT 0x0004
200 200
201struct ext4_io_page {
202 struct page *p_page;
203 atomic_t p_count;
204};
205
206#define MAX_IO_PAGES 128
207
208/* 201/*
209 * For converting uninitialized extents on a work queue. 202 * For converting uninitialized extents on a work queue.
210 *
211 * 'page' is only used from the writepage() path; 'pages' is only used for
212 * buffered writes; they are used to keep page references until conversion
213 * takes place. For AIO/DIO, neither field is filled in.
214 */ 203 */
215typedef struct ext4_io_end { 204typedef struct ext4_io_end {
216 struct list_head list; /* per-file finished IO list */ 205 struct list_head list; /* per-file finished IO list */
@@ -220,15 +209,12 @@ typedef struct ext4_io_end {
220 ssize_t size; /* size of the extent */ 209 ssize_t size; /* size of the extent */
221 struct kiocb *iocb; /* iocb struct for AIO */ 210 struct kiocb *iocb; /* iocb struct for AIO */
222 int result; /* error value for AIO */ 211 int result; /* error value for AIO */
223 int num_io_pages; /* for writepages() */
224 struct ext4_io_page *pages[MAX_IO_PAGES]; /* for writepages() */
225} ext4_io_end_t; 212} ext4_io_end_t;
226 213
227struct ext4_io_submit { 214struct ext4_io_submit {
228 int io_op; 215 int io_op;
229 struct bio *io_bio; 216 struct bio *io_bio;
230 ext4_io_end_t *io_end; 217 ext4_io_end_t *io_end;
231 struct ext4_io_page *io_page;
232 sector_t io_next_block; 218 sector_t io_next_block;
233}; 219};
234 220