aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_aops.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_aops.h')
-rw-r--r--fs/xfs/xfs_aops.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/xfs/xfs_aops.h b/fs/xfs/xfs_aops.h
index a4343c63fb38..b4421177b68d 100644
--- a/fs/xfs/xfs_aops.h
+++ b/fs/xfs/xfs_aops.h
@@ -24,12 +24,14 @@ extern mempool_t *xfs_ioend_pool;
24 * Types of I/O for bmap clustering and I/O completion tracking. 24 * Types of I/O for bmap clustering and I/O completion tracking.
25 */ 25 */
26enum { 26enum {
27 XFS_IO_INVALID, /* initial state */
27 XFS_IO_DELALLOC, /* covers delalloc region */ 28 XFS_IO_DELALLOC, /* covers delalloc region */
28 XFS_IO_UNWRITTEN, /* covers allocated but uninitialized data */ 29 XFS_IO_UNWRITTEN, /* covers allocated but uninitialized data */
29 XFS_IO_OVERWRITE, /* covers already allocated extent */ 30 XFS_IO_OVERWRITE, /* covers already allocated extent */
30}; 31};
31 32
32#define XFS_IO_TYPES \ 33#define XFS_IO_TYPES \
34 { XFS_IO_INVALID, "invalid" }, \
33 { XFS_IO_DELALLOC, "delalloc" }, \ 35 { XFS_IO_DELALLOC, "delalloc" }, \
34 { XFS_IO_UNWRITTEN, "unwritten" }, \ 36 { XFS_IO_UNWRITTEN, "unwritten" }, \
35 { XFS_IO_OVERWRITE, "overwrite" } 37 { XFS_IO_OVERWRITE, "overwrite" }
@@ -39,7 +41,7 @@ enum {
39 * It can manage several multi-page bio's at once. 41 * It can manage several multi-page bio's at once.
40 */ 42 */
41typedef struct xfs_ioend { 43typedef struct xfs_ioend {
42 struct xfs_ioend *io_list; /* next ioend in chain */ 44 struct list_head io_list; /* next ioend in chain */
43 unsigned int io_type; /* delalloc / unwritten */ 45 unsigned int io_type; /* delalloc / unwritten */
44 int io_error; /* I/O error code */ 46 int io_error; /* I/O error code */
45 atomic_t io_remaining; /* hold count */ 47 atomic_t io_remaining; /* hold count */