Lines Matching defs:dir
11 #include "dir-item.h"
19 * The name is not copied into the dir item, you have to do that yourself.
103 * both indexes. 'dir' indicates which objectid to insert it into,
110 const struct fscrypt_str *name, struct btrfs_inode *dir,
115 struct btrfs_root *root = dir->root;
124 key.objectid = btrfs_ino(dir);
144 if (IS_ENCRYPTED(&dir->vfs_inode))
166 ret2 = btrfs_insert_delayed_dir_index(trans, name->name, name->len, dir,
202 * @dir: The inode number (objectid) of the directory.
209 * Returns: NULL if the dir item does not exists, an error pointer if an error
210 * happened, or a pointer to a dir item if a dir item exists for the given name.
214 struct btrfs_path *path, u64 dir,
221 key.objectid = dir;
233 int btrfs_check_dir_item_collision(struct btrfs_root *root, u64 dir,
248 key.objectid = dir;
295 * @dir: The inode number (objectid) of the directory.
303 * Returns: NULL if the dir index item does not exists, an error pointer if an
304 * error happened, or a pointer to a dir item if the dir index item exists and
310 struct btrfs_path *path, u64 dir,
316 key.objectid = dir;
358 struct btrfs_path *path, u64 dir,
365 key.objectid = dir;
378 * this walks through all the entries in a dir item and finds one