From 7530537ba14c3dfde498f0eb3d5518ec48bcb7e5 Mon Sep 17 00:00:00 2001 From: Dave Kleikamp Date: Tue, 18 May 2004 05:36:21 -0500 Subject: [PATCH] JFS: error in __get_metapage caused by invalid size from ea_get --- fs/jfs/xattr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/jfs/xattr.c b/fs/jfs/xattr.c index 967253c2f2c4e..e4a8f372c4da6 100644 --- a/fs/jfs/xattr.c +++ b/fs/jfs/xattr.c @@ -550,7 +550,8 @@ static int ea_get(struct inode *inode, struct ea_buffer *ea_buf, int min_size) } ea_buf->flag = EA_EXTENT; ea_buf->mp = read_metapage(inode, addressDXD(&ji->ea), - lengthDXD(&ji->ea), 1); + lengthDXD(&ji->ea) << sb->s_blocksize_bits, + 1); if (ea_buf->mp == NULL) return -EIO; ea_buf->xattr = ea_buf->mp->data; -- 2.53.0