mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-24 00:43:24 +00:00
实现设置pcb名字和vsnprintf (#72)
* 实现pcb设置名字 * 实现设置pcb名字,实现vsnprintf * 修改set_pcb_name和va_end * bugfix: 修正一些小问题 Co-authored-by: longjin <longjin@RinGoTek.cn>
This commit is contained in:
@ -796,12 +796,12 @@ int do_unlink_at(int dfd, const char *pathname, bool from_userland)
|
||||
|
||||
struct vfs_index_node_t *p_inode = dentry->parent->dir_inode;
|
||||
// 对父inode加锁
|
||||
spin_lock(&p_inode);
|
||||
spin_lock(&p_inode->lockref.lock);
|
||||
retval = vfs_unlink(NULL, dentry->parent->dir_inode, dentry, NULL);
|
||||
|
||||
spin_lock(&dentry->lockref.lock);
|
||||
retval = vfs_dentry_put(dentry);
|
||||
spin_unlock(&p_inode);
|
||||
spin_unlock(&p_inode->lockref.lock);
|
||||
|
||||
if (IS_ERR(retval))
|
||||
kwarn("In do_unlink_at: dentry put failed; retval=%d", retval);
|
||||
|
Reference in New Issue
Block a user