Skip to contentSkip to conversation

introduce a btrfs_iget helper

RFC PATCH In review Balaji Rao 2 participants 3 messages Jul 14, 2008 – Jul 19, 2008 Btrfs file system

lore
Share & tools
lore

Balaji Rao

author
#0 lore raw

RFC PATCH 1/1 introduce a btrfs_iget helper

Hello,

As suggest by Cristoph, this patch factors out a btrfs_iget helper from btrfs_lookup. This is useful in situations such as in NFS export ops.

Comments ?

ctree.h +2 -0
diff -r 3f0eee804974 ctree.h
@@ -1607,6 +1607,8 @@
 				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_commit_write(struct file *file, struct page *page,
 		       unsigned from, unsigned to);
 struct extent_map *btrfs_get_extent(struct inode *inode, struct page *page,
inode.c +36 -16

70 lines not on this page · raw message

#1 lore raw
Quoted 7 lines · Balaji Rao

Hello,

As suggest by Cristoph, this patch factors out a btrfs_iget helper from btrfs_lookup. This is useful in situations such as in NFS export ops.

Comments ?

No objections, but I'll wait for the full NFS patch before pulling this one in

-chris

author
#2 lore raw
Quoted 10 lines · Chris Mason
Quoted 6 lines · Balaji Rao

Hello,

As suggest by Cristoph, this patch factors out a btrfs_iget helper from btrfs_lookup. This is useful in situations such as in NFS export ops.

Comments ?

No objections, but I'll wait for the full NFS patch before pulling this one in

Cool. Its almost done. I'll send it once I hunt down a bug I'm chasing now.

Signature · 2 lines
Warm Regards,
Balaji Rao