Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ext4: use local variable ei instead of EXT4_I() macro

Signed-off-by: chenyichong <chenyichong@uniontech.com>
Reviewed-by: Ritesh Harjani <riteshh@linux.ibm.com>
Link: https://lore.kernel.org/r/20210526052930.11278-1-chenyichong@uniontech.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>

authored by

chenyichong and committed by
Theodore Ts'o
f9505c72 c89849cc

+1 -1
+1 -1
fs/ext4/inode.c
··· 374 374 ei->i_reserved_data_blocks -= used; 375 375 percpu_counter_sub(&sbi->s_dirtyclusters_counter, used); 376 376 377 - spin_unlock(&EXT4_I(inode)->i_block_reservation_lock); 377 + spin_unlock(&ei->i_block_reservation_lock); 378 378 379 379 /* Update quota subsystem for data blocks */ 380 380 if (quota_claim)