aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_iomap.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2010-04-28 08:28:56 -0400
committerAlex Elder <aelder@sgi.com>2010-05-19 10:58:17 -0400
commit207d041602cead1c1a16288f6225aea9da1f5bc4 (patch)
treead6149735c8bc0c5d112e301e6e17dac6280dcb6 /fs/xfs/xfs_iomap.h
parente513182d4d7ec8f1870ae368c549ef2838e2c105 (diff)
xfs: kill struct xfs_iomap
Now that struct xfs_iomap contains exactly the same units as struct xfs_bmbt_irec we can just use the latter directly in the aops code. Replace the missing IOMAP_NEW flag with a new boolean output parameter to xfs_iomap. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_iomap.h')
-rw-r--r--fs/xfs/xfs_iomap.h26
1 files changed, 1 insertions, 25 deletions
diff --git a/fs/xfs/xfs_iomap.h b/fs/xfs/xfs_iomap.h
index d2f3b67d39f9..ba49a4fd1b3f 100644
--- a/fs/xfs/xfs_iomap.h
+++ b/fs/xfs/xfs_iomap.h
@@ -47,35 +47,11 @@ typedef enum {
47 { BMAPI_MMAP, "MMAP" }, \ 47 { BMAPI_MMAP, "MMAP" }, \
48 { BMAPI_TRYLOCK, "TRYLOCK" } 48 { BMAPI_TRYLOCK, "TRYLOCK" }
49 49
50/*
51 * xfs_iomap_t: File system I/O map
52 *
53 * The iomap_bn field is expressed in 512-byte blocks, and is where the
54 * mapping starts on disk.
55 *
56 * The iomap_offset, iomap_bsize and iomap_delta fields are in bytes.
57 * iomap_offset is the offset of the mapping in the file itself.
58 * iomap_bsize is the size of the mapping, iomap_delta is the
59 * desired data's offset into the mapping, given the offset supplied
60 * to the file I/O map routine.
61 *
62 * When a request is made to read beyond the logical end of the object,
63 * iomap_size may be set to 0, but iomap_offset and iomap_length should be set
64 * to the actual amount of underlying storage that has been allocated, if any.
65 */
66
67typedef struct xfs_iomap {
68 xfs_daddr_t iomap_bn; /* first 512B blk of mapping */
69 xfs_off_t iomap_offset; /* offset of mapping, bytes */
70 xfs_off_t iomap_bsize; /* size of mapping, bytes */
71 iomap_flags_t iomap_flags;
72} xfs_iomap_t;
73
74struct xfs_inode; 50struct xfs_inode;
75struct xfs_bmbt_irec; 51struct xfs_bmbt_irec;
76 52
77extern int xfs_iomap(struct xfs_inode *, xfs_off_t, ssize_t, int, 53extern int xfs_iomap(struct xfs_inode *, xfs_off_t, ssize_t, int,
78 struct xfs_iomap *, int *); 54 struct xfs_bmbt_irec *, int *, int *);
79extern int xfs_iomap_write_direct(struct xfs_inode *, xfs_off_t, size_t, 55extern int xfs_iomap_write_direct(struct xfs_inode *, xfs_off_t, size_t,
80 int, struct xfs_bmbt_irec *, int *, int); 56 int, struct xfs_bmbt_irec *, int *, int);
81extern int xfs_iomap_write_delay(struct xfs_inode *, xfs_off_t, size_t, int, 57extern int xfs_iomap_write_delay(struct xfs_inode *, xfs_off_t, size_t, int,