Skip to content

Commit

Permalink
exfat: fix 2
Browse files Browse the repository at this point in the history
Signed-off-by: Namjae Jeon <[email protected]>
  • Loading branch information
namjaejeon committed Jan 27, 2025
1 parent 66f5412 commit bfc9829
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fatent.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ static int __exfat_free_cluster(struct inode *inode, struct exfat_chain *p_chain
bool sync = false;
unsigned int n_clu = clu;
int err = exfat_get_next_cluster(sb, &n_clu);
int err2;

if (err || n_clu == EXFAT_EOF_CLUSTER)
sync = true;
Expand All @@ -219,8 +218,7 @@ static int __exfat_free_cluster(struct inode *inode, struct exfat_chain *p_chain
cur_cmap_i = next_cmap_i;
}

err2 = exfat_clear_bitmap(inode, clu, (sync && IS_DIRSYNC(inode)));
if (err2)
if (exfat_clear_bitmap(inode, clu, (sync && IS_DIRSYNC(inode))))
break;
clu = n_clu;
num_clusters++;
Expand Down

0 comments on commit bfc9829

Please sign in to comment.