Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
49854e8
)
fix build on rhel5/ia64.
author
shadow
<shadow>
Thu, 22 May 2008 05:14:12 +0000
(
05:14
+0000)
committer
shadow
<shadow>
Thu, 22 May 2008 05:14:12 +0000
(
05:14
+0000)
b=15851
i=zam
lustre/include/lustre_net.h
patch
|
blob
|
history
lustre/ldlm/ldlm_pool.c
patch
|
blob
|
history
lustre/ldlm/ldlm_request.c
patch
|
blob
|
history
lustre/liblustre/tests/sanity.c
patch
|
blob
|
history
lustre/lvfs/lvfs_linux.c
patch
|
blob
|
history
lustre/obdclass/capa.c
patch
|
blob
|
history
lustre/ost/ost_handler.c
patch
|
blob
|
history
diff --git
a/lustre/include/lustre_net.h
b/lustre/include/lustre_net.h
index
30204b7
..
04098d3
100644
(file)
--- a/
lustre/include/lustre_net.h
+++ b/
lustre/include/lustre_net.h
@@
-100,11
+100,11
@@
#define MDT_MIN_THREADS 2UL
#define MDT_MAX_THREADS 512UL
#define MDT_NUM_THREADS max(min_t(unsigned long, MDT_MAX_THREADS, \
#define MDT_MIN_THREADS 2UL
#define MDT_MAX_THREADS 512UL
#define MDT_NUM_THREADS max(min_t(unsigned long, MDT_MAX_THREADS, \
- num_physpages >> (25 - PAGE_SHIFT)), 2UL)
+ num_physpages >> (25 -
CFS_
PAGE_SHIFT)), 2UL)
#define FLD_NUM_THREADS max(min_t(unsigned long, MDT_MAX_THREADS, \
#define FLD_NUM_THREADS max(min_t(unsigned long, MDT_MAX_THREADS, \
- num_physpages >> (25 - PAGE_SHIFT)), 2UL)
+ num_physpages >> (25 -
CFS_
PAGE_SHIFT)), 2UL)
#define SEQ_NUM_THREADS max(min_t(unsigned long, MDT_MAX_THREADS, \
#define SEQ_NUM_THREADS max(min_t(unsigned long, MDT_MAX_THREADS, \
- num_physpages >> (25 - PAGE_SHIFT)), 2UL)
+ num_physpages >> (25 -
CFS_
PAGE_SHIFT)), 2UL)
/* Absolute limits */
#define MDS_THREADS_MIN 2
/* Absolute limits */
#define MDS_THREADS_MIN 2
diff --git
a/lustre/ldlm/ldlm_pool.c
b/lustre/ldlm/ldlm_pool.c
index
dcae254
..
fb9a508
100644
(file)
--- a/
lustre/ldlm/ldlm_pool.c
+++ b/
lustre/ldlm/ldlm_pool.c
@@
-99,7
+99,7
@@
#ifdef HAVE_LRU_RESIZE_SUPPORT
/* 50 ldlm locks for 1MB of RAM. */
#ifdef HAVE_LRU_RESIZE_SUPPORT
/* 50 ldlm locks for 1MB of RAM. */
-#define LDLM_POOL_HOST_L ((num_physpages >> (20 - PAGE_SHIFT)) * 50)
+#define LDLM_POOL_HOST_L ((num_physpages >> (20 -
CFS_
PAGE_SHIFT)) * 50)
/* Default step in % for grant plan. */
#define LDLM_POOL_GSP (10)
/* Default step in % for grant plan. */
#define LDLM_POOL_GSP (10)
diff --git
a/lustre/ldlm/ldlm_request.c
b/lustre/ldlm/ldlm_request.c
index
56c48ff
..
3a02565
100644
(file)
--- a/
lustre/ldlm/ldlm_request.c
+++ b/
lustre/ldlm/ldlm_request.c
@@
-490,7
+490,7
@@
static inline int ldlm_req_handles_avail(int req_size, int off)
{
int avail;
{
int avail;
- avail = min_t(int, LDLM_MAXREQSIZE, PAGE_SIZE - 512) - req_size;
+ avail = min_t(int, LDLM_MAXREQSIZE,
CFS_
PAGE_SIZE - 512) - req_size;
avail /= sizeof(struct lustre_handle);
avail += LDLM_LOCKREQ_HANDLES - off;
avail /= sizeof(struct lustre_handle);
avail += LDLM_LOCKREQ_HANDLES - off;
diff --git
a/lustre/liblustre/tests/sanity.c
b/lustre/liblustre/tests/sanity.c
index
aafc5e6
..
7056d58
100644
(file)
--- a/
lustre/liblustre/tests/sanity.c
+++ b/
lustre/liblustre/tests/sanity.c
@@
-878,14
+878,14
@@
static int pages_io(int xfer, loff_t pos)
/* create sample data */
for (i = 0, buf = buf_alloc; i < _npages; i++) {
/* create sample data */
for (i = 0, buf = buf_alloc; i < _npages; i++) {
- for (j = 0; j < PAGE_SIZE/sizeof(int); j++, buf++) {
+ for (j = 0; j <
CFS_
PAGE_SIZE/sizeof(int); j++, buf++) {
*buf = rand();
}
}
/* compute checksum */
for (i = 0, buf = buf_alloc; i < _npages; i++) {
*buf = rand();
}
}
/* compute checksum */
for (i = 0, buf = buf_alloc; i < _npages; i++) {
- for (j = 0; j < PAGE_SIZE/sizeof(int); j++, buf++) {
+ for (j = 0; j <
CFS_
PAGE_SIZE/sizeof(int); j++, buf++) {
check_sum[i] += *buf;
}
}
check_sum[i] += *buf;
}
}
@@
-903,9
+903,9
@@
static int pages_io(int xfer, loff_t pos)
}
gettimeofday(&tw1, NULL);
for (i = 0, buf = buf_alloc; i < _npages;
}
gettimeofday(&tw1, NULL);
for (i = 0, buf = buf_alloc; i < _npages;
- i += xfer, buf += xfer * PAGE_SIZE / sizeof(int)) {
- rc = write(fd, buf, PAGE_SIZE * xfer);
- if (rc != PAGE_SIZE * xfer) {
+ i += xfer, buf += xfer *
CFS_
PAGE_SIZE / sizeof(int)) {
+ rc = write(fd, buf,
CFS_
PAGE_SIZE * xfer);
+ if (rc !=
CFS_
PAGE_SIZE * xfer) {
printf("write error (i %d, rc %d): %s\n", i, rc,
strerror(errno));
return(1);
printf("write error (i %d, rc %d): %s\n", i, rc,
strerror(errno));
return(1);
@@
-923,9
+923,9
@@
static int pages_io(int xfer, loff_t pos)
}
gettimeofday(&tr1, NULL);
for (i = 0, buf = buf_alloc; i < _npages;
}
gettimeofday(&tr1, NULL);
for (i = 0, buf = buf_alloc; i < _npages;
- i += xfer, buf += xfer * PAGE_SIZE / sizeof(int)) {
- rc = read(fd, buf, PAGE_SIZE * xfer);
- if (rc != PAGE_SIZE * xfer) {
+ i += xfer, buf += xfer *
CFS_
PAGE_SIZE / sizeof(int)) {
+ rc = read(fd, buf,
CFS_
PAGE_SIZE * xfer);
+ if (rc !=
CFS_
PAGE_SIZE * xfer) {
printf("read error (i %d, rc %d): %s\n", i, rc,
strerror(errno));
return(1);
printf("read error (i %d, rc %d): %s\n", i, rc,
strerror(errno));
return(1);
@@
-936,7
+936,7
@@
static int pages_io(int xfer, loff_t pos)
/* compute checksum */
for (i = 0, buf = buf_alloc; i < _npages; i++) {
int sum = 0;
/* compute checksum */
for (i = 0, buf = buf_alloc; i < _npages; i++) {
int sum = 0;
- for (j = 0; j < PAGE_SIZE/sizeof(int); j++, buf++) {
+ for (j = 0; j <
CFS_
PAGE_SIZE/sizeof(int); j++, buf++) {
sum += *buf;
}
if (sum != check_sum[i]) {
sum += *buf;
}
if (sum != check_sum[i]) {
@@
-951,8
+951,8
@@
static int pages_io(int xfer, loff_t pos)
tw = (tw2.tv_sec - tw1.tv_sec) * 1000000 + (tw2.tv_usec - tw1.tv_usec);
tr = (tr2.tv_sec - tr1.tv_sec) * 1000000 + (tr2.tv_usec - tr1.tv_usec);
printf(" (R:%.3fM/s, W:%.3fM/s)\n",
tw = (tw2.tv_sec - tw1.tv_sec) * 1000000 + (tw2.tv_usec - tw1.tv_usec);
tr = (tr2.tv_sec - tr1.tv_sec) * 1000000 + (tr2.tv_usec - tr1.tv_usec);
printf(" (R:%.3fM/s, W:%.3fM/s)\n",
- (_npages * PAGE_SIZE) / (tw / 1000000.0) / (1024 * 1024),
- (_npages * PAGE_SIZE) / (tr / 1000000.0) / (1024 * 1024));
+ (_npages *
CFS_
PAGE_SIZE) / (tw / 1000000.0) / (1024 * 1024),
+ (_npages *
CFS_
PAGE_SIZE) / (tr / 1000000.0) / (1024 * 1024));
if (data_error)
return 1;
if (data_error)
return 1;
@@
-1467,7
+1467,7
@@
int main(int argc, char * const argv[])
__liblustre_setup_();
__liblustre_setup_();
- buf_size = _npages * PAGE_SIZE;
+ buf_size = _npages *
CFS_
PAGE_SIZE;
if (opt_verbose)
printf("allocating %d bytes buffer\n", buf_size);
buf_alloc = calloc(1, buf_size);
if (opt_verbose)
printf("allocating %d bytes buffer\n", buf_size);
buf_alloc = calloc(1, buf_size);
diff --git
a/lustre/lvfs/lvfs_linux.c
b/lustre/lvfs/lvfs_linux.c
index
fef6996
..
ccc6a0c
100644
(file)
--- a/
lustre/lvfs/lvfs_linux.c
+++ b/
lustre/lvfs/lvfs_linux.c
@@
-772,7
+772,7
@@
static int __init lvfs_linux_init(void)
{
ENTRY;
#if defined (CONFIG_DEBUG_MEMORY) && defined(__KERNEL__)
{
ENTRY;
#if defined (CONFIG_DEBUG_MEMORY) && defined(__KERNEL__)
- lvfs_memdbg_init(PAGE_SIZE);
+ lvfs_memdbg_init(
CFS_
PAGE_SIZE);
#endif
RETURN(0);
}
#endif
RETURN(0);
}
diff --git
a/lustre/obdclass/capa.c
b/lustre/obdclass/capa.c
index
747ac69
..
2bbc687
100644
(file)
--- a/
lustre/obdclass/capa.c
+++ b/
lustre/obdclass/capa.c
@@
-74,11
+74,11
@@
struct hlist_head *init_capa_hash(void)
struct hlist_head *hash;
int nr_hash, i;
struct hlist_head *hash;
int nr_hash, i;
- OBD_ALLOC(hash, PAGE_SIZE);
+ OBD_ALLOC(hash,
CFS_
PAGE_SIZE);
if (!hash)
return NULL;
if (!hash)
return NULL;
- nr_hash = PAGE_SIZE / sizeof(struct hlist_head);
+ nr_hash =
CFS_
PAGE_SIZE / sizeof(struct hlist_head);
LASSERT(nr_hash > NR_CAPAHASH);
for (i = 0; i < NR_CAPAHASH; i++)
LASSERT(nr_hash > NR_CAPAHASH);
for (i = 0; i < NR_CAPAHASH; i++)
@@
-114,7
+114,7
@@
void cleanup_capa_hash(struct hlist_head *hash)
}
spin_unlock(&capa_lock);
}
spin_unlock(&capa_lock);
- OBD_FREE(hash, PAGE_SIZE);
+ OBD_FREE(hash,
CFS_
PAGE_SIZE);
}
static inline int const capa_hashfn(struct lu_fid *fid)
}
static inline int const capa_hashfn(struct lu_fid *fid)
@@
-236,7
+236,7
@@
int capa_hmac(__u8 *hmac, struct lustre_capa *capa, __u8 *key)
int keylen;
struct scatterlist sl = {
.page = virt_to_page(capa),
int keylen;
struct scatterlist sl = {
.page = virt_to_page(capa),
- .offset = (unsigned long)(capa) % PAGE_SIZE,
+ .offset = (unsigned long)(capa) %
CFS_
PAGE_SIZE,
.length = offsetof(struct lustre_capa, lc_hmac),
};
.length = offsetof(struct lustre_capa, lc_hmac),
};
diff --git
a/lustre/ost/ost_handler.c
b/lustre/ost/ost_handler.c
index
2a1fa8c
..
b7a14f1
100644
(file)
--- a/
lustre/ost/ost_handler.c
+++ b/
lustre/ost/ost_handler.c
@@
-444,7
+444,7
@@
static int get_per_page_niobufs(struct obd_ioobj *ioo, int nioo,
do {
obd_off poff = off & ~CFS_PAGE_MASK;
int pnob = (poff + nob > CFS_PAGE_SIZE) ?
do {
obd_off poff = off & ~CFS_PAGE_MASK;
int pnob = (poff + nob > CFS_PAGE_SIZE) ?
- PAGE_SIZE - poff : nob;
+
CFS_
PAGE_SIZE - poff : nob;
LASSERT(page < npages);
pp_rnb[page].len = pnob;
LASSERT(page < npages);
pp_rnb[page].len = pnob;