Displaying 2 results from an estimated 2 matches for "btrfs_get_dentry".
2008 Aug 28
0
[PATCH] btrfs: cleanup d_obtain_alias useage
...Hellwig <hch@lst.de>
Index: btrfs-unstable/export.c
===================================================================
--- btrfs-unstable.orig/export.c	2008-08-28 19:56:13.000000000 -0300
+++ btrfs-unstable/export.c	2008-08-28 19:57:04.000000000 -0300
@@ -68,7 +68,6 @@ static struct dentry *btrfs_get_dentry(s
 {
 	struct btrfs_root *root;
 	struct inode *inode;
-	struct dentry *result;
 	struct btrfs_key key;
 
 	key.objectid = root_objectid;
@@ -92,11 +91,7 @@ static struct dentry *btrfs_get_dentry(s
 		return ERR_PTR(-ESTALE);
 	}
 
-	result = d_obtain_alias(inode);
-	if (!result)
-		return ERR_PTR(...
2008 Jul 20
26
[PATCH] NFS support for btrfs - v2
...d->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 generation)
+{
+	struct btrfs_root *root;
+	struct inode *inode;
+	struct dentry *result;
+	struct btrfs_key key;
+
+	key.objectid = objectid;
+	btrfs_set_key_type(&key, BTRFS_INODE_REF_KEY);
+	key.offset = 0;
+
+	root = btrfs_loo...