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