Whamcloud - gitweb
bd6efcd72950fd3275d9914e9d1414c822b4c25d
[fs/lustre-release.git] / ldiskfs / kernel_patches / patches / rhel6.3 / ext4-notalloc_under_idatasem.patch
1 --- /dev/null
2 +++ b/ldiskfs/kernel_patches/patches/rhel6.3/ext4-notalloc_under_idatasem.patch
3 @@ -0,0 +1,14 @@
4 +Index: linux-stage/fs/ext4/extents.c
5 +===================================================================
6 +--- linux-stage.orig/fs/ext4/extents.c 2015-07-13 22:22:56.000000000 +0300
7 ++++ linux-stage/fs/ext4/extents.c      2015-07-13 22:24:05.000000000 +0300
8 +@@ -4318,7 +4318,8 @@ static int ext4_find_delayed_extent(stru
9 +       struct buffer_head *head = NULL;
10 +       unsigned int nr_pages = PAGE_SIZE / sizeof(struct page *);
11
12 +-      pages = kmalloc(PAGE_SIZE, GFP_KERNEL);
13 ++      /* we are running under i_data_sem so don't re-enter fs code */
14 ++      pages = kmalloc(PAGE_SIZE, GFP_NOFS);
15 +       if (pages == NULL)
16 +               return -ENOMEM;
17