]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit - fs/ext4/super.c
ext4: cleanup GFP flags inside resize path
authorDmitry Monakhov <dmonakhov@openvz.org>
Tue, 25 Nov 2014 18:08:04 +0000 (13:08 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 25 Nov 2014 18:08:04 +0000 (13:08 -0500)
commit4fdb5543183d027a19805b72025b859af73d0863
tree708afd14a45f9f38f37dfb8c4bfb2b1ef045a37b
parent2be12de98a1cc21c4de4e2d6fb2bf5aa0a279947
ext4: cleanup GFP flags inside resize path

We must use GFP_NOFS instead GFP_KERNEL inside ext4_mb_add_groupinfo
and ext4_calculate_overhead() because they are called from inside a
journal transaction. Call trace:

ioctl
 ->ext4_group_add
   ->journal_start
   ->ext4_setup_new_descs
     ->ext4_mb_add_groupinfo -> GFP_KERNEL
   ->ext4_flex_group_add
     ->ext4_update_super
       ->ext4_calculate_overhead  -> GFP_KERNEL
   ->journal_stop

Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/mballoc.c
fs/ext4/super.c