/*
- * find (or create) a frag in the tree
+ * find/create a frag in the tree
*/
-struct ceph_inode_frag *__ceph_get_frag(struct ceph_inode_info *ci, u32 f)
+struct ceph_inode_frag *__get_or_create_frag(struct ceph_inode_info *ci, u32 f)
{
struct rb_node **p;
struct rb_node *parent = NULL;
/* find/add this frag to store mds delegation info */
- frag = __ceph_get_frag(ci, id);
+ frag = __get_or_create_frag(ci, id);
if (IS_ERR(frag)) {
derr(0, "fill_dirfrag ENOMEM on mds ref %llx.%llx frag %x\n",
ceph_vinop(inode), le32_to_cpu(dirinfo->frag));
nsplits = le32_to_cpu(info->fragtree.nsplits);
for (i = 0; i < nsplits; i++) {
u32 id = le32_to_cpu(info->fragtree.splits[i].frag);
- struct ceph_inode_frag *frag = __ceph_get_frag(ci, id);
+ struct ceph_inode_frag *frag = __get_or_create_frag(ci,id);
if (IS_ERR(frag)) {
derr(0,"ENOMEM on ino %llx.%llx frag %x\n",
ceph_vinop(inode), id);