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
b=23821 Limit bio_alloc() to BIO_MAX_PAGES iovecs.
[fs/lustre-release.git]
/
lustre
/
obdfilter
/
filter_io_26.c
diff --git
a/lustre/obdfilter/filter_io_26.c
b/lustre/obdfilter/filter_io_26.c
index
bc037a1
..
806734b
100644
(file)
--- a/
lustre/obdfilter/filter_io_26.c
+++ b/
lustre/obdfilter/filter_io_26.c
@@
-398,7
+398,7
@@
int filter_do_bio(struct obd_export *exp, struct inode *inode,
}
/* allocate new bio, limited by max BIO size, b=9945 */
- bio = bio_alloc(GFP_NOIO, m
ax
(BIO_MAX_PAGES,
+ bio = bio_alloc(GFP_NOIO, m
in
(BIO_MAX_PAGES,
(npages - page_idx) *
blocks_per_page));
if (bio == NULL) {