[Ocfs2-tools-devel] [PATCH 1/6] libocfs2: Use ocfs2_read_blocks() in xattr.c


Thu May 21 14:24:17 PDT 2009


From: Joel Becker <joel.becker at oracle.com>

Readers need to use ocfs2_read_blocks() so as to resolve image file
reads.  xattr.c wasn't doing this.

Signed-off-by: Joel Becker <joel.becker at oracle.com>
---
 libocfs2/xattr.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libocfs2/xattr.c b/libocfs2/xattr.c
index bffdfd9..d217ff0 100644
--- a/libocfs2/xattr.c
+++ b/libocfs2/xattr.c
@@ -212,7 +212,7 @@ errcode_t ocfs2_read_xattr_block(ocfs2_filesys *fs,
 	if (ret)
 		return ret;
 
-	ret = io_read_block(fs->fs_io, blkno, 1, blk);
+	ret = ocfs2_read_blocks(fs->fs_io, blkno, 1, blk);
 	if (ret)
 		goto out;
 
@@ -380,7 +380,7 @@ errcode_t ocfs2_read_xattr_bucket(ocfs2_filesys *fs,
 	if (ret)
 		return ret;
 
-	ret = io_read_block(fs->fs_io, blkno, blk_per_bucket, bucket);
+	ret = ocfs2_read_blocks(fs->fs_io, blkno, blk_per_bucket, bucket);
 	if (ret)
 		goto out;
 
-- 
1.6.3




More information about the Ocfs2-tools-devel mailing list