mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-25 10:23:23 +00:00
Rename struct Path to struct DentryMnt
Signed-off-by: Zhenchen Wang <m202372036@hust.edu.cn>
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
6d486c6c01
commit
60fa4d104a
@ -18,7 +18,7 @@ pub fn sys_fsync(fd: FileDesc) -> Result<SyscallReturn> {
|
||||
let inode_handle = file
|
||||
.downcast_ref::<InodeHandle>()
|
||||
.ok_or(Error::with_message(Errno::EINVAL, "not inode"))?;
|
||||
inode_handle.path().dentry().clone()
|
||||
inode_handle.dentrymnt().dentry().clone()
|
||||
};
|
||||
dentry.sync()?;
|
||||
Ok(SyscallReturn::Return(0))
|
||||
|
Reference in New Issue
Block a user