Skip to content

Commit

Permalink
erofs: expand another clear_and_wake_up_bit
Browse files Browse the repository at this point in the history
Change-Id: 3ff1e2b095ac54ab49dc33e98837d3b5427ed006
Signed-off-by: TogoFire <togofire@mailfence.com>
  • Loading branch information
asuka-mio authored and TogoFire committed Feb 23, 2023
1 parent 1c0cbd1 commit 1a57a29
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fs/erofs/zmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@ static int z_erofs_fill_inode_lazy(struct inode *inode)
unlock_page(page);
put_page(page);
out_unlock:
clear_and_wake_up_bit(EROFS_I_BL_Z_BIT, &vi->flags);
clear_bit_unlock(EROFS_I_BL_Z_BIT, &vi->flags);
/* See wake_up_bit() for which memory barrier you need to use. */
smp_mb__after_atomic();
wake_up_bit(&vi->flags, EROFS_I_BL_Z_BIT);
return err;
}

Expand Down

0 comments on commit 1a57a29

Please sign in to comment.