• K
    quota: optimize i_dquot access · 5bcd3b6f
    Konstantin Khlebnikov 提交于
    Remove redundant calls of i_dquot(), keep pointer in local variable.
    
    add/remove: 0/0 grow/shrink: 3/7 up/down: 40/-278 (-238)
    function                                     old     new   delta
    __dquot_free_space                           734     750     +16
    __dquot_alloc_space                          484     500     +16
    dquot_free_inode                             324     332      +8
    dquot_drop                                    82      69     -13
    vfs_load_quota_inode                        1357    1341     -16
    dquot_reclaim_space_nodirty                  348     316     -32
    dquot_disable                               1980    1944     -36
    dquot_claim_space_nodirty                    354     314     -40
    __dquot_drop                                 125      83     -42
    __dquot_initialize                           522     423     -99
    Signed-off-by: NKonstantin Khlebnikov <khlebnikov@yandex-team.ru>
    Signed-off-by: NJan Kara <jack@suse.cz>
    5bcd3b6f
dquot.c 75.9 KB