Lines Matching refs:ji
159 struct jfs_inode_info *ji = JFS_IP(ip); in ea_write_inline() local
166 assert(size <= sizeof (ji->i_inline_ea)); in ea_write_inline()
172 if (!(ji->mode2 & INLINEEA) && !(ji->ea.flag & DXD_INLINE)) in ea_write_inline()
178 memcpy(ji->i_inline_ea, ealist, size); in ea_write_inline()
180 ji->mode2 &= ~INLINEEA; in ea_write_inline()
188 if (ji->ea.flag & DXD_INLINE) in ea_write_inline()
189 ji->mode2 |= INLINEEA; in ea_write_inline()
218 struct jfs_inode_info *ji = JFS_IP(ip); in ea_write() local
232 if (!ealist || size <= sizeof (ji->i_inline_ea)) { in ea_write()
306 if (ji->ea.flag & DXD_INLINE) in ea_write()
307 ji->mode2 |= INLINEEA; in ea_write()
332 struct jfs_inode_info *ji = JFS_IP(ip); in ea_read_inline() local
333 int ea_size = sizeDXD(&ji->ea); in ea_read_inline()
341 if ((sizeDXD(&ji->ea) > sizeof (ji->i_inline_ea))) in ea_read_inline()
343 if (le32_to_cpu(((struct jfs_ea_list *) &ji->i_inline_ea)->size) in ea_read_inline()
347 memcpy(ealist, ji->i_inline_ea, ea_size); in ea_read_inline()
367 struct jfs_inode_info *ji = JFS_IP(ip); in ea_read() local
378 if (ji->ea.flag & DXD_INLINE) in ea_read()
381 nbytes = sizeDXD(&ji->ea); in ea_read()
391 nblocks = lengthDXD(&ji->ea) << sbi->l2nbperpage; in ea_read()
392 blkno = addressDXD(&ji->ea) << sbi->l2nbperpage; in ea_read()
441 struct jfs_inode_info *ji = JFS_IP(inode); in ea_get() local
444 int ea_size = sizeDXD(&ji->ea); in ea_get()
451 if (ji->ea.flag == 0) in ea_get()
461 if ((min_size <= sizeof (ji->i_inline_ea)) && in ea_get()
462 (ji->mode2 & INLINEEA)) { in ea_get()
464 ea_buf->max_size = sizeof (ji->i_inline_ea); in ea_get()
465 ea_buf->xattr = (struct jfs_ea_list *) ji->i_inline_ea; in ea_get()
473 } else if (ji->ea.flag & DXD_INLINE) { in ea_get()
474 if (min_size <= sizeof (ji->i_inline_ea)) { in ea_get()
476 ea_buf->max_size = sizeof (ji->i_inline_ea); in ea_get()
477 ea_buf->xattr = (struct jfs_ea_list *) ji->i_inline_ea; in ea_get()
482 if (!(ji->ea.flag & DXD_EXTENT)) { in ea_get()
560 ea_buf->mp = read_metapage(inode, addressDXD(&ji->ea), in ea_get()
561 lengthDXD(&ji->ea) << sb->s_blocksize_bits, in ea_get()
608 struct jfs_inode_info *ji = JFS_IP(inode); in ea_put() local
616 assert(new_size <= sizeof (ji->i_inline_ea)); in ea_put()
617 ji->mode2 &= ~INLINEEA; in ea_put()
638 if (ji->ea.flag & DXD_EXTENT) { in ea_put()
639 invalidate_dxd_metapages(inode, ji->ea); in ea_put()
640 old_blocks = lengthDXD(&ji->ea); in ea_put()
644 txEA(tid, inode, &ji->ea, &ea_buf->new_ea); in ea_put()
647 if (ji->ea.flag & DXD_INLINE) in ea_put()
648 ji->mode2 |= INLINEEA; in ea_put()
650 ji->ea = ea_buf->new_ea; in ea_put()
652 txEA(tid, inode, &ji->ea, NULL); in ea_put()
653 if (ji->ea.flag & DXD_INLINE) in ea_put()
654 ji->mode2 |= INLINEEA; in ea_put()
655 ji->ea.flag = 0; in ea_put()
656 ji->ea.size = 0; in ea_put()
924 struct jfs_inode_info *ji = JFS_IP(inode); in __jfs_xattr_set() local
929 mutex_lock(&ji->commit_mutex); in __jfs_xattr_set()
934 mutex_unlock(&ji->commit_mutex); in __jfs_xattr_set()