aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_iomap.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_iomap.h')
-rw-r--r--fs/xfs/xfs_iomap.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/fs/xfs/xfs_iomap.h b/fs/xfs/xfs_iomap.h
index 287895a3adc1..4daaa5212102 100644
--- a/fs/xfs/xfs_iomap.h
+++ b/fs/xfs/xfs_iomap.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2003,2004 Silicon Graphics, Inc. All Rights Reserved. 2 * Copyright (c) 2003-2005 Silicon Graphics, Inc. All Rights Reserved.
3 * 3 *
4 * This program is free software; you can redistribute it and/or modify it 4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of version 2 of the GNU General Public License as 5 * under the terms of version 2 of the GNU General Public License as
@@ -64,13 +64,13 @@ typedef enum {
64/* 64/*
65 * xfs_iomap_t: File system I/O map 65 * xfs_iomap_t: File system I/O map
66 * 66 *
67 * The iomap_bn field is expressed in 512-byte blocks, and is where the 67 * The iomap_bn field is expressed in 512-byte blocks, and is where the
68 * mapping starts on disk. 68 * mapping starts on disk.
69 * 69 *
70 * The iomap_offset, iomap_bsize and iomap_delta fields are in bytes. 70 * The iomap_offset, iomap_bsize and iomap_delta fields are in bytes.
71 * iomap_offset is the offset of the mapping in the file itself. 71 * iomap_offset is the offset of the mapping in the file itself.
72 * iomap_bsize is the size of the mapping, iomap_delta is the 72 * iomap_bsize is the size of the mapping, iomap_delta is the
73 * desired data's offset into the mapping, given the offset supplied 73 * desired data's offset into the mapping, given the offset supplied
74 * to the file I/O map routine. 74 * to the file I/O map routine.
75 * 75 *
76 * When a request is made to read beyond the logical end of the object, 76 * When a request is made to read beyond the logical end of the object,
@@ -81,8 +81,8 @@ typedef enum {
81typedef struct xfs_iomap { 81typedef struct xfs_iomap {
82 xfs_daddr_t iomap_bn; /* first 512b blk of mapping */ 82 xfs_daddr_t iomap_bn; /* first 512b blk of mapping */
83 xfs_buftarg_t *iomap_target; 83 xfs_buftarg_t *iomap_target;
84 loff_t iomap_offset; /* offset of mapping, bytes */ 84 xfs_off_t iomap_offset; /* offset of mapping, bytes */
85 loff_t iomap_bsize; /* size of mapping, bytes */ 85 xfs_off_t iomap_bsize; /* size of mapping, bytes */
86 size_t iomap_delta; /* offset into mapping, bytes */ 86 size_t iomap_delta; /* offset into mapping, bytes */
87 iomap_flags_t iomap_flags; 87 iomap_flags_t iomap_flags;
88} xfs_iomap_t; 88} xfs_iomap_t;
@@ -93,12 +93,12 @@ struct xfs_bmbt_irec;
93 93
94extern int xfs_iomap(struct xfs_iocore *, xfs_off_t, ssize_t, int, 94extern int xfs_iomap(struct xfs_iocore *, xfs_off_t, ssize_t, int,
95 struct xfs_iomap *, int *); 95 struct xfs_iomap *, int *);
96extern int xfs_iomap_write_direct(struct xfs_inode *, loff_t, size_t, 96extern int xfs_iomap_write_direct(struct xfs_inode *, xfs_off_t, size_t,
97 int, struct xfs_bmbt_irec *, int *, int); 97 int, struct xfs_bmbt_irec *, int *, int);
98extern int xfs_iomap_write_delay(struct xfs_inode *, loff_t, size_t, int, 98extern int xfs_iomap_write_delay(struct xfs_inode *, xfs_off_t, size_t, int,
99 struct xfs_bmbt_irec *, int *); 99 struct xfs_bmbt_irec *, int *);
100extern int xfs_iomap_write_allocate(struct xfs_inode *, loff_t, size_t, 100extern int xfs_iomap_write_allocate(struct xfs_inode *, xfs_off_t, size_t,
101 struct xfs_bmbt_irec *, int *); 101 struct xfs_bmbt_irec *, int *);
102extern int xfs_iomap_write_unwritten(struct xfs_inode *, loff_t, size_t); 102extern int xfs_iomap_write_unwritten(struct xfs_inode *, xfs_off_t, size_t);
103 103
104#endif /* __XFS_IOMAP_H__*/ 104#endif /* __XFS_IOMAP_H__*/