Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add support for sles 8:
[fs/lustre-release.git]
/
lustre
/
ptlbd
/
blk.c
diff --git
a/lustre/ptlbd/blk.c
b/lustre/ptlbd/blk.c
index
a367903
..
77c0dd8
100644
(file)
--- a/
lustre/ptlbd/blk.c
+++ b/
lustre/ptlbd/blk.c
@@
-26,7
+26,6
@@
#define DEBUG_SUBSYSTEM S_PTLBD
#define DEBUG_SUBSYSTEM S_PTLBD
-#include <linux/lustre_lite.h>
#include <linux/lustre_ha.h>
#include <linux/obd_support.h>
#include <linux/lustre_idl.h>
#include <linux/lustre_ha.h>
#include <linux/obd_support.h>
#include <linux/lustre_idl.h>
@@
-256,10
+255,10
@@
static void ptlbd_request(request_queue_t *q)
}
static struct block_device_operations ptlbd_ops = {
}
static struct block_device_operations ptlbd_ops = {
- .owner = THIS_MODULE,
- .open = ptlbd_open,
+ .owner = THIS_MODULE,
+ .open = ptlbd_open,
+ .ioctl = ptlbd_ioctl,
.release = ptlbd_release,
.release = ptlbd_release,
- .ioctl = ptlbd_ioctl,
};
int ptlbd_blk_init(void)
};
int ptlbd_blk_init(void)
@@
-285,7
+284,7
@@
int ptlbd_blk_init(void)
/* avoid integer overflow */
ptlbd_size[i] = (16*1024*((1024*1024) >> BLOCK_SIZE_BITS));
ptlbd_hardsect_size[i] = 4096;
/* avoid integer overflow */
ptlbd_size[i] = (16*1024*((1024*1024) >> BLOCK_SIZE_BITS));
ptlbd_hardsect_size[i] = 4096;
- ptlbd_max_sectors[i] = PTL
_MD_MAX_IOV
* (4096/512);
+ ptlbd_max_sectors[i] = PTL
RPC_MAX_BRW_PAGES
* (4096/512);
}
return 0;
}
return 0;