Lines Matching refs:in
747 struct ceph_mds_reply_inode *info = iinfo->in; in ceph_fill_inode()
1172 static int splice_dentry(struct dentry **pdn, struct inode *in) in splice_dentry() argument
1179 if (S_ISDIR(in->i_mode)) { in splice_dentry()
1184 realdn = d_find_any_alias(in); in splice_dentry()
1203 realdn = d_splice_alias(in, dn); in splice_dentry()
1206 PTR_ERR(realdn), dn, in, ceph_vinop(in)); in splice_dentry()
1241 struct inode *in = NULL; in ceph_fill_trace() local
1284 tvino.ino = le64_to_cpu(rinfo->targeti.in->ino); in ceph_fill_trace()
1285 tvino.snap = le64_to_cpu(rinfo->targeti.in->snapid); in ceph_fill_trace()
1318 tvino.ino = le64_to_cpu(rinfo->targeti.in->ino); in ceph_fill_trace()
1319 tvino.snap = le64_to_cpu(rinfo->targeti.in->snapid); in ceph_fill_trace()
1321 in = ceph_get_inode(sb, tvino); in ceph_fill_trace()
1322 if (IS_ERR(in)) { in ceph_fill_trace()
1323 err = PTR_ERR(in); in ceph_fill_trace()
1327 err = ceph_fill_inode(in, req->r_locked_page, &rinfo->targeti, in ceph_fill_trace()
1335 in, ceph_vinop(in)); in ceph_fill_trace()
1336 if (in->i_state & I_NEW) in ceph_fill_trace()
1337 discard_new_inode(in); in ceph_fill_trace()
1339 iput(in); in ceph_fill_trace()
1342 req->r_target_inode = in; in ceph_fill_trace()
1343 if (in->i_state & I_NEW) in ceph_fill_trace()
1344 unlock_new_inode(in); in ceph_fill_trace()
1370 dvino.ino = le64_to_cpu(rinfo->diri.in->ino); in ceph_fill_trace()
1371 dvino.snap = le64_to_cpu(rinfo->diri.in->snapid); in ceph_fill_trace()
1378 (le32_to_cpu(rinfo->diri.in->cap.caps) & in ceph_fill_trace()
1444 ihold(in); in ceph_fill_trace()
1445 err = splice_dentry(&req->r_dentry, in); in ceph_fill_trace()
1449 } else if (d_really_is_positive(dn) && d_inode(dn) != in) { in ceph_fill_trace()
1452 ceph_vinop(in)); in ceph_fill_trace()
1473 dout(" linking snapped dir %p to dn %p\n", in, req->r_dentry); in ceph_fill_trace()
1475 ihold(in); in ceph_fill_trace()
1476 err = splice_dentry(&req->r_dentry, in); in ceph_fill_trace()
1482 dvino.ino = le64_to_cpu(rinfo->diri.in->ino); in ceph_fill_trace()
1483 dvino.snap = le64_to_cpu(rinfo->diri.in->snapid); in ceph_fill_trace()
1485 tvino.ino = le64_to_cpu(rinfo->targeti.in->ino); in ceph_fill_trace()
1486 tvino.snap = le64_to_cpu(rinfo->targeti.in->snapid); in ceph_fill_trace()
1511 struct inode *in; in readdir_prepopulate_inodes_only() local
1514 vino.ino = le64_to_cpu(rde->inode.in->ino); in readdir_prepopulate_inodes_only()
1515 vino.snap = le64_to_cpu(rde->inode.in->snapid); in readdir_prepopulate_inodes_only()
1517 in = ceph_get_inode(req->r_dentry->d_sb, vino); in readdir_prepopulate_inodes_only()
1518 if (IS_ERR(in)) { in readdir_prepopulate_inodes_only()
1519 err = PTR_ERR(in); in readdir_prepopulate_inodes_only()
1523 rc = ceph_fill_inode(in, NULL, &rde->inode, NULL, session, in readdir_prepopulate_inodes_only()
1527 in, rc); in readdir_prepopulate_inodes_only()
1529 if (in->i_state & I_NEW) { in readdir_prepopulate_inodes_only()
1530 ihold(in); in readdir_prepopulate_inodes_only()
1531 discard_new_inode(in); in readdir_prepopulate_inodes_only()
1533 } else if (in->i_state & I_NEW) { in readdir_prepopulate_inodes_only()
1534 unlock_new_inode(in); in readdir_prepopulate_inodes_only()
1538 ceph_async_iput(in); in readdir_prepopulate_inodes_only()
1600 struct inode *in; in ceph_readdir_prepopulate() local
1667 tvino.ino = le64_to_cpu(rde->inode.in->ino); in ceph_readdir_prepopulate()
1668 tvino.snap = le64_to_cpu(rde->inode.in->snapid); in ceph_readdir_prepopulate()
1719 in = d_inode(dn); in ceph_readdir_prepopulate()
1721 in = ceph_get_inode(parent->d_sb, tvino); in ceph_readdir_prepopulate()
1722 if (IS_ERR(in)) { in ceph_readdir_prepopulate()
1726 err = PTR_ERR(in); in ceph_readdir_prepopulate()
1731 ret = ceph_fill_inode(in, NULL, &rde->inode, NULL, session, in ceph_readdir_prepopulate()
1734 pr_err("ceph_fill_inode badness on %p\n", in); in ceph_readdir_prepopulate()
1738 if (in->i_state & I_NEW) { in ceph_readdir_prepopulate()
1739 ihold(in); in ceph_readdir_prepopulate()
1740 discard_new_inode(in); in ceph_readdir_prepopulate()
1742 ceph_async_iput(in); in ceph_readdir_prepopulate()
1748 if (in->i_state & I_NEW) in ceph_readdir_prepopulate()
1749 unlock_new_inode(in); in ceph_readdir_prepopulate()
1752 if (ceph_security_xattr_deadlock(in)) { in ceph_readdir_prepopulate()
1754 " (security xattr deadlock)\n", dn, in); in ceph_readdir_prepopulate()
1755 ceph_async_iput(in); in ceph_readdir_prepopulate()
1760 err = splice_dentry(&dn, in); in ceph_readdir_prepopulate()