2 +++ b/ldiskfs/kernel_patches/patches/rhel6.3/ext4-notalloc_under_idatasem.patch
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 *);
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);