Lines Matching refs:ji

146 	struct jfs_inode_info *ji = JFS_IP(ip);  in ea_write_inline()  local
153 assert(size <= sizeof (ji->i_inline_ea)); in ea_write_inline()
159 if (!(ji->mode2 & INLINEEA) && !(ji->ea.flag & DXD_INLINE)) in ea_write_inline()
165 memcpy(ji->i_inline_ea, ealist, size); in ea_write_inline()
167 ji->mode2 &= ~INLINEEA; in ea_write_inline()
175 if (ji->ea.flag & DXD_INLINE) in ea_write_inline()
176 ji->mode2 |= INLINEEA; in ea_write_inline()
205 struct jfs_inode_info *ji = JFS_IP(ip); in ea_write() local
219 if (!ealist || size <= sizeof (ji->i_inline_ea)) { in ea_write()
293 if (ji->ea.flag & DXD_INLINE) in ea_write()
294 ji->mode2 |= INLINEEA; in ea_write()
319 struct jfs_inode_info *ji = JFS_IP(ip); in ea_read_inline() local
320 int ea_size = sizeDXD(&ji->ea); in ea_read_inline()
328 if ((sizeDXD(&ji->ea) > sizeof (ji->i_inline_ea))) in ea_read_inline()
330 if (le32_to_cpu(((struct jfs_ea_list *) &ji->i_inline_ea)->size) in ea_read_inline()
334 memcpy(ealist, ji->i_inline_ea, ea_size); in ea_read_inline()
354 struct jfs_inode_info *ji = JFS_IP(ip); in ea_read() local
365 if (ji->ea.flag & DXD_INLINE) in ea_read()
368 nbytes = sizeDXD(&ji->ea); in ea_read()
378 nblocks = lengthDXD(&ji->ea) << sbi->l2nbperpage; in ea_read()
379 blkno = addressDXD(&ji->ea) << sbi->l2nbperpage; in ea_read()
428 struct jfs_inode_info *ji = JFS_IP(inode); in ea_get() local
431 int ea_size = sizeDXD(&ji->ea); in ea_get()
438 if (ji->ea.flag == 0) in ea_get()
448 if ((min_size <= sizeof (ji->i_inline_ea)) && in ea_get()
449 (ji->mode2 & INLINEEA)) { in ea_get()
451 ea_buf->max_size = sizeof (ji->i_inline_ea); in ea_get()
452 ea_buf->xattr = (struct jfs_ea_list *) ji->i_inline_ea; in ea_get()
460 } else if (ji->ea.flag & DXD_INLINE) { in ea_get()
461 if (min_size <= sizeof (ji->i_inline_ea)) { in ea_get()
463 ea_buf->max_size = sizeof (ji->i_inline_ea); in ea_get()
464 ea_buf->xattr = (struct jfs_ea_list *) ji->i_inline_ea; in ea_get()
469 if (!(ji->ea.flag & DXD_EXTENT)) { in ea_get()
547 ea_buf->mp = read_metapage(inode, addressDXD(&ji->ea), in ea_get()
548 lengthDXD(&ji->ea) << sb->s_blocksize_bits, in ea_get()
595 struct jfs_inode_info *ji = JFS_IP(inode); in ea_put() local
603 assert(new_size <= sizeof (ji->i_inline_ea)); in ea_put()
604 ji->mode2 &= ~INLINEEA; in ea_put()
625 if (ji->ea.flag & DXD_EXTENT) { in ea_put()
626 invalidate_dxd_metapages(inode, ji->ea); in ea_put()
627 old_blocks = lengthDXD(&ji->ea); in ea_put()
631 txEA(tid, inode, &ji->ea, &ea_buf->new_ea); in ea_put()
634 if (ji->ea.flag & DXD_INLINE) in ea_put()
635 ji->mode2 |= INLINEEA; in ea_put()
637 ji->ea = ea_buf->new_ea; in ea_put()
639 txEA(tid, inode, &ji->ea, NULL); in ea_put()
640 if (ji->ea.flag & DXD_INLINE) in ea_put()
641 ji->mode2 |= INLINEEA; in ea_put()
642 ji->ea.flag = 0; in ea_put()
643 ji->ea.size = 0; in ea_put()
911 struct jfs_inode_info *ji = JFS_IP(inode); in __jfs_xattr_set() local
916 mutex_lock(&ji->commit_mutex); in __jfs_xattr_set()
921 mutex_unlock(&ji->commit_mutex); in __jfs_xattr_set()