Lines Matching refs:di
36 struct ceph_dentry_info *di; in ceph_init_dentry() local
41 di = kmem_cache_alloc(ceph_dentry_cachep, GFP_NOFS | __GFP_ZERO); in ceph_init_dentry()
42 if (!di) in ceph_init_dentry()
48 kmem_cache_free(ceph_dentry_cachep, di); in ceph_init_dentry()
59 di->dentry = dentry; in ceph_init_dentry()
60 di->lease_session = NULL; in ceph_init_dentry()
64 dentry->d_fsdata = di; in ceph_init_dentry()
128 struct ceph_dentry_info *di; in __dcache_readdir() local
153 di = ceph_dentry(dentry); in __dcache_readdir()
163 if (di->lease_shared_gen == shared_gen && in __dcache_readdir()
167 fpos_cmp(ctx->pos, di->offset) <= 0) in __dcache_readdir()
170 dentry, di->offset, in __dcache_readdir()
176 di = ceph_dentry(dentry); in __dcache_readdir()
191 dout(" %llu (%llu) dentry %p %pd %p\n", di->offset, ctx->pos, in __dcache_readdir()
200 fi->next_offset = fpos_off(di->offset); in __dcache_readdir()
206 ctx->pos = di->offset + 1; in __dcache_readdir()
632 struct ceph_dentry_info *di = ceph_dentry(dentry); in ceph_lookup() local
646 di->lease_shared_gen = ci->i_shared_gen; in ceph_lookup()
1020 struct ceph_dentry_info *di; in dentry_lease_is_valid() local
1030 di = ceph_dentry(dentry); in dentry_lease_is_valid()
1031 if (di->lease_session) { in dentry_lease_is_valid()
1032 s = di->lease_session; in dentry_lease_is_valid()
1038 if (di->lease_gen == gen && in dentry_lease_is_valid()
1042 if (di->lease_renew_after && in dentry_lease_is_valid()
1043 time_after(jiffies, di->lease_renew_after)) { in dentry_lease_is_valid()
1047 seq = di->lease_seq; in dentry_lease_is_valid()
1048 di->lease_renew_after = 0; in dentry_lease_is_valid()
1049 di->lease_renew_from = jiffies; in dentry_lease_is_valid()
1070 struct ceph_dentry_info *di = ceph_dentry(dentry); in dir_lease_is_valid() local
1074 if (ci->i_shared_gen == di->lease_shared_gen) in dir_lease_is_valid()
1079 (unsigned)di->lease_shared_gen, valid); in dir_lease_is_valid()
1130 struct ceph_dentry_info *di = ceph_dentry(dentry); in ceph_d_release() local
1134 if (di->lease_session) in ceph_d_release()
1135 ceph_put_mds_session(di->lease_session); in ceph_d_release()
1136 kmem_cache_free(ceph_dentry_cachep, di); in ceph_d_release()
1293 struct ceph_dentry_info *di = ceph_dentry(dn); in ceph_dentry_lru_add() local
1296 dout("dentry_lru_add %p %p '%pd'\n", di, dn, dn); in ceph_dentry_lru_add()
1299 list_add_tail(&di->lru, &mdsc->dentry_lru); in ceph_dentry_lru_add()
1306 struct ceph_dentry_info *di = ceph_dentry(dn); in ceph_dentry_lru_touch() local
1309 dout("dentry_lru_touch %p %p '%pd' (offset %lld)\n", di, dn, dn, in ceph_dentry_lru_touch()
1310 di->offset); in ceph_dentry_lru_touch()
1313 list_move_tail(&di->lru, &mdsc->dentry_lru); in ceph_dentry_lru_touch()
1319 struct ceph_dentry_info *di = ceph_dentry(dn); in ceph_dentry_lru_del() local
1322 dout("dentry_lru_del %p %p '%pd'\n", di, dn, dn); in ceph_dentry_lru_del()
1325 list_del_init(&di->lru); in ceph_dentry_lru_del()