diff options
author | Nathan Scott <nathans@sgi.com> | 2005-05-05 16:33:40 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@melbourne.sgi.com> | 2005-05-05 16:33:40 -0400 |
commit | f403b7f452e4347f6af14c1f3c47bce758eb6337 (patch) | |
tree | 293a62e61b9cde904cda0a034c9ed91818c7764e /fs/xfs/xfs_iomap.h | |
parent | 24e17b5fb99d4d1b47fe0847a3a801e36d431ff6 (diff) |
[XFS] Cleanup use of loff_t vs xfs_off_t in the core code.
SGI Modid: xfs-linux:xfs-kern:22378a
Signed-off-by: Nathan Scott <nathans@sgi.com>
Signed-off-by: Christoph Hellwig <hch@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_iomap.h')
-rw-r--r-- | fs/xfs/xfs_iomap.h | 20 |
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 { | |||
81 | typedef struct xfs_iomap { | 81 | typedef 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 | ||
94 | extern int xfs_iomap(struct xfs_iocore *, xfs_off_t, ssize_t, int, | 94 | extern int xfs_iomap(struct xfs_iocore *, xfs_off_t, ssize_t, int, |
95 | struct xfs_iomap *, int *); | 95 | struct xfs_iomap *, int *); |
96 | extern int xfs_iomap_write_direct(struct xfs_inode *, loff_t, size_t, | 96 | extern 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); |
98 | extern int xfs_iomap_write_delay(struct xfs_inode *, loff_t, size_t, int, | 98 | extern 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 *); |
100 | extern int xfs_iomap_write_allocate(struct xfs_inode *, loff_t, size_t, | 100 | extern 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 *); |
102 | extern int xfs_iomap_write_unwritten(struct xfs_inode *, loff_t, size_t); | 102 | extern 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__*/ |