Home
last modified time | relevance | path

Searched refs:realm (Results 1 – 7 of 7) sorted by relevance

/fs/ceph/
Dsnap.c66 struct ceph_snap_realm *realm) in ceph_get_snap_realm() argument
76 if (atomic_inc_not_zero(&realm->nref)) in ceph_get_snap_realm()
80 if (atomic_inc_return(&realm->nref) == 1) in ceph_get_snap_realm()
81 list_del_init(&realm->empty_item); in ceph_get_snap_realm()
116 struct ceph_snap_realm *realm; in ceph_create_snap_realm() local
120 realm = kzalloc(sizeof(*realm), GFP_NOFS); in ceph_create_snap_realm()
121 if (!realm) in ceph_create_snap_realm()
124 atomic_set(&realm->nref, 1); /* for caller */ in ceph_create_snap_realm()
125 realm->ino = ino; in ceph_create_snap_realm()
126 INIT_LIST_HEAD(&realm->children); in ceph_create_snap_realm()
[all …]
Dquota.c128 struct ceph_snap_realm *realm) in lookup_quotarealm_inode() argument
133 qri = find_quotarealm_inode(mdsc, realm->ino); in lookup_quotarealm_inode()
158 in = ceph_lookup_inode(sb, realm->ino); in lookup_quotarealm_inode()
163 realm->ino, PTR_ERR(in)); in lookup_quotarealm_inode()
213 struct ceph_snap_realm *realm, *next; in get_quota_realm() local
221 realm = ceph_inode(inode)->i_snap_realm; in get_quota_realm()
222 if (realm) in get_quota_realm()
223 ceph_get_snap_realm(mdsc, realm); in get_quota_realm()
227 while (realm) { in get_quota_realm()
230 spin_lock(&realm->inodes_with_caps_lock); in get_quota_realm()
[all …]
Dcaps.c706 struct ceph_snap_realm *realm = ceph_lookup_snap_realm(mdsc, in ceph_add_cap() local
708 if (realm) { in ceph_add_cap()
716 spin_lock(&realm->inodes_with_caps_lock); in ceph_add_cap()
718 &realm->inodes_with_caps); in ceph_add_cap()
719 ci->i_snap_realm = realm; in ceph_add_cap()
720 if (realm->ino == ci->i_vino.ino) in ceph_add_cap()
721 realm->inode = inode; in ceph_add_cap()
722 spin_unlock(&realm->inodes_with_caps_lock); in ceph_add_cap()
729 WARN_ON(!realm); in ceph_add_cap()
1121 struct ceph_snap_realm *realm = ci->i_snap_realm; in drop_inode_snap_realm() local
[all …]
Dinode.c570 struct ceph_snap_realm *realm = ci->i_snap_realm; in ceph_evict_inode() local
572 realm); in ceph_evict_inode()
573 spin_lock(&realm->inodes_with_caps_lock); in ceph_evict_inode()
576 if (realm->ino == ci->i_vino.ino) in ceph_evict_inode()
577 realm->inode = NULL; in ceph_evict_inode()
578 spin_unlock(&realm->inodes_with_caps_lock); in ceph_evict_inode()
579 ceph_put_snap_realm(mdsc, realm); in ceph_evict_inode()
986 le64_to_cpu(info->cap.realm), in ceph_fill_inode()
Dmds_client.c3129 struct ceph_snap_realm *realm; in handle_reply() local
3248 realm = NULL; in handle_reply()
3254 &realm); in handle_reply()
3273 if (realm) in handle_reply()
3274 ceph_put_snap_realm(mdsc, realm); in handle_reply()
3923 struct ceph_snap_realm *realm = in encode_snap_realms() local
3948 realm->ino, realm->seq, realm->parent_ino); in encode_snap_realms()
3949 sr_rec.ino = cpu_to_le64(realm->ino); in encode_snap_realms()
3950 sr_rec.seq = cpu_to_le64(realm->seq); in encode_snap_realms()
3951 sr_rec.parent = cpu_to_le64(realm->parent_ino); in encode_snap_realms()
Dsuper.h920 struct ceph_snap_realm *realm);
922 struct ceph_snap_realm *realm);
Dfile.c610 in.cap.realm = cpu_to_le64(ci->i_snap_realm->ino); in ceph_finish_async_create()