Skip to content

Commit

Permalink
ext4: use local variable ei instead of EXT4_I() macro
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
chenyichong authored and Theodore Ts'o committed Jun 23, 2021
1 parent c89849c commit f9505c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ext4/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ void ext4_da_update_reserve_space(struct inode *inode,
ei->i_reserved_data_blocks -= used;
percpu_counter_sub(&sbi->s_dirtyclusters_counter, used);

spin_unlock(&EXT4_I(inode)->i_block_reservation_lock);
spin_unlock(&ei->i_block_reservation_lock);

/* Update quota subsystem for data blocks */
if (quota_claim)
Expand Down

0 comments on commit f9505c7

Please sign in to comment.