diff options
Diffstat (limited to 'fs/xfs/xfs_mount.h')
-rw-r--r-- | fs/xfs/xfs_mount.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/fs/xfs/xfs_mount.h b/fs/xfs/xfs_mount.h index 5fc6201dd8e2..30dd08fb9f57 100644 --- a/fs/xfs/xfs_mount.h +++ b/fs/xfs/xfs_mount.h | |||
@@ -210,15 +210,16 @@ typedef int (*xfs_bmapi_t)(struct xfs_trans *, void *, | |||
210 | struct xfs_bmap_free *); | 210 | struct xfs_bmap_free *); |
211 | typedef int (*xfs_bmap_eof_t)(void *, xfs_fileoff_t, int, int *); | 211 | typedef int (*xfs_bmap_eof_t)(void *, xfs_fileoff_t, int, int *); |
212 | typedef int (*xfs_iomap_write_direct_t)( | 212 | typedef int (*xfs_iomap_write_direct_t)( |
213 | void *, loff_t, size_t, int, | 213 | void *, xfs_off_t, size_t, int, |
214 | struct xfs_bmbt_irec *, int *, int); | 214 | struct xfs_bmbt_irec *, int *, int); |
215 | typedef int (*xfs_iomap_write_delay_t)( | 215 | typedef int (*xfs_iomap_write_delay_t)( |
216 | void *, loff_t, size_t, int, | 216 | void *, xfs_off_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 *, xfs_off_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 *, xfs_off_t, size_t); |
222 | typedef uint (*xfs_lck_map_shared_t)(void *); | 223 | typedef uint (*xfs_lck_map_shared_t)(void *); |
223 | typedef void (*xfs_lock_t)(void *, uint); | 224 | typedef void (*xfs_lock_t)(void *, uint); |
224 | typedef void (*xfs_lock_demote_t)(void *, uint); | 225 | typedef void (*xfs_lock_demote_t)(void *, uint); |
@@ -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) |
@@ -428,10 +429,10 @@ typedef struct xfs_mount { | |||
428 | #define XFS_WRITEIO_LOG_LARGE 16 | 429 | #define XFS_WRITEIO_LOG_LARGE 16 |
429 | 430 | ||
430 | /* | 431 | /* |
431 | * Max and min values for UIO and mount-option defined I/O sizes; | 432 | * Max and min values for mount-option defined I/O |
432 | * min value can't be less than a page. Currently unused. | 433 | * preallocation sizes. |
433 | */ | 434 | */ |
434 | #define XFS_MAX_IO_LOG 16 /* 64K */ | 435 | #define XFS_MAX_IO_LOG 30 /* 1G */ |
435 | #define XFS_MIN_IO_LOG PAGE_SHIFT | 436 | #define XFS_MIN_IO_LOG PAGE_SHIFT |
436 | 437 | ||
437 | /* | 438 | /* |