Whamcloud - gitweb
Branch HEAD
[fs/lustre-release.git] / lustre / kernel_patches / patches / ext3-remove-cond_resched-calls-2.6.12.patch
1 Index: linux-stage/fs/ext3/ialloc.c
2 ===================================================================
3 --- linux-stage.orig/fs/ext3/ialloc.c   2005-06-26 10:59:43.048185981 +0200
4 +++ linux-stage/fs/ext3/ialloc.c        2005-06-26 11:01:21.317716027 +0200
5 @@ -775,7 +775,6 @@
6                 if (!gdp)
7                         continue;
8                 desc_count += le16_to_cpu(gdp->bg_free_inodes_count);
9 -               cond_resched();
10         }
11         return desc_count;
12  #endif
13 Index: linux-stage/fs/ext3/super.c
14 ===================================================================
15 --- linux-stage.orig/fs/ext3/super.c    2005-06-26 10:59:43.205412542 +0200
16 +++ linux-stage/fs/ext3/super.c 2005-06-26 11:02:29.599941754 +0200
17 @@ -2236,11 +2232,9 @@
18                  * block group descriptors.  If the sparse superblocks
19                  * feature is turned on, then not all groups have this.
20                  */
21 -               for (i = 0; i < ngroups; i++) {
22 +               for (i = 0; i < ngroups; i++)
23                         overhead += ext3_bg_has_super(sb, i) +
24                                 ext3_bg_num_gdb(sb, i);
25 -                       cond_resched();
26 -               }
27  
28                 /*
29                  * Every block group has an inode bitmap, a block