search for: btrfs_insert_inode_ref

Displaying 7 results from an estimated 7 matches for "btrfs_insert_inode_ref".

2011 Apr 27
2
btrfs-convert crashes
...ig =<value optimized out> leaf = 0x1955250 nritems = 1 data_end =<value optimized out> old_data =<value optimized out> i =<value optimized out> __PRETTY_FUNCTION__ = "btrfs_extend_item" #3 0x000000000040e32d in btrfs_insert_inode_ref (trans=0xc9ef10, root=0x633920, name=0xcfa314 "gtfntf.f.svn-base", name_len=17, inode_objectid=<value optimized out>, ref_objectid=<value optimized out>, index=150) at inode-item.c:135 old_size = 3945 path = 0x1639aa0 key = {objectid = 37361107,...
2008 Jan 07
1
[PATCH]Add rollback support for the converter
...set_key_type(&location, BTRFS_INODE_ITEM_KEY); - ret = btrfs_insert_dir_item(trans, root, name, namelen, + ret = btrfs_insert_dir_item(trans, root, name, strlen(name), btrfs_root_dirid(&root->root_item), &location, EXT2_FT_REG_FILE); if (ret) goto fail; - ret = btrfs_insert_inode_ref(trans, root, name, namelen, objectid, + ret = btrfs_insert_inode_ref(trans, root, name, strlen(name), + objectid, btrfs_root_dirid(&root->root_item)); if (ret) goto fail; @@ -981,8 +1012,7 @@ fail: return ret; } -struct btrfs_root *create_subvol(struct btrfs_root *...
2010 Mar 20
2
[PATCH 4/4] btrfs-convert: split into convert/.
...N(file_type > EXT2_FT_SYMLINK); - ret = btrfs_insert_dir_item(idata->trans, idata->root, - dirent->name, dirent->name_len, - idata->objectid, &location, - filetype_conversion_table[file_type], - idata->index_cnt); - if (ret) - goto fail; - ret = btrfs_insert_inode_ref(idata->trans, idata->root, - dirent->name, dirent->name_len, - objectid, idata->objectid, - idata->index_cnt); - if (ret) - goto fail; - idata->index_cnt++; - inode_size = btrfs_stack_inode_size(idata->inode) + - dirent->name_len * 2; - btrf...
2013 Jan 10
0
[PATCH 03/11] Btrfs: use atomic for fs_info->last_trans_log_full_commit
...if (unlikely(old_ino == BTRFS_FIRST_FREE_OBJECTID)) { /* force full log commit if subvolume involved. */ - root->fs_info->last_trans_log_full_commit = trans->transid; + atomic64_set(&root->fs_info->last_trans_log_full_commit, + trans->transid); } else { ret = btrfs_insert_inode_ref(trans, dest, new_dentry->d_name.name, diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c index e6c8eb2..f352531 100644 --- a/fs/btrfs/tree-log.c +++ b/fs/btrfs/tree-log.c @@ -2227,14 +2227,14 @@ static int wait_log_commit(struct btrfs_trans_handle *trans, &wait, TASK_UNIN...
2008 Jun 24
1
[RFC][PATCH] btrfs orphan code
...rfs_t ret = btrfs_insert_dir_item(trans, root, dentry->d_name.name, dentry->d_name.len, dentry->d_parent->d_inode->i_ino, - &key, btrfs_inode_type(inode)); + &key, btrfs_inode_type(inode), 1); if (ret == 0) { if (add_backref) { ret = btrfs_insert_inode_ref(trans, root, @@ -2127,6 +2254,137 @@ out_unlock: btrfs_btree_balance_dirty(root, nr); btrfs_throttle(root); return err; +} + +static struct inode *btrfs_create_orphan_dir(struct btrfs_root *root) +{ + struct inode *inode = NULL; + struct inode *dir = root->inode; + struct btrfs_trans_handl...
2012 Jun 21
0
[RFC PATCH V2] Btrfs: introduce extent buffer cache for each i-node
...*root, - struct btrfs_path *path, u64 objectid, + struct inode *inode, + struct btrfs_path *path, const char *name, u16 name_len, const void *data, u16 data_len); struct btrfs_dir_item *btrfs_lookup_xattr(struct btrfs_trans_handle *trans, @@ -2876,9 +2902,9 @@ int btrfs_insert_inode_ref(struct btrfs_trans_handle *trans, const char *name, int name_len, u64 inode_objectid, u64 ref_objectid, u64 index); int btrfs_del_inode_ref(struct btrfs_trans_handle *trans, - struct btrfs_root *root, - const char *name, int name_len, - u64 inode_objectid, u64 ref_obje...
2011 Oct 04
68
[patch 00/65] Error handling patchset v3
Hi all - Here''s my current error handling patchset, against 3.1-rc8. Almost all of this patchset is preparing for actual error handling. Before we start in on that work, I''m trying to reduce the surface we need to worry about. It turns out that there is a ton of code that returns an error code but never actually reports an error. The patchset has grown to 65 patches. 46 of them