Lines Matching defs:root
167 * containing a super root from a given super block, and initializes
228 * load_nilfs() searches and load the latest super root,
303 nilfs_err(sb, "error %d while loading super root", err);
368 nilfs_err(sb, "error %d while searching super root", err);
822 struct nilfs_root *root;
827 root = rb_entry(n, struct nilfs_root, rb_node);
829 if (cno < root->cno) {
831 } else if (cno > root->cno) {
834 refcount_inc(&root->count);
836 return root;
848 struct nilfs_root *root, *new;
851 root = nilfs_lookup_root(nilfs, cno);
852 if (root)
853 return root;
855 new = kzalloc(sizeof(*root), GFP_KERNEL);
866 root = rb_entry(parent, struct nilfs_root, rb_node);
868 if (cno < root->cno) {
870 } else if (cno > root->cno) {
873 refcount_inc(&root->count);
876 return root;
901 void nilfs_put_root(struct nilfs_root *root)
903 struct the_nilfs *nilfs = root->nilfs;
905 if (refcount_dec_and_lock(&root->count, &nilfs->ns_cptree_lock)) {
906 rb_erase(&root->rb_node, &nilfs->ns_cptree);
909 nilfs_sysfs_delete_snapshot_group(root);
910 iput(root->ifile);
912 kfree(root);