Lines Matching refs:lock
301 spin_lock(&parent_dir->lockref.lock); in vfs_mkdir()
315 spin_lock(&parent_dir->dir_inode->lockref.lock); in vfs_mkdir()
317 spin_unlock(&parent_dir->dir_inode->lockref.lock); in vfs_mkdir()
322 spin_unlock(&parent_dir->lockref.lock); in vfs_mkdir()
333 spin_lock(&prev_dentry->lockref.lock); in vfs_mkdir()
336 spin_unlock(&prev_dentry->lockref.lock); in vfs_mkdir()
345 spin_unlock(&parent_dir->lockref.lock); in vfs_mkdir()
448 spin_lock(&parent_dentry->lockref.lock); in do_open()
449 spin_lock(&parent_dentry->dir_inode->lockref.lock); in do_open()
452 spin_unlock(&parent_dentry->dir_inode->lockref.lock); // 解锁inode in do_open()
460 spin_unlock(&parent_dentry->lockref.lock); in do_open()
470 spin_lock(&next_dentry->lockref.lock); in do_open()
474 spin_unlock(&next_dentry->lockref.lock); in do_open()
477 spin_unlock(&parent_dentry->lockref.lock); in do_open()
486 spin_lock(&dentry->lockref.lock); in do_open()
490 spin_unlock(&dentry->lockref.lock); in do_open()
510 spin_unlock(&dentry->lockref.lock); in do_open()
528 spin_unlock(&dentry->lockref.lock); in do_open()
531 spin_unlock(&dentry->lockref.lock); in do_open()
583 spin_init(&dentry->lockref.lock); in vfs_alloc_dentry()
680 spin_lock(&dentry->lockref.lock); in vfs_rmdir()
707 spin_unlock(&dentry->dir_inode->lockref.lock); in vfs_rmdir()
709 spin_unlock(&dentry->lockref.lock); in vfs_rmdir()
747 spin_lock(&target->lockref.lock); in vfs_unlink()
761 spin_unlock(&target->lockref.lock); in vfs_unlink()
831 spin_lock(&p_inode->lockref.lock); in do_unlink_at()
832 spin_lock(&dentry->lockref.lock); in do_unlink_at()
837 spin_unlock(&dentry->lockref.lock); in do_unlink_at()
838 spin_unlock(&p_inode->lockref.lock); in do_unlink_at()
842 spin_unlock(&dentry->lockref.lock); in do_unlink_at()
843 spin_unlock(&p_inode->lockref.lock); in do_unlink_at()
883 spin_init(&inode->lockref.lock); in vfs_alloc_inode()