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 *);
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);