Whamcloud - gitweb
b=19872
[fs/lustre-release.git] / ldiskfs / kernel_patches / patches / ext4-remove-cond_resched-calls-sles11.patch
1 Index: linux-2.6.27.21-0.1/fs/ext4/ialloc.c
2 ===================================================================
3 --- linux-2.6.27.21-0.1.orig/fs/ext4/ialloc.c
4 +++ linux-2.6.27.21-0.1/fs/ext4/ialloc.c
5 @@ -1120,7 +1120,6 @@ unsigned long ext4_count_free_inodes(str
6                 if (!gdp)
7                         continue;
8                 desc_count += ext4_free_inodes_count(sb, gdp);
9 -               cond_resched();
10         }
11         return desc_count;
12  #endif
13 Index: linux-2.6.27.21-0.1/fs/ext4/super.c
14 ===================================================================
15 --- linux-2.6.27.21-0.1.orig/fs/ext4/super.c
16 +++ linux-2.6.27.21-0.1/fs/ext4/super.c
17 @@ -3263,11 +3263,9 @@ static int ext4_statfs(struct dentry *de
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 += ext4_bg_has_super(sb, i) +
24                                 ext4_bg_num_gdb(sb, i);
25 -                       cond_resched();
26 -               }
27  
28                 /*
29                  * Every block group has an inode bitmap, a block