Implement atomic wrapper for integer-like type

This commit is contained in:
jellllly420
2024-09-24 16:30:09 +08:00
committed by Tate, Hongliang Tian
parent a7cb71161d
commit 21fedd1b60
26 changed files with 437 additions and 241 deletions

View File

@ -93,7 +93,7 @@ impl Inode for Ext2Inode {
}
fn set_owner(&self, uid: Uid) -> Result<()> {
self.set_uid(uid.as_u32());
self.set_uid(uid.into());
Ok(())
}
@ -102,7 +102,7 @@ impl Inode for Ext2Inode {
}
fn set_group(&self, gid: Gid) -> Result<()> {
self.set_gid(gid.as_u32());
self.set_gid(gid.into());
Ok(())
}