Whamcloud - gitweb
067543b6709ce30053b7813c3adfb9f3ef91130e
[fs/lustre-release.git] / ldiskfs / kernel_patches / patches / rhel6.3 / 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 @@ -4318,7 +4318,8 @@ static int ext4_find_delayed_extent(stru
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