实现设置pcb名字和vsnprintf (#72)

* 实现pcb设置名字

* 实现设置pcb名字,实现vsnprintf

* 修改set_pcb_name和va_end

* bugfix: 修正一些小问题

Co-authored-by: longjin <longjin@RinGoTek.cn>
This commit is contained in:
houmkh
2022-10-31 20:46:20 +08:00
committed by GitHub
parent 8a080f3cce
commit 8e3f5674f8
10 changed files with 174 additions and 47 deletions

View File

@ -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);