diff options
author | Christophe Vu-Brugier <christophe.vu-brugier@seagate.com> | 2021-11-02 22:23:58 +0100 |
---|---|---|
committer | Namjae Jeon <linkinjeon@kernel.org> | 2022-01-10 11:00:02 +0900 |
commit | 7dee6f57d7f22a89dd214518c778aec448270d4c (patch) | |
tree | 5c12968215224c6f5d257d0af914ee3024675943 /fs/exfat/namei.c | |
parent | 8cf058834b11c08b344fc4549b03d723f16c9241 (diff) | |
download | lwn-7dee6f57d7f22a89dd214518c778aec448270d4c.tar.gz lwn-7dee6f57d7f22a89dd214518c778aec448270d4c.zip |
exfat: reuse exfat_inode_info variable instead of calling EXFAT_I()
Also add a local "struct exfat_inode_info *ei" variable to
exfat_truncate() to simplify the code.
Signed-off-by: Christophe Vu-Brugier <christophe.vu-brugier@seagate.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'fs/exfat/namei.c')
-rw-r--r-- | fs/exfat/namei.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/exfat/namei.c b/fs/exfat/namei.c index 24b41103d1cc..9d8ada781250 100644 --- a/fs/exfat/namei.c +++ b/fs/exfat/namei.c @@ -395,9 +395,9 @@ static int exfat_find_empty_entry(struct inode *inode, /* directory inode should be updated in here */ i_size_write(inode, size); - EXFAT_I(inode)->i_size_ondisk += sbi->cluster_size; - EXFAT_I(inode)->i_size_aligned += sbi->cluster_size; - EXFAT_I(inode)->flags = p_dir->flags; + ei->i_size_ondisk += sbi->cluster_size; + ei->i_size_aligned += sbi->cluster_size; + ei->flags = p_dir->flags; inode->i_blocks += 1 << sbi->sect_per_clus_bits; } |