Skip to content

Commit

Permalink
erofs: expand clear_and_wake_up_bit
Browse files Browse the repository at this point in the history
Signed-off-by: wulan17 <wulan17@nusantararom.org>
  • Loading branch information
asuka-mio authored and Hadenix committed Feb 2, 2024
1 parent db56f1e commit 1607b24
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fs/erofs/xattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,10 @@ static int init_inode_xattrs(struct inode *inode)
set_bit(EROFS_I_EA_INITED_BIT, &vi->flags);

out_unlock:
clear_and_wake_up_bit(EROFS_I_BL_XATTR_BIT, &vi->flags);
clear_bit_unlock(EROFS_I_BL_XATTR_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_XATTR_BIT);
return ret;
}

Expand Down

0 comments on commit 1607b24

Please sign in to comment.