introduce a btrfs_iget helper
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
@@ -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
Quoted 7 lines · Balaji Rao
Hello,
As suggest by Cristoph, this patch factors out a
btrfs_igethelper frombtrfs_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
Quoted 10 lines · Chris Mason
Quoted 6 lines · Balaji Rao
Hello,
As suggest by Cristoph, this patch factors out a
btrfs_igethelper frombtrfs_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