Lines Matching defs:dir
482 /* Flags that are appropriate for regular files (all but dir-specific ones). */
1804 EXT4_STATE_NEWENTRY, /* File just added to dir */
2295 #define is_dx(dir) (ext4_has_feature_dir_index((dir)->i_sb) && \
2296 ext4_test_inode_flag((dir), EXT4_INODE_INDEX))
2297 #define EXT4_DIR_LINK_MAX(dir) unlikely((dir)->i_nlink >= EXT4_LINK_MAX && \
2298 !(ext4_has_feature_dir_nlink((dir)->i_sb) && is_dx(dir)))
2299 #define EXT4_DIR_LINK_EMPTY(dir) ((dir)->i_nlink == 2 || (dir)->i_nlink == 1)
2595 extern void ext4_fname_setup_ci_filename(struct inode *dir,
2613 static inline int ext4_fname_setup_filename(struct inode *dir,
2621 err = fscrypt_setup_filename(dir, iname, lookup, &name);
2628 ext4_fname_setup_ci_filename(dir, iname, &fname->cf_name);
2633 static inline int ext4_fname_prepare_lookup(struct inode *dir,
2640 err = fscrypt_prepare_lookup(dir, dentry, &name);
2647 ext4_fname_setup_ci_filename(dir, &dentry->d_name, &fname->cf_name);
2669 static inline int ext4_fname_setup_filename(struct inode *dir,
2679 ext4_fname_setup_ci_filename(dir, iname, &fname->cf_name);
2685 static inline int ext4_fname_prepare_lookup(struct inode *dir,
2689 return ext4_fname_setup_filename(dir, &dentry->d_name, 1, fname);
2701 /* dir.c */
2707 #define ext4_check_dir_entry(dir, filp, de, bh, buf, size, offset) \
2708 unlikely(__ext4_check_dir_entry(__func__, __LINE__, (dir), (filp), \
2715 extern int ext4_find_dest_de(struct inode *dir, struct inode *inode,
2744 extern int ext4_check_all_de(struct inode *dir, struct buffer_head *bh,
2751 extern int ext4fs_dirhash(const struct inode *dir, const char *name, int len,
2762 #define ext4_new_inode(handle, dir, mode, qstr, goal, owner, i_flags) \
2763 __ext4_new_inode((handle), (dir), (mode), (qstr), (goal), (owner), \
2765 #define ext4_new_inode_start_handle(dir, mode, qstr, goal, owner, \
2767 __ext4_new_inode(NULL, (dir), (mode), (qstr), (goal), (owner), \
2938 extern int ext4_init_new_dir(handle_t *handle, struct inode *dir,
2949 struct inode *dir,
2953 extern int ext4_generic_delete_entry(struct inode *dir,
3402 /* dir.c */
3443 struct inode *dir, struct inode *inode);
3451 struct inode *dir, ext4_lblk_t block,
3455 extern struct buffer_head *ext4_find_inline_entry(struct inode *dir,
3460 struct inode *dir,
3464 extern bool empty_inline_dir(struct inode *dir, int *has_inline_data);
3500 extern int __ext4_unlink(struct inode *dir, const struct qstr *d_name,
3502 extern int __ext4_link(struct inode *dir, struct inode *inode,