Displaying 3 results from an estimated 3 matches for "btrfs_iget_locked".
2011 Sep 05
1
Error on creating snapshots (btrfs: could not do orphan cleanup -116)
This happens on a freshly created btrfs filesystem in a raid10 (4x1TB)
configuration with three
subvolumes and 1.5 TB data.
When I try to snapshot one of the subvolumes (with 100 GB of data), it
says that the snapshot
creation failed and I get the following error message:
btrfs: could not do orphan cleanup -116
After the failure:
- The snapshot exists in `btrfs subvolume list''
- The
2008 Aug 30
0
[PATCH] btrfs: remove unused function btrfs_ilookup
...==================================================
--- btrfs-unstable.orig/ctree.h 2008-08-30 11:08:58.000000000 -0300
+++ btrfs-unstable/ctree.h 2008-08-30 11:09:10.000000000 -0300
@@ -1698,8 +1698,6 @@ void btrfs_destroy_cachep(void);
long btrfs_ioctl_trans_end(struct file *file);
struct inode *btrfs_iget_locked(struct super_block *s, u64 objectid,
struct btrfs_root *root);
-struct inode *btrfs_ilookup(struct super_block *s, u64 objectid,
- u64 root_objectid);
struct inode *btrfs_iget(struct super_block *s, struct btrfs_key *location,
struct btrfs_root *root, int *is_new);
int btrfs_commi...
2008 Jun 24
1
[RFC][PATCH] btrfs orphan code
...= PTR_ERR(di);
+
+ if (err == -ENOENT)
+ inode = btrfs_create_orphan_dir(root);
+ else
+ inode = ERR_PTR(err);
+
+ return inode;
+ }
+
+ btrfs_dir_item_key_to_cpu(path->nodes[0], di, &location);
+
+ btrfs_free_path(path);
+ mutex_unlock(&root->fs_info->fs_mutex);
+
+ inode = btrfs_iget_locked(dir->i_sb, location.objectid, root);
+
+ if (!inode) {
+ inode = ERR_PTR(-EACCES);
+ goto out;
+ }
+
+ /* should technically always be true */
+ if (inode->i_state & I_NEW) {
+ BTRFS_I(inode)->root = root;
+ memcpy(&BTRFS_I(inode)->location, &location, sizeof(location));...