diff options
author | Nathan Scott <nathans@sgi.com> | 2005-05-05 16:33:20 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@melbourne.sgi.com> | 2005-05-05 16:33:20 -0400 |
commit | 24e17b5fb99d4d1b47fe0847a3a801e36d431ff6 (patch) | |
tree | 0ac181b6ddc64a04fe55aa79efceecc6e4d90451 /fs/xfs/xfs_mount.h | |
parent | 775bf6c99a4ebde13bdb8dfa528ed241483b49ef (diff) |
[XFS] Use the right offset when ensuring a delayed allocate conversion has covered the offset originally requested. Can cause data corruption when multiple processes are performing writeout on different areas of the same file. Quite difficult to hit though.
SGI Modid: xfs-linux:xfs-kern:22377a
Signed-off-by: Nathan Scott <nathans@sgi.com>
Signed-off-by: Christoph Hellwig <hch@sgi.com>
.
Diffstat (limited to 'fs/xfs/xfs_mount.h')
-rw-r--r-- | fs/xfs/xfs_mount.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/xfs/xfs_mount.h b/fs/xfs/xfs_mount.h index 1b968471ec8..8ffb65dc110 100644 --- a/fs/xfs/xfs_mount.h +++ b/fs/xfs/xfs_mount.h | |||
@@ -216,7 +216,8 @@ typedef int (*xfs_iomap_write_delay_t)( | |||
216 | void *, loff_t, size_t, int, | 216 | void *, loff_t, size_t, int, |
217 | struct xfs_bmbt_irec *, int *); | 217 | struct xfs_bmbt_irec *, int *); |
218 | typedef int (*xfs_iomap_write_allocate_t)( | 218 | typedef int (*xfs_iomap_write_allocate_t)( |
219 | void *, struct xfs_bmbt_irec *, int *); | 219 | void *, loff_t, size_t, |
220 | struct xfs_bmbt_irec *, int *); | ||
220 | typedef int (*xfs_iomap_write_unwritten_t)( | 221 | typedef int (*xfs_iomap_write_unwritten_t)( |
221 | void *, loff_t, size_t); | 222 | void *, loff_t, size_t); |
222 | typedef uint (*xfs_lck_map_shared_t)(void *); | 223 | typedef uint (*xfs_lck_map_shared_t)(void *); |
@@ -258,9 +259,9 @@ typedef struct xfs_ioops { | |||
258 | #define XFS_IOMAP_WRITE_DELAY(mp, io, offset, count, flags, mval, nmap) \ | 259 | #define XFS_IOMAP_WRITE_DELAY(mp, io, offset, count, flags, mval, nmap) \ |
259 | (*(mp)->m_io_ops.xfs_iomap_write_delay) \ | 260 | (*(mp)->m_io_ops.xfs_iomap_write_delay) \ |
260 | ((io)->io_obj, offset, count, flags, mval, nmap) | 261 | ((io)->io_obj, offset, count, flags, mval, nmap) |
261 | #define XFS_IOMAP_WRITE_ALLOCATE(mp, io, mval, nmap) \ | 262 | #define XFS_IOMAP_WRITE_ALLOCATE(mp, io, offset, count, mval, nmap) \ |
262 | (*(mp)->m_io_ops.xfs_iomap_write_allocate) \ | 263 | (*(mp)->m_io_ops.xfs_iomap_write_allocate) \ |
263 | ((io)->io_obj, mval, nmap) | 264 | ((io)->io_obj, offset, count, mval, nmap) |
264 | #define XFS_IOMAP_WRITE_UNWRITTEN(mp, io, offset, count) \ | 265 | #define XFS_IOMAP_WRITE_UNWRITTEN(mp, io, offset, count) \ |
265 | (*(mp)->m_io_ops.xfs_iomap_write_unwritten) \ | 266 | (*(mp)->m_io_ops.xfs_iomap_write_unwritten) \ |
266 | ((io)->io_obj, offset, count) | 267 | ((io)->io_obj, offset, count) |