Lines Matching refs:dir

919 				       struct btrfs_inode *dir,  in unlink_inode_for_log_replay()  argument
925 ret = btrfs_unlink_inode(trans, dir, inode, name); in unlink_inode_for_log_replay()
947 struct btrfs_inode *dir, in drop_one_dir_item() argument
950 struct btrfs_root *root = dir->root; in drop_one_dir_item()
976 ret = unlink_inode_for_log_replay(trans, dir, BTRFS_I(inode), &name); in drop_one_dir_item()
1073 struct btrfs_inode *dir, in __add_inode_ref() argument
1128 ret = unlink_inode_for_log_replay(trans, dir, inode, in __add_inode_ref()
1209 di = btrfs_lookup_dir_index_item(trans, root, path, btrfs_ino(dir), in __add_inode_ref()
1214 ret = drop_one_dir_item(trans, path, dir, di); in __add_inode_ref()
1221 di = btrfs_lookup_dir_item(trans, root, path, btrfs_ino(dir), name, 0); in __add_inode_ref()
1225 ret = drop_one_dir_item(trans, path, dir, di); in __add_inode_ref()
1329 struct inode *dir; in unlink_old_inode_refs() local
1332 dir = read_one_inode(root, parent_id); in unlink_old_inode_refs()
1333 if (!dir) { in unlink_old_inode_refs()
1338 ret = unlink_inode_for_log_replay(trans, BTRFS_I(dir), in unlink_old_inode_refs()
1341 iput(dir); in unlink_old_inode_refs()
1373 struct inode *dir = NULL; in add_inode_ref() local
1407 dir = read_one_inode(root, parent_objectid); in add_inode_ref()
1408 if (!dir) { in add_inode_ref()
1427 if (!dir) in add_inode_ref()
1428 dir = read_one_inode(root, parent_objectid); in add_inode_ref()
1429 if (!dir) { in add_inode_ref()
1439 ret = inode_in_dir(root, path, btrfs_ino(BTRFS_I(dir)), in add_inode_ref()
1452 BTRFS_I(dir), BTRFS_I(inode), in add_inode_ref()
1462 ret = btrfs_add_link(trans, BTRFS_I(dir), BTRFS_I(inode), in add_inode_ref()
1477 iput(dir); in add_inode_ref()
1478 dir = NULL; in add_inode_ref()
1500 iput(dir); in add_inode_ref()
1775 struct inode *dir; in insert_one_name() local
1782 dir = read_one_inode(root, dirid); in insert_one_name()
1783 if (!dir) { in insert_one_name()
1788 ret = btrfs_add_link(trans, BTRFS_I(dir), BTRFS_I(inode), name, in insert_one_name()
1794 iput(dir); in insert_one_name()
1799 struct btrfs_inode *dir, in delete_conflicting_dir_entry() argument
1823 return drop_one_dir_item(trans, path, dir, dst_di); in delete_conflicting_dir_entry()
1856 struct inode *dir; in replay_one_name() local
1863 dir = read_one_inode(root, key->objectid); in replay_one_name()
1864 if (!dir) in replay_one_name()
1886 ret = delete_conflicting_dir_entry(trans, BTRFS_I(dir), path, in replay_one_name()
1903 ret = delete_conflicting_dir_entry(trans, BTRFS_I(dir), path, in replay_one_name()
1960 btrfs_i_size_write(BTRFS_I(dir), dir->i_size + name.len * 2); in replay_one_name()
1961 ret = btrfs_update_inode(trans, root, BTRFS_I(dir)); in replay_one_name()
1964 iput(dir); in replay_one_name()
2121 struct inode *dir, in check_item_in_log() argument
2124 struct btrfs_root *root = BTRFS_I(dir)->root; in check_item_in_log()
2178 ret = unlink_inode_for_log_replay(trans, BTRFS_I(dir), BTRFS_I(inode), in check_item_in_log()
2313 struct inode *dir; in replay_dir_deletes() local
2321 dir = read_one_inode(root, dirid); in replay_dir_deletes()
2326 if (!dir) { in replay_dir_deletes()
2373 log_path, dir, in replay_dir_deletes()
2390 iput(dir); in replay_dir_deletes()
3442 struct btrfs_inode *dir, u64 index) in btrfs_del_dir_entries_in_log() argument
3447 ret = inode_logged(trans, dir, NULL); in btrfs_del_dir_entries_in_log()
3459 mutex_lock(&dir->log_mutex); in btrfs_del_dir_entries_in_log()
3467 ret = del_logged_dentry(trans, root->log_root, path, btrfs_ino(dir), in btrfs_del_dir_entries_in_log()
3471 mutex_unlock(&dir->log_mutex); in btrfs_del_dir_entries_in_log()
7327 struct btrfs_inode *dir, struct btrfs_inode *inode, in btrfs_record_unlink_dir() argument
7353 if (inode_logged(trans, dir, NULL) == 1) in btrfs_record_unlink_dir()
7372 mutex_lock(&dir->log_mutex); in btrfs_record_unlink_dir()
7373 dir->last_unlink_trans = trans->transid; in btrfs_record_unlink_dir()
7374 mutex_unlock(&dir->log_mutex); in btrfs_record_unlink_dir()
7390 struct btrfs_inode *dir) in btrfs_record_snapshot_destroy() argument
7392 mutex_lock(&dir->log_mutex); in btrfs_record_snapshot_destroy()
7393 dir->last_unlink_trans = trans->transid; in btrfs_record_snapshot_destroy()
7394 mutex_unlock(&dir->log_mutex); in btrfs_record_snapshot_destroy()