aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/xattr.c
diff options
context:
space:
mode:
authorJoel Becker <joel.becker@oracle.com>2009-02-13 06:54:22 -0500
committerJoel Becker <joel.becker@oracle.com>2009-09-04 19:08:13 -0400
commit5e404e9ed1b05cafb044bd46792e50197df805ed (patch)
treee3146e03f8a0fc12307db0cbea900728a36ffaac /fs/ocfs2/xattr.c
parenta1cf076ba93f9fdf3eb4195f9f43d1e7cb7550f2 (diff)
ocfs2: Pass ocfs2_caching_info into ocfs_init_*_extent_tree().
With this commit, extent tree operations are divorced from inodes and rely on ocfs2_caching_info. Phew! Signed-off-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'fs/ocfs2/xattr.c')
-rw-r--r--fs/ocfs2/xattr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/ocfs2/xattr.c b/fs/ocfs2/xattr.c
index 96f973a302fa..1bf12c453f99 100644
--- a/fs/ocfs2/xattr.c
+++ b/fs/ocfs2/xattr.c
@@ -602,7 +602,7 @@ static int ocfs2_xattr_extend_allocation(struct inode *inode,
602 602
603 mlog(0, "(clusters_to_add for xattr= %u)\n", clusters_to_add); 603 mlog(0, "(clusters_to_add for xattr= %u)\n", clusters_to_add);
604 604
605 ocfs2_init_xattr_value_extent_tree(&et, inode, vb); 605 ocfs2_init_xattr_value_extent_tree(&et, INODE_CACHE(inode), vb);
606 606
607 status = vb->vb_access(handle, INODE_CACHE(inode), vb->vb_bh, 607 status = vb->vb_access(handle, INODE_CACHE(inode), vb->vb_bh,
608 OCFS2_JOURNAL_ACCESS_WRITE); 608 OCFS2_JOURNAL_ACCESS_WRITE);
@@ -654,7 +654,7 @@ static int __ocfs2_remove_xattr_range(struct inode *inode,
654 handle_t *handle = ctxt->handle; 654 handle_t *handle = ctxt->handle;
655 struct ocfs2_extent_tree et; 655 struct ocfs2_extent_tree et;
656 656
657 ocfs2_init_xattr_value_extent_tree(&et, inode, vb); 657 ocfs2_init_xattr_value_extent_tree(&et, INODE_CACHE(inode), vb);
658 658
659 ret = vb->vb_access(handle, INODE_CACHE(inode), vb->vb_bh, 659 ret = vb->vb_access(handle, INODE_CACHE(inode), vb->vb_bh,
660 OCFS2_JOURNAL_ACCESS_WRITE); 660 OCFS2_JOURNAL_ACCESS_WRITE);
@@ -4266,7 +4266,7 @@ static int ocfs2_add_new_xattr_cluster(struct inode *inode,
4266 (unsigned long long)OCFS2_I(inode)->ip_blkno, 4266 (unsigned long long)OCFS2_I(inode)->ip_blkno,
4267 prev_cpos, (unsigned long long)bucket_blkno(first)); 4267 prev_cpos, (unsigned long long)bucket_blkno(first));
4268 4268
4269 ocfs2_init_xattr_tree_extent_tree(&et, inode, root_bh); 4269 ocfs2_init_xattr_tree_extent_tree(&et, INODE_CACHE(inode), root_bh);
4270 4270
4271 ret = ocfs2_journal_access_xb(handle, INODE_CACHE(inode), root_bh, 4271 ret = ocfs2_journal_access_xb(handle, INODE_CACHE(inode), root_bh,
4272 OCFS2_JOURNAL_ACCESS_WRITE); 4272 OCFS2_JOURNAL_ACCESS_WRITE);
@@ -4841,7 +4841,7 @@ static int ocfs2_rm_xattr_cluster(struct inode *inode,
4841 struct ocfs2_cached_dealloc_ctxt dealloc; 4841 struct ocfs2_cached_dealloc_ctxt dealloc;
4842 struct ocfs2_extent_tree et; 4842 struct ocfs2_extent_tree et;
4843 4843
4844 ocfs2_init_xattr_tree_extent_tree(&et, inode, root_bh); 4844 ocfs2_init_xattr_tree_extent_tree(&et, INODE_CACHE(inode), root_bh);
4845 4845
4846 ocfs2_init_dealloc_ctxt(&dealloc); 4846 ocfs2_init_dealloc_ctxt(&dealloc);
4847 4847