• Home
  • Raw
  • Download

Lines Matching refs:ji

161 	struct jfs_inode_info *ji = JFS_IP(ip);  in ea_write_inline()  local
168 assert(size <= sizeof (ji->i_inline_ea)); in ea_write_inline()
174 if (!(ji->mode2 & INLINEEA) && !(ji->ea.flag & DXD_INLINE)) in ea_write_inline()
180 memcpy(ji->i_inline_ea, ealist, size); in ea_write_inline()
182 ji->mode2 &= ~INLINEEA; in ea_write_inline()
190 if (ji->ea.flag & DXD_INLINE) in ea_write_inline()
191 ji->mode2 |= INLINEEA; in ea_write_inline()
220 struct jfs_inode_info *ji = JFS_IP(ip); in ea_write() local
234 if (!ealist || size <= sizeof (ji->i_inline_ea)) { in ea_write()
308 if (ji->ea.flag & DXD_INLINE) in ea_write()
309 ji->mode2 |= INLINEEA; in ea_write()
334 struct jfs_inode_info *ji = JFS_IP(ip); in ea_read_inline() local
335 int ea_size = sizeDXD(&ji->ea); in ea_read_inline()
343 if ((sizeDXD(&ji->ea) > sizeof (ji->i_inline_ea))) in ea_read_inline()
345 if (le32_to_cpu(((struct jfs_ea_list *) &ji->i_inline_ea)->size) in ea_read_inline()
349 memcpy(ealist, ji->i_inline_ea, ea_size); in ea_read_inline()
369 struct jfs_inode_info *ji = JFS_IP(ip); in ea_read() local
380 if (ji->ea.flag & DXD_INLINE) in ea_read()
383 nbytes = sizeDXD(&ji->ea); in ea_read()
393 nblocks = lengthDXD(&ji->ea) << sbi->l2nbperpage; in ea_read()
394 blkno = addressDXD(&ji->ea) << sbi->l2nbperpage; in ea_read()
443 struct jfs_inode_info *ji = JFS_IP(inode); in ea_get() local
446 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()
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()
909 struct jfs_inode_info *ji = JFS_IP(inode); in jfs_setxattr() local
922 mutex_lock(&ji->commit_mutex); in jfs_setxattr()
928 mutex_unlock(&ji->commit_mutex); in jfs_setxattr()
1073 struct jfs_inode_info *ji = JFS_IP(inode); in jfs_removexattr() local
1081 mutex_lock(&ji->commit_mutex); in jfs_removexattr()
1086 mutex_unlock(&ji->commit_mutex); in jfs_removexattr()