Whamcloud - gitweb
LU-13004 modules: replace lnet_kiov_t with struct bio_vec
[fs/lustre-release.git] / ldiskfs / kernel_patches / patches / sles11sp1 / ext4-notalloc_under_idatasem.patch
1 Index: linux-stage/fs/ext4/extents.c
2 ===================================================================
3 --- linux-stage.orig/fs/ext4/extents.c  2015-07-13 22:22:56.000000000 +0300
4 +++ linux-stage/fs/ext4/extents.c       2015-07-13 22:24:05.000000000 +0300
5 @@ -3954,7 +3954,8 @@ static int ext4_ext_fiemap_cb(struct ino
6                 struct buffer_head *head = NULL;
7                 unsigned int nr_pages = PAGE_SIZE / sizeof(struct page *);
8  
9 -               pages = kmalloc(PAGE_SIZE, GFP_KERNEL);
10 +               /* we are running under i_data_sem so don't reenter the FS code */
11 +               pages = kmalloc(PAGE_SIZE, GFP_NOFS);
12                 if (pages == NULL)
13                         return -ENOMEM;
14