Lines Matching refs:root
18 static int show_dir(struct btrfs_root *root, struct extent_buffer *eb, in show_dir() argument
21 struct btrfs_fs_info *fs_info = root->fs_info; in show_dir()
62 ret = btrfs_search_slot(NULL, root, &key, &path, 0, 0); in show_dir()
85 ret = btrfs_readlink(root, key.objectid, target); in show_dir()
137 struct btrfs_root *root = fs_info->fs_root; in btrfs_ls() local
144 path, &root, &ino, &type, 40); in btrfs_ls()
154 ret = btrfs_iter_dir(root, ino, show_dir); in btrfs_ls()
165 struct btrfs_root *root; in btrfs_exists() local
173 file, &root, &ino, &type, 40); in btrfs_exists()
186 struct btrfs_root *root; in btrfs_size() local
194 file, &root, &ino, &type, 40); in btrfs_size()
208 ret = btrfs_search_slot(NULL, root, &key, &path, 0, 0); in btrfs_size()
230 struct btrfs_root *root; in btrfs_read() local
238 file, &root, &ino, &type, 40); in btrfs_read()
261 ret = btrfs_file_read(root, ino, offset, len, buf); in btrfs_read()