Home
last modified time | relevance | path

Searched refs:is_dir (Results 1 – 18 of 18) sorted by relevance

/Linux-v4.19/fs/overlayfs/
Dnamei.c22 bool is_dir; member
234 if (d->is_dir || !last_element) { in ovl_lookup_single()
248 d->is_dir = true; in ovl_lookup_single()
675 bool is_dir = d_is_dir(origin); in ovl_lookup_index() local
722 } else if (is_dir && verify) { in ovl_lookup_index()
821 .is_dir = false, in ovl_lookup()
844 if (upperdentry && !d.is_dir) { in ovl_lookup()
904 if (upperdentry && !ctr && !ofs->noxattr && d.is_dir) { in ovl_lookup()
922 ((d.is_dir && ovl_verify_lower(dentry->d_sb)) || in ovl_lookup()
923 (!d.is_dir && ofs->config.index && origin_path))) { in ovl_lookup()
[all …]
Dinode.c151 bool is_dir = S_ISDIR(dentry->d_inode->i_mode); in ovl_getattr() local
174 if (!is_dir || samefs || ovl_xino_bits(dentry->d_sb)) { in ovl_getattr()
180 (!is_dir ? STATX_NLINK : 0); in ovl_getattr()
205 (is_dir || lowerstat.nlink == 1))) { in ovl_getattr()
250 if (is_dir && OVL_TYPE_MERGE(type)) in ovl_getattr()
259 if (!is_dir && ovl_test_flag(OVL_INDEX, d_inode(dentry))) in ovl_getattr()
833 bool is_dir, metacopy = false; in ovl_get_inode() local
844 is_dir = S_ISDIR(realinode->i_mode); in ovl_get_inode()
848 unsigned int nlink = is_dir ? 1 : realinode->i_nlink; in ovl_get_inode()
871 if (!is_dir) in ovl_get_inode()
[all …]
Ddir.c750 static int ovl_remove_upper(struct dentry *dentry, bool is_dir, in ovl_remove_upper() argument
778 if (is_dir) in ovl_remove_upper()
807 static int ovl_do_remove(struct dentry *dentry, bool is_dir) in ovl_do_remove() argument
817 if (is_dir && (lower_positive || !ovl_pure_upper(dentry))) { in ovl_do_remove()
837 err = ovl_remove_upper(dentry, is_dir, &list); in ovl_do_remove()
842 if (is_dir) in ovl_do_remove()
1021 bool is_dir = d_is_dir(old); in ovl_rename() local
1056 } else if (is_dir && ovl_dentry_is_whiteout(new)) { in ovl_rename()
1163 else if (is_dir && !old_opaque && ovl_type_merge(new->d_parent)) in ovl_rename()
/Linux-v4.19/fs/fat/
Dnamei_msdos.c227 int is_dir, int is_hid, int cluster, in msdos_add_entry() argument
236 de.attr = is_dir ? ATTR_DIR : ATTR_ARCH; in msdos_add_entry()
437 int err, old_attrs, is_dir, update_dotdot, corrupt = 0; in do_msdos_rename() local
449 is_dir = S_ISDIR(old_inode->i_mode); in do_msdos_rename()
450 update_dotdot = (is_dir && old_dir != new_dir); in do_msdos_rename()
494 if (is_dir) { in do_msdos_rename()
502 err = msdos_add_entry(new_dir, new_name, is_dir, is_hid, 0, in do_msdos_rename()
549 if (is_dir) in do_msdos_rename()
Dnamei_vfat.c579 int len, int is_dir, int cluster, in vfat_build_slots() argument
642 de->attr = is_dir ? ATTR_DIR : ATTR_ARCH; in vfat_build_slots()
656 int is_dir, int cluster, struct timespec64 *ts, in vfat_add_entry() argument
671 err = vfat_build_slots(dir, qname->name, len, is_dir, cluster, ts, in vfat_add_entry()
904 int err, is_dir, update_dotdot, corrupt = 0; in vfat_rename() local
918 is_dir = S_ISDIR(old_inode->i_mode); in vfat_rename()
919 update_dotdot = (is_dir && old_dir != new_dir); in vfat_rename()
929 if (is_dir) { in vfat_rename()
937 err = vfat_add_entry(new_dir, &new_dentry->d_name, is_dir, 0, in vfat_rename()
980 if (is_dir) in vfat_rename()
Dfile.c38 int is_dir = S_ISDIR(inode->i_mode); in fat_ioctl_set_attributes() local
61 (is_dir ? ATTR_DIR : 0); in fat_ioctl_set_attributes()
67 if (is_dir) in fat_ioctl_set_attributes()
/Linux-v4.19/tools/perf/pmu-events/
Djevents.c934 int is_dir = typeflag == FTW_D; in process_one_file() local
939 if (level == 2 && is_dir) { in process_one_file()
956 is_file ? "f" : is_dir ? "d" : "x", in process_one_file()
965 if ((level == 1 && is_dir && is_leaf_dir(fpath)) || in process_one_file()
966 (level == 2 && is_dir)) { in process_one_file()
/Linux-v4.19/security/tomoyo/
Dutil.c649 ptr->is_dir = len && (name[len - 1] == '/'); in tomoyo_fill_path_info()
913 if (filename->is_dir != pattern->is_dir) in tomoyo_path_matches_pattern()
Dcommon.h505 bool is_dir; /* = tomoyo_strendswith(name, "/") */ member
Dfile.c132 if (buf->is_dir) in tomoyo_add_slash()
/Linux-v4.19/fs/f2fs/
Dcheckpoint.c991 bool is_dir = (type == DIR_INODE); in f2fs_sync_dirty_inodes() local
994 trace_f2fs_sync_dirty_inodes_enter(sbi->sb, is_dir, in f2fs_sync_dirty_inodes()
995 get_pages(sbi, is_dir ? in f2fs_sync_dirty_inodes()
1006 trace_f2fs_sync_dirty_inodes_exit(sbi->sb, is_dir, in f2fs_sync_dirty_inodes()
1007 get_pages(sbi, is_dir ? in f2fs_sync_dirty_inodes()
1017 if (is_dir) in f2fs_sync_dirty_inodes()
1022 if (is_dir) in f2fs_sync_dirty_inodes()
Dnode.h431 static inline void set_cold_node(struct page *page, bool is_dir) in set_cold_node() argument
436 if (is_dir) in set_cold_node()
/Linux-v4.19/fs/ocfs2/
Djournal.h433 static inline int ocfs2_mknod_credits(struct super_block *sb, int is_dir, in ocfs2_mknod_credits() argument
438 if (is_dir) in ocfs2_mknod_credits()
/Linux-v4.19/fs/ubifs/
Ddir.c1274 int is_dir = S_ISDIR(old_inode->i_mode); in do_rename() local
1300 if (unlink && is_dir) { in do_rename()
1365 if (is_dir) { in do_rename()
1405 if (is_dir) in do_rename()
1476 if (is_dir) { in do_rename()
/Linux-v4.19/fs/
Dnamei.c3610 bool is_dir = (lookup_flags & LOOKUP_DIRECTORY); in filename_create() local
3650 if (unlikely(!is_dir && last.name[last.len])) { in filename_create()
4396 bool is_dir = d_is_dir(old_dentry); in vfs_rename() local
4406 error = may_delete(old_dir, old_dentry, is_dir); in vfs_rename()
4416 error = may_delete(new_dir, new_dentry, is_dir); in vfs_rename()
4431 if (is_dir) { in vfs_rename()
4450 if (!is_dir || (flags & RENAME_EXCHANGE)) in vfs_rename()
4461 if (is_dir && !new_is_dir && new_dir->i_nlink >= max_links) in vfs_rename()
4463 if ((flags & RENAME_EXCHANGE) && !is_dir && new_is_dir && in vfs_rename()
4467 if (!is_dir) { in vfs_rename()
[all …]
/Linux-v4.19/fs/xfs/
Dxfs_inode.c1140 int is_dir = S_ISDIR(mode); in xfs_create() local
1170 if (is_dir) { in xfs_create()
1209 error = xfs_dir_ialloc(&tp, dp, mode, is_dir ? 2 : 1, rdev, prid, &ip); in xfs_create()
1233 if (is_dir) { in xfs_create()
2530 int is_dir = S_ISDIR(VFS_I(ip)->i_mode); in xfs_remove() local
2576 if (is_dir) { in xfs_remove()
2629 if (is_dir && xfs_inode_is_filestream(ip)) in xfs_remove()
/Linux-v4.19/scripts/kconfig/
Dconfdata.c28 static bool is_dir(const char *path) in is_dir() function
66 if (!is_dir(tmp) && mkdir(tmp, 0755)) in make_parent_dir()
792 if (is_dir(name)) { in conf_write()
/Linux-v4.19/fs/ext4/
Dnamei.c3272 bool is_dir; member
3739 old.is_dir = true; in ext4_cross_rename()
3745 new.is_dir = true; in ext4_cross_rename()
3755 if (old.dir != new.dir && old.is_dir != new.is_dir) { in ext4_cross_rename()
3756 old.dir_nlink_delta = old.is_dir ? -1 : 1; in ext4_cross_rename()