Lines Matching refs:ji

172 	struct jfs_inode_info *ji = JFS_IP(ip);  in ea_write_inline()  local
179 assert(size <= sizeof (ji->i_inline_ea)); in ea_write_inline()
185 if (!(ji->mode2 & INLINEEA) && !(ji->ea.flag & DXD_INLINE)) in ea_write_inline()
191 memcpy(ji->i_inline_ea, ealist, size); in ea_write_inline()
193 ji->mode2 &= ~INLINEEA; in ea_write_inline()
201 if (ji->ea.flag & DXD_INLINE) in ea_write_inline()
202 ji->mode2 |= INLINEEA; in ea_write_inline()
232 struct jfs_inode_info *ji = JFS_IP(ip); in ea_write() local
246 if (!ealist || size <= sizeof (ji->i_inline_ea)) { in ea_write()
312 if (ji->ea.flag & DXD_INLINE) in ea_write()
313 ji->mode2 |= INLINEEA; in ea_write()
335 struct jfs_inode_info *ji = JFS_IP(ip); in ea_read_inline() local
336 int ea_size = sizeDXD(&ji->ea); in ea_read_inline()
344 if ((sizeDXD(&ji->ea) > sizeof (ji->i_inline_ea))) in ea_read_inline()
346 if (le32_to_cpu(((struct jfs_ea_list *) &ji->i_inline_ea)->size) in ea_read_inline()
350 memcpy(ealist, ji->i_inline_ea, ea_size); in ea_read_inline()
370 struct jfs_inode_info *ji = JFS_IP(ip); in ea_read() local
381 if (ji->ea.flag & DXD_INLINE) in ea_read()
384 nbytes = sizeDXD(&ji->ea); in ea_read()
394 nblocks = lengthDXD(&ji->ea) << sbi->l2nbperpage; in ea_read()
395 blkno = addressDXD(&ji->ea) << sbi->l2nbperpage; in ea_read()
444 struct jfs_inode_info *ji = JFS_IP(inode); in ea_get() local
447 int ea_size = sizeDXD(&ji->ea); in ea_get()
453 if (ji->ea.flag == 0) in ea_get()
463 if ((min_size <= sizeof (ji->i_inline_ea)) && in ea_get()
464 (ji->mode2 & INLINEEA)) { in ea_get()
466 ea_buf->max_size = sizeof (ji->i_inline_ea); in ea_get()
467 ea_buf->xattr = (struct jfs_ea_list *) ji->i_inline_ea; in ea_get()
475 } else if (ji->ea.flag & DXD_INLINE) { in ea_get()
476 if (min_size <= sizeof (ji->i_inline_ea)) { in ea_get()
478 ea_buf->max_size = sizeof (ji->i_inline_ea); in ea_get()
479 ea_buf->xattr = (struct jfs_ea_list *) ji->i_inline_ea; in ea_get()
484 if (!(ji->ea.flag & DXD_EXTENT)) { in ea_get()
552 ea_buf->mp = read_metapage(inode, addressDXD(&ji->ea), in ea_get()
553 lengthDXD(&ji->ea) << sb->s_blocksize_bits, in ea_get()
588 struct jfs_inode_info *ji = JFS_IP(inode); in ea_put() local
597 assert(new_size <= sizeof (ji->i_inline_ea)); in ea_put()
598 ji->mode2 &= ~INLINEEA; in ea_put()
618 down(&ji->commit_sem); in ea_put()
622 if (ji->ea.flag & DXD_EXTENT) { in ea_put()
623 invalidate_dxd_metapages(inode, ji->ea); in ea_put()
624 old_blocks = lengthDXD(&ji->ea); in ea_put()
628 txEA(tid, inode, &ji->ea, &ea_buf->new_ea); in ea_put()
631 if (ji->ea.flag & DXD_INLINE) in ea_put()
632 ji->mode2 |= INLINEEA; in ea_put()
634 ji->ea = ea_buf->new_ea; in ea_put()
636 txEA(tid, inode, &ji->ea, 0); in ea_put()
637 if (ji->ea.flag & DXD_INLINE) in ea_put()
638 ji->mode2 |= INLINEEA; in ea_put()
639 ji->ea.flag = 0; in ea_put()
640 ji->ea.size = 0; in ea_put()
646 up(&ji->commit_sem); in ea_put()