• Jia-Ju Bai's avatar
    fs: quota: Replace GFP_ATOMIC with GFP_KERNEL in dquot_init · 1aa3b3e0
    Jia-Ju Bai authored
    dquot_init() is never called in atomic context.
    This function is only set as a parameter of fs_initcall().
    
    Despite never getting called from atomic context,
    dquot_init() calls __get_free_pages() with GFP_ATOMIC,
    which waits busily for allocation.
    GFP_ATOMIC is not necessary and can be replaced with GFP_KERNEL,
    to avoid busy waiting and improve the possibility of sucessful allocation.
    
    This is found by a static analysis tool named DCNS written by myself.
    And I also manually check it.
    Signed-off-by: default avatarJia-Ju Bai <baijiaju1990@gmail.com>
    Signed-off-by: default avatarJan Kara <jack@suse.cz>
    1aa3b3e0
Name
Last commit
Last update
..
Kconfig Loading commit data...
Makefile Loading commit data...
compat.c Loading commit data...
dquot.c Loading commit data...
kqid.c Loading commit data...
netlink.c Loading commit data...
quota.c Loading commit data...
quota_tree.c Loading commit data...
quota_tree.h Loading commit data...
quota_v1.c Loading commit data...
quota_v2.c Loading commit data...
quotaio_v1.h Loading commit data...
quotaio_v2.h Loading commit data...