remove several no-longer-used fields (iosize) from the xfs_iocore_t.
#define XFS_SUPER_MAGIC 0x58465342
#define XFS_NAME "xfs"
-struct biosize {
- __u32 biosz_flags;
- __s32 biosz_read;
- __s32 biosz_write;
- __s32 dfl_biosz_read;
- __s32 dfl_biosz_write;
-};
-
/*
* Direct I/O attribute record used with XFS_IOC_DIOINFO
* d_miniosz is the min xfer size, xfer size multiple and file seek offset
#define XFS_IOC_UNRESVSP64 _IOW ('X', 43, struct xfs_flock64)
#define XFS_IOC_GETBMAPA _IOWR('X', 44, struct getbmap)
#define XFS_IOC_FSGETXATTRA _IOR ('X', 45, struct fsxattr)
-#define XFS_IOC_SETBIOSIZE _IOW ('X', 46, struct biosize)
-#define XFS_IOC_GETBIOSIZE _IOR ('X', 47, struct biosize)
+/* XFS_IOC_SETBIOSIZE ---- deprecated 46 */
+/* XFS_IOC_GETBIOSIZE ---- deprecated 47 */
#define XFS_IOC_GETBMAPX _IOWR('X', 56, struct getbmap)
/*
/* I/O state */
xfs_fsize_t io_new_size; /* sz when write completes */
- unsigned int io_readio_blocks; /* read buffer size */
- unsigned int io_writeio_blocks; /* write buffer size */
- uchar_t io_readio_log; /* log2 of read buffer size */
- uchar_t io_writeio_log; /* log2 of write buffer size */
- uchar_t io_max_io_log; /* max r/w io value */
int io_queued_bufs; /* count of xfsd queued bufs*/
/* Miscellaneous state. */
#define XFS_IOCORE_ISXFS 0x01
#define XFS_IOCORE_ISCXFS 0x02
#define XFS_IOCORE_RT 0x04
-#define XFS_IOCORE_UIOSZ 0x08
#define IO_IS_XFS(io) ((io)->io_flags & XFS_IOCORE_ISXFS)
#define XFS_WRITEIO_LOG_LARGE 12
/*
- * max and min values for UIO and mount-option defined I/O sizes
- * min value can't be less than a page. Lower limit for 4K machines
- * is 4K because that's what was tested.
+ * Max and min values for UIO and mount-option defined I/O sizes;
+ * min value can't be less than a page. Currently unused.
*/
#define XFS_MAX_IO_LOG 16 /* 64K */
-
-#if (_PAGESZ == 16384) || (_PAGESZ == 8192)
-#define XFS_MIN_IO_LOG 14 /* 16K */
-#elif _PAGESZ == 4096
-#define XFS_MIN_IO_LOG 12 /* 4K */
-#else
-#error "Unknown page size"
-#endif
-
+#define XFS_MIN_IO_LOG PAGE_SHIFT
/*
* Synchronous read and write sizes. This should be