Whamcloud - gitweb
LU-4008 mdt: update mdt_getattr comments about EA sizing
[fs/lustre-release.git] / lustre / kernel_patches / patches / bio_add_page.patch
1 --- linux-2.6.32.13-0.5.orig/fs/bio.c   2010-08-13 04:22:33.000000000 -0400
2 +++ linux-2.6.32.13-0.5/fs/bio.c        2010-09-08 15:35:44.000000000 -0400
3 @@ -575,8 +575,7 @@ static int __bio_add_page(struct request
4          * make this too complex.
5          */
6  
7 -       while (bio->bi_phys_segments >= queue_max_phys_segments(q)
8 -              || bio->bi_phys_segments >= queue_max_hw_segments(q)) {
9 +       while (bio->bi_phys_segments >= queue_max_phys_segments(q)) {
10  
11                 if (retried_segments)
12                         return 0;