Commit 7530537b authored by Dave Kleikamp's avatar Dave Kleikamp

JFS: error in __get_metapage caused by invalid size from ea_get

parent b80345b7
...@@ -550,7 +550,8 @@ static int ea_get(struct inode *inode, struct ea_buffer *ea_buf, int min_size) ...@@ -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->flag = EA_EXTENT;
ea_buf->mp = read_metapage(inode, addressDXD(&ji->ea), 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) if (ea_buf->mp == NULL)
return -EIO; return -EIO;
ea_buf->xattr = ea_buf->mp->data; ea_buf->xattr = ea_buf->mp->data;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment