quota: optimize i_dquot access
authorKonstantin Khlebnikov <khlebnikov@yandex-team.ru>
Thu, 12 Feb 2015 09:36:37 +0000 (12:36 +0300)
committerJan Kara <jack@suse.cz>
Wed, 4 Mar 2015 15:42:44 +0000 (16:42 +0100)
commit5bcd3b6f639c277ed7fa71f2f8ed6fb072615011
tree1caa6a5cadac9c78763c732327ab529b2ebdb0d1
parent023a6007a08d342b64895a7342e426d12d9627dd
quota: optimize i_dquot access

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: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/quota/dquot.c