Displaying 2 results from an estimated 2 matches for "parent_gen".
Did you mean:
parent_dev
2008 Oct 27
0
[PATCH 3/4] update nodatacow code
.../fs/btrfs/extent-tree.c 4/fs/btrfs/extent-tree.c
--- 3/fs/btrfs/extent-tree.c 2008-10-27 16:31:54.000000000 +0800
+++ 4/fs/btrfs/extent-tree.c 2008-10-27 21:12:49.000000000 +0800
@@ -848,9 +848,8 @@ out:
return 0;
}
-static int get_reference_status(struct btrfs_root *root, u64 bytenr,
- u64 parent_gen, u64 ref_objectid,
- u64 *min_generation, u32 *ref_count)
+int btrfs_cross_ref_exist(struct btrfs_trans_handle *trans,
+ struct btrfs_root *root, u64 bytenr)
{
struct btrfs_root *extent_root = root->fs_info->extent_root;
struct btrfs_path *path;
@@ -858,8 +857,8 @@ static i...
2008 Jul 20
26
[PATCH] NFS support for btrfs - v2
...jectid;
+ fid->gen = inode->i_generation;
+
+ if (connectable && !S_ISDIR(inode->i_mode)) {
+ struct inode *parent;
+
+ spin_lock(&dentry->d_lock);
+
+ parent = dentry->d_parent->d_inode;
+ fid->parent_objectid = BTRFS_I(parent)->location.objectid;
+ fid->parent_gen = parent->i_generation;
+
+ spin_unlock(&dentry->d_lock);
+ len = BTRFS_FID_CONNECTABLE;
+ }
+ *max_len = len;
+
+ /* We return length itself for the type */
+ return len;
+
+}
+
+static struct dentry * btrfs_get_dentry(struct super_block *sb,
+ u64 objectid, u64 root_objectid, u32 ge...