search for: btrfs_insert_dir_item

Displaying 9 results from an estimated 9 matches for "btrfs_insert_dir_item".

2008 Jun 24
1
[RFC][PATCH] btrfs orphan code
...at I''m doing is ok for now. I''ve added an ORPHAN_DIR item key to have a hidden dir per root. Right now it just does it for whatever the default root is on mount, but I''m going to fix that to do the orphan dir check/creation on lookup of a subvolume root. I also changed btrfs_insert_dir_item to take an index flag to indicate whether or not we want to add a DIR_INDEX item along with the dir item. Let me know if there are any glaring design problems with what I''ve done. Thanks much, Josef diff -r 99b12e2db0f8 btrfs_inode.h --- a/btrfs_inode.h Wed Jun 18 20:50:41 2008 -0400...
2008 Jan 07
1
[PATCH]Add rollback support for the converter
...rfs_inode.otime, + total_bytes / sectorsize); ret = btrfs_insert_inode(trans, root, objectid, &btrfs_inode); if (ret) goto fail; @@ -965,12 +995,13 @@ again: location.objectid = objectid; location.offset = 0; btrfs_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_inser...
2011 Jun 30
9
btrfs-progs: integration branch updated
After a reorganisation of patches, and sending a bunch of them to Chris, I''ve also updated the integration branch to match that. It''s available from: http://git.darksatanic.net/repo/btrfs-progs-unstable.git/ integration-20110630 The shortlog of 17 patches in this branch beyond the ones I''ve sent to Chris is below. Hugo. Andreas Philipp (1): print parent
2012 Dec 17
5
Feeback on RAID1 feature of Btrfs
...btrfs] [ 804.910720] [<ffffffffa016894c>] btrfs_search_slot+0x89c/0x900 [btrfs] [ 804.910730] [<ffffffffa0169fcc>] btrfs_insert_empty_items+0x7c/0xe0 [btrfs] [ 804.910742] [<ffffffffa017c313>] insert_with_overflow+0x43/0x120 [btrfs] [ 804.910753] [<ffffffffa017c4ac>] btrfs_insert_dir_item+0xbc/0x200 [btrfs] [ 804.910767] [<ffffffffa0195c6b>] btrfs_add_link+0xeb/0x300 [btrfs] [ 804.910781] [<ffffffffa0196f64>] btrfs_create+0x1a4/0x210 [btrfs] [ 804.910799] [<ffffffff81217a0c>] ? security_inode_permission+0x1c/0x30 [ 804.910813] [<ffffffff8118fd56>] vfs...
2010 Mar 20
2
[PATCH 4/4] btrfs-convert: split into convert/.
...jectid; - } - return 0; - } - if (dirent->inode < EXT2_GOOD_OLD_FIRST_INO) - return 0; - - location.objectid = objectid; - location.offset = 0; - btrfs_set_key_type(&location, BTRFS_INODE_ITEM_KEY); - - file_type = dirent->file_type; - BUG_ON(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, -...
2012 Jun 21
0
[RFC PATCH V2] Btrfs: introduce extent buffer cache for each i-node
...return btrfs_insert_empty_items_for_inode(trans, root, inode, path, + key, &data_size, 1); +} + int btrfs_next_leaf(struct btrfs_root *root, struct btrfs_path *path); int btrfs_next_old_leaf(struct btrfs_root *root, struct btrfs_path *path, u64 time_seq); @@ -2829,7 +2853,8 @@ int btrfs_insert_dir_item(struct btrfs_trans_handle *trans, struct btrfs_key *location, u8 type, u64 index); struct btrfs_dir_item *btrfs_lookup_dir_item(struct btrfs_trans_handle *trans, struct btrfs_root *root, - struct btrfs_path *path, u64 dir, + struct inode *dir, + struct b...
2010 Sep 03
0
[PATCH 1/2] btrfs: document where we use BUG_ON instead of error handling
...} @@ -3725,7 +3725,7 @@ void btrfs_evict_inode(struct inode *inode) if (ret == 0) { ret = btrfs_orphan_del(trans, inode); - BUG_ON(ret); + btrfs_fixable_bug_on(ret); } nr = trans->blocks_used; @@ -4566,7 +4566,7 @@ int btrfs_add_link(struct btrfs_trans_handle *trans, ret = btrfs_insert_dir_item(trans, root, name, name_len, parent_inode->i_ino, &key, btrfs_inode_type(inode), index); - BUG_ON(ret); + btrfs_fixable_bug_on(ret); btrfs_i_size_write(parent_inode, parent_inode->i_size + name_len * 2); @@ -5089,7 +5089,7 @@ again: ret = uncompress...
2011 Mar 09
0
Re: "open_ctree failed", unable to mount the fs
...nel: [121668.144344]  [] ? btrfs_search_slot+0x724/0x774 [btrfs] Mar  9 23:59:24 ftp2 kernel: [121668.144355]  [] ? btrfs_insert_empty_items+0x62/0xb5 [btrfs] Mar  9 23:59:24 ftp2 kernel: [121668.144368]  [] ? insert_with_overflow+0x30/0xec [btrfs] Mar  9 23:59:24 ftp2 kernel: [121668.144381]  [] ? btrfs_insert_dir_item+0x83/0x266 [btrfs] Mar  9 23:59:24 ftp2 kernel: [121668.144391]  [] ? btrfs_release_path+0x3b/0x52 [btrfs] Mar  9 23:59:24 ftp2 kernel: [121668.144405]  [] ? __btrfs_getxattr+0xed/0xff [btrfs] Mar  9 23:59:24 ftp2 kernel: [121668.144420]  [] ? btrfs_add_link+0x108/0x160 [btrfs] Mar  9 23:59:24 ftp2...
2012 Aug 01
17
[PATCH] add crtime to the snapshot list
From: Anand <anand.jain@oracle.com> This patch adds creation-time to the snapshot list display, which would help user to better manage the snapshots when number of snapshots grow substantially. This patch is developed and on top of the send/receive btrfs and btrfs-progs repo at git://github.com/ablock84/linux-btrfs.git (send-v2) git://github.com/ablock84/btrfs-progs.git (send-v2)