Commit e602b8f6 authored by Christoph Hellwig's avatar Christoph Hellwig

[XFS] remove dead pbr_flags field from struct xfs_buftarg

SGI Modid: 2.5.x-xfs:slinx:133966a
parent f03a0682
...@@ -46,10 +46,6 @@ ...@@ -46,10 +46,6 @@
extern int xfs_init(void); extern int xfs_init(void);
extern void xfs_cleanup(void); extern void xfs_cleanup(void);
#ifndef EVMS_MAJOR
# define EVMS_MAJOR 117
#endif
/* For kernels which have the s_maxbytes field - set it */ /* For kernels which have the s_maxbytes field - set it */
#ifdef MAX_NON_LFS #ifdef MAX_NON_LFS
# define set_max_bytes(sb) ((sb)->s_maxbytes = XFS_MAX_FILE_OFFSET) # define set_max_bytes(sb) ((sb)->s_maxbytes = XFS_MAX_FILE_OFFSET)
...@@ -542,13 +538,6 @@ xfs_alloc_buftarg( ...@@ -542,13 +538,6 @@ xfs_alloc_buftarg(
btp->pbr_mapping = bdev->bd_inode->i_mapping; btp->pbr_mapping = bdev->bd_inode->i_mapping;
xfs_size_buftarg(btp, PAGE_CACHE_SIZE, bdev_hardsect_size(bdev)); xfs_size_buftarg(btp, PAGE_CACHE_SIZE, bdev_hardsect_size(bdev));
switch (MAJOR(btp->pbr_dev)) {
case MD_MAJOR:
case EVMS_MAJOR:
btp->pbr_flags = PBR_ALIGNED_ONLY;
break;
}
return btp; return btp;
} }
......
...@@ -132,7 +132,6 @@ typedef enum page_buf_flags_e { /* pb_flags values */ ...@@ -132,7 +132,6 @@ typedef enum page_buf_flags_e { /* pb_flags values */
#define PBR_ALIGNED_ONLY 2 /* only use aligned I/O */ #define PBR_ALIGNED_ONLY 2 /* only use aligned I/O */
typedef struct pb_target { typedef struct pb_target {
int pbr_flags;
dev_t pbr_dev; dev_t pbr_dev;
struct block_device *pbr_bdev; struct block_device *pbr_bdev;
struct address_space *pbr_mapping; struct address_space *pbr_mapping;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment