Home
last modified time | relevance | path

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

12

/linux-5.19.10/tools/testing/selftests/exec/
Dnon-regular.c16 int is_dir) in rm() argument
20 if (is_dir) in rm()
38 int is_dir; in FIXTURE() local
45 int is_dir; in FIXTURE_VARIANT() local
90 .is_dir = 1, in FIXTURE_VARIANT_ADD()
150 self->is_dir = variant->is_dir; in FIXTURE_SETUP()
152 rm(_metadata, self->pathname, variant->is_dir); in FIXTURE_SETUP()
158 rm(_metadata, self->pathname, self->is_dir); in FIXTURE_TEARDOWN()
/linux-5.19.10/tools/perf/util/
Ddata.c40 if (WARN_ON(!data->is_dir)) in perf_data__create_dir()
90 if (WARN_ON(!data->is_dir)) in perf_data__open_dir()
150 if (WARN_ON(!data->is_dir)) in perf_data__update_dir()
234 static bool is_dir(struct perf_data *data) in is_dir() function
365 data->is_dir = is_dir(data); in perf_data__open()
472 if (!data->is_dir) in perf_data__make_kcore_dir()
501 if (!data->is_dir) in perf_data__kallsyms_name()
Ddata.h32 bool is_dir; member
62 return data->is_dir; in perf_data__is_dir()
/linux-5.19.10/fs/overlayfs/
Dnamei.c21 bool is_dir; member
263 if (d->is_dir || !last_element) { in ovl_lookup_single()
283 d->is_dir = true; in ovl_lookup_single()
706 bool is_dir = d_is_dir(origin); in ovl_lookup_index() local
752 } else if (is_dir && verify) { in ovl_lookup_index()
852 .is_dir = false, in ovl_lookup()
876 if (upperdentry && !d.is_dir) { in ovl_lookup()
941 if (upperdentry && !ctr && !ofs->noxattr && d.is_dir) { in ovl_lookup()
959 ((d.is_dir && ovl_verify_lower(dentry->d_sb)) || in ovl_lookup()
960 (!d.is_dir && ofs->config.index && origin_path))) { in ovl_lookup()
[all …]
Dinode.c162 bool is_dir = S_ISDIR(inode->i_mode); in ovl_getattr() local
187 if (!is_dir || ovl_same_dev(dentry->d_sb)) { in ovl_getattr()
193 (!is_dir ? STATX_NLINK : 0); in ovl_getattr()
218 (is_dir || lowerstat.nlink == 1))) { in ovl_getattr()
261 if (is_dir && OVL_TYPE_MERGE(type)) in ovl_getattr()
270 if (!is_dir && ovl_test_flag(OVL_INDEX, d_inode(dentry))) in ovl_getattr()
1122 bool is_dir; in ovl_get_inode() local
1133 is_dir = S_ISDIR(realinode->i_mode); in ovl_get_inode()
1137 unsigned int nlink = is_dir ? 1 : realinode->i_nlink; in ovl_get_inode()
1160 if (!is_dir) in ovl_get_inode()
[all …]
Ddir.c803 static int ovl_remove_upper(struct dentry *dentry, bool is_dir, in ovl_remove_upper() argument
832 if (is_dir) in ovl_remove_upper()
883 static int ovl_do_remove(struct dentry *dentry, bool is_dir) in ovl_do_remove() argument
891 if (is_dir && (lower_positive || !ovl_pure_upper(dentry))) { in ovl_do_remove()
911 err = ovl_remove_upper(dentry, is_dir, &list); in ovl_do_remove()
916 if (is_dir) in ovl_do_remove()
1095 bool is_dir = d_is_dir(old); in ovl_rename() local
1131 } else if (is_dir && ovl_dentry_is_whiteout(new)) { in ovl_rename()
1244 else if (is_dir && !old_opaque && ovl_type_merge(new->d_parent)) in ovl_rename()
/linux-5.19.10/fs/fat/
Dnamei_msdos.c228 int is_dir, int is_hid, int cluster, in msdos_add_entry() argument
237 de.attr = is_dir ? ATTR_DIR : ATTR_ARCH; in msdos_add_entry()
439 int err, old_attrs, is_dir, update_dotdot, corrupt = 0; in do_msdos_rename() local
451 is_dir = S_ISDIR(old_inode->i_mode); in do_msdos_rename()
452 update_dotdot = (is_dir && old_dir != new_dir); in do_msdos_rename()
496 if (is_dir) { in do_msdos_rename()
504 err = msdos_add_entry(new_dir, new_name, is_dir, is_hid, 0, in do_msdos_rename()
551 if (is_dir) in do_msdos_rename()
Dnamei_vfat.c580 int len, int is_dir, int cluster, in vfat_build_slots() argument
643 de->attr = is_dir ? ATTR_DIR : ATTR_ARCH; in vfat_build_slots()
657 int is_dir, int cluster, struct timespec64 *ts, in vfat_add_entry() argument
672 err = vfat_build_slots(dir, qname->name, len, is_dir, cluster, ts, in vfat_add_entry()
902 int err, is_dir, update_dotdot, corrupt = 0; in vfat_rename() local
916 is_dir = S_ISDIR(old_inode->i_mode); in vfat_rename()
917 update_dotdot = (is_dir && old_dir != new_dir); in vfat_rename()
927 if (is_dir) { in vfat_rename()
935 err = vfat_add_entry(new_dir, &new_dentry->d_name, is_dir, 0, in vfat_rename()
978 if (is_dir) in vfat_rename()
Dfile.c39 int is_dir = S_ISDIR(inode->i_mode); in fat_ioctl_set_attributes() local
62 (is_dir ? ATTR_DIR : 0); in fat_ioctl_set_attributes()
68 if (is_dir) in fat_ioctl_set_attributes()
/linux-5.19.10/fs/vboxsf/
Ddir.c256 umode_t mode, bool is_dir, bool excl, u64 *handle_ret) in vboxsf_dir_create() argument
265 if (is_dir) in vboxsf_dir_create()
271 (is_dir ? SHFL_TYPE_DIRECTORY : SHFL_TYPE_FILE); in vboxsf_dir_create()
/linux-5.19.10/fs/ocfs2/
Djournal.h417 static inline int ocfs2_mknod_credits(struct super_block *sb, int is_dir, in ocfs2_mknod_credits() argument
422 if (is_dir) in ocfs2_mknod_credits()
/linux-5.19.10/fs/ksmbd/
Dsmbacl.c1007 bool is_dir = S_ISDIR(d_inode(path->dentry)->i_mode); in smb_inherit_dacl() local
1057 if (!smb_inherit_flags(flags, is_dir)) in smb_inherit_dacl()
1059 if (is_dir) { in smb_inherit_dacl()
1082 if (is_dir && creator && flags & CONTAINER_INHERIT_ACE) { in smb_inherit_dacl()
1090 } else if (is_dir && !(parent_aces->flags & NO_PROPAGATE_INHERIT_ACE)) { in smb_inherit_dacl()
1175 bool smb_inherit_flags(int flags, bool is_dir) in smb_inherit_flags() argument
1177 if (!is_dir) in smb_inherit_flags()
Dsmbacl.h203 bool smb_inherit_flags(int flags, bool is_dir);
/linux-5.19.10/tools/perf/pmu-events/
Djevents.c1072 int is_dir = typeflag == FTW_D; in process_one_file() local
1077 if (level >= 2 && is_dir) { in process_one_file()
1099 is_file ? "f" : is_dir ? "d" : "x", in process_one_file()
1108 if ((level == 1 && is_dir && is_leaf_dir(fpath)) || in process_one_file()
1109 (level >= 2 && is_dir && is_leaf_dir(fpath))) { in process_one_file()
/linux-5.19.10/security/tomoyo/
Dutil.c683 ptr->is_dir = len && (name[len - 1] == '/'); in tomoyo_fill_path_info()
948 if (filename->is_dir != pattern->is_dir) in tomoyo_path_matches_pattern()
Dcommon.h508 bool is_dir; /* = tomoyo_strendswith(name, "/") */ member
/linux-5.19.10/fs/f2fs/
Dnode.h404 static inline void set_cold_node(struct page *page, bool is_dir) in set_cold_node() argument
409 if (is_dir) in set_cold_node()
Dcheckpoint.c1063 bool is_dir = (type == DIR_INODE); in f2fs_sync_dirty_inodes() local
1066 trace_f2fs_sync_dirty_inodes_enter(sbi->sb, is_dir, in f2fs_sync_dirty_inodes()
1067 get_pages(sbi, is_dir ? in f2fs_sync_dirty_inodes()
1071 trace_f2fs_sync_dirty_inodes_exit(sbi->sb, is_dir, in f2fs_sync_dirty_inodes()
1072 get_pages(sbi, is_dir ? in f2fs_sync_dirty_inodes()
1082 trace_f2fs_sync_dirty_inodes_exit(sbi->sb, is_dir, in f2fs_sync_dirty_inodes()
1083 get_pages(sbi, is_dir ? in f2fs_sync_dirty_inodes()
/linux-5.19.10/scripts/kconfig/
Dconfdata.c32 static bool is_dir(const char *path) in is_dir() function
116 if (!is_dir(tmp) && mkdir(tmp, 0755)) in make_parent_dir()
844 if (is_dir(name)) { in conf_write()
/linux-5.19.10/fs/ubifs/
Ddir.c1295 int is_dir = S_ISDIR(old_inode->i_mode); in do_rename() local
1328 if (unlink && is_dir) { in do_rename()
1420 if (is_dir) { in do_rename()
1460 if (is_dir) in do_rename()
1527 if (is_dir) { in do_rename()
/linux-5.19.10/fs/ntfs3/
Dinode.c37 bool is_dir; in ntfs_read_mft() local
99 is_dir = rec->flags & RECORD_FLAG_DIR; in ntfs_read_mft()
188 if (is_dir) { in ntfs_read_mft()
260 if (!is_dir) in ntfs_read_mft()
297 } else if (is_dir && attr->name_len == ARRAY_SIZE(I30_NAME) && in ntfs_read_mft()
332 is_dir = false; in ntfs_read_mft()
/linux-5.19.10/fs/xfs/
Dxfs_inode.c957 int is_dir = S_ISDIR(mode); in xfs_create() local
988 if (is_dir) { in xfs_create()
1024 is_dir ? 2 : 1, rdev, prid, init_xattrs, &ip); in xfs_create()
1047 if (is_dir) { in xfs_create()
2733 int is_dir = S_ISDIR(VFS_I(ip)->i_mode); in xfs_remove() local
2773 if (is_dir) { in xfs_remove()
2839 if (is_dir && xfs_inode_is_filestream(ip)) in xfs_remove()
/linux-5.19.10/fs/exfat/
Dinode.c28 bool is_dir = (ei->type == TYPE_DIR) ? true : false; in __exfat_write_inode() local
39 if (is_dir && ei->dir.dir == sbi->root_dir && ei->entry == -1) in __exfat_write_inode()
/linux-5.19.10/fs/
Dnamei.c4634 bool is_dir = d_is_dir(old_dentry); in vfs_rename() local
4644 error = may_delete(rd->old_mnt_userns, old_dir, old_dentry, is_dir); in vfs_rename()
4655 new_dentry, is_dir); in vfs_rename()
4671 if (is_dir) { in vfs_rename()
4692 if (!is_dir || (flags & RENAME_EXCHANGE)) in vfs_rename()
4707 if (is_dir && !new_is_dir && new_dir->i_nlink >= max_links) in vfs_rename()
4709 if ((flags & RENAME_EXCHANGE) && !is_dir && new_is_dir && in vfs_rename()
4713 if (!is_dir) { in vfs_rename()
4729 if (is_dir) { in vfs_rename()
4743 if (!is_dir || (flags & RENAME_EXCHANGE)) in vfs_rename()
[all …]
/linux-5.19.10/fs/ext4/
Dnamei.c3537 bool is_dir; member
4068 old.is_dir = true; in ext4_cross_rename()
4074 new.is_dir = true; in ext4_cross_rename()
4084 if (old.dir != new.dir && old.is_dir != new.is_dir) { in ext4_cross_rename()
4085 old.dir_nlink_delta = old.is_dir ? -1 : 1; in ext4_cross_rename()

12