Home
last modified time | relevance | path

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

12

/Linux-v6.6/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-v6.6/tools/perf/util/
Ddata.c41 if (WARN_ON(!data->is_dir)) in perf_data__create_dir()
91 if (WARN_ON(!data->is_dir)) in perf_data__open_dir()
153 if (WARN_ON(!data->is_dir)) in perf_data__update_dir()
237 static bool is_dir(struct perf_data *data) in is_dir() function
368 data->is_dir = is_dir(data); in perf_data__open()
475 if (!data->is_dir) in perf_data__make_kcore_dir()
509 if (!data->is_dir) in perf_data__kallsyms_name()
528 if (!data->is_dir) in perf_data__guest_kallsyms_name()
Ddata.h33 bool is_dir; member
63 return data->is_dir; in perf_data__is_dir()
/Linux-v6.6/fs/overlayfs/
Dnamei.c23 bool is_dir; member
270 if (d->is_dir || !last_element) { in ovl_lookup_single()
290 d->is_dir = true; in ovl_lookup_single()
769 bool is_dir = d_is_dir(origin); in ovl_lookup_index() local
815 } else if (is_dir && verify) { in ovl_lookup_index()
1024 .is_dir = false, in ovl_lookup()
1048 if (upperdentry && !d.is_dir) { in ovl_lookup()
1091 else if (d.is_dir || !ofs->numdatalayer) in ovl_lookup()
1113 if (upperdentry && !ctr && !ofs->noxattr && d.is_dir) { in ovl_lookup()
1131 ((d.is_dir && ovl_verify_lower(dentry->d_sb)) || in ovl_lookup()
[all …]
Dinode.c165 bool is_dir = S_ISDIR(inode->i_mode); in ovl_getattr() local
190 if (!is_dir || ovl_same_dev(OVL_FS(dentry->d_sb))) { in ovl_getattr()
196 (!is_dir ? STATX_NLINK : 0); in ovl_getattr()
221 (is_dir || lowerstat.nlink == 1))) { in ovl_getattr()
271 if (is_dir && OVL_TYPE_MERGE(type)) in ovl_getattr()
280 if (!is_dir && ovl_test_flag(OVL_INDEX, d_inode(dentry))) in ovl_getattr()
1346 bool is_dir; in ovl_get_inode() local
1357 is_dir = S_ISDIR(realinode->i_mode); in ovl_get_inode()
1361 unsigned int nlink = is_dir ? 1 : realinode->i_nlink; in ovl_get_inode()
1386 if (!is_dir) in ovl_get_inode()
[all …]
Ddir.c800 static int ovl_remove_upper(struct dentry *dentry, bool is_dir, in ovl_remove_upper() argument
829 if (is_dir) in ovl_remove_upper()
880 static int ovl_do_remove(struct dentry *dentry, bool is_dir) in ovl_do_remove() argument
888 if (is_dir && (lower_positive || !ovl_pure_upper(dentry))) { in ovl_do_remove()
908 err = ovl_remove_upper(dentry, is_dir, &list); in ovl_do_remove()
913 if (is_dir) in ovl_do_remove()
1092 bool is_dir = d_is_dir(old); in ovl_rename() local
1128 } else if (is_dir && ovl_dentry_is_whiteout(new)) { in ovl_rename()
1241 else if (is_dir && !old_opaque && ovl_type_merge(new->d_parent)) in ovl_rename()
/Linux-v6.6/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()
940 int err, is_dir, corrupt = 0; in vfat_rename() local
957 is_dir = S_ISDIR(old_inode->i_mode); in vfat_rename()
960 if (is_dir) { in vfat_rename()
968 err = vfat_add_entry(new_dir, &new_dentry->d_name, is_dir, 0, in vfat_rename()
1000 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-v6.6/include/linux/
Dfsnotify_backend.h697 static inline bool fsnotify_mask_applicable(__u32 mask, bool is_dir, in fsnotify_mask_applicable() argument
701 if (is_dir && !(mask & FS_ISDIR)) in fsnotify_mask_applicable()
717 bool is_dir, int iter_type) in fsnotify_effective_ignore_mask() argument
725 if (!is_dir && iter_type != FSNOTIFY_ITER_TYPE_PARENT) in fsnotify_effective_ignore_mask()
729 if (!fsnotify_mask_applicable(ignore_mask, is_dir, iter_type)) in fsnotify_effective_ignore_mask()
/Linux-v6.6/tools/perf/pmu-events/
Djevents.py565 if item.is_dir():
603 if item.is_dir():
608 if item.is_dir() and is_leaf_dir(item.path):
1168 if _args.model != 'all' and item.is_dir():
1176 if item.is_dir():
1215 if not item.is_dir():
/Linux-v6.6/fs/vboxsf/
Ddir.c257 umode_t mode, bool is_dir, bool excl, u64 *handle_ret) in vboxsf_dir_create() argument
266 if (is_dir) in vboxsf_dir_create()
272 (is_dir ? SHFL_TYPE_DIRECTORY : SHFL_TYPE_FILE); in vboxsf_dir_create()
/Linux-v6.6/fs/ocfs2/
Djournal.h418 static inline int ocfs2_mknod_credits(struct super_block *sb, int is_dir, in ocfs2_mknod_credits() argument
423 if (is_dir) in ocfs2_mknod_credits()
/Linux-v6.6/fs/smb/server/
Dsmbacl.c1009 bool is_dir = S_ISDIR(d_inode(path->dentry)->i_mode); in smb_inherit_dacl() local
1059 if (!smb_inherit_flags(flags, is_dir)) in smb_inherit_dacl()
1061 if (is_dir) { in smb_inherit_dacl()
1084 if (is_dir && creator && flags & CONTAINER_INHERIT_ACE) { in smb_inherit_dacl()
1092 } else if (is_dir && !(parent_aces->flags & NO_PROPAGATE_INHERIT_ACE)) { in smb_inherit_dacl()
1176 bool smb_inherit_flags(int flags, bool is_dir) in smb_inherit_flags() argument
1178 if (!is_dir) in smb_inherit_flags()
Dsmbacl.h203 bool smb_inherit_flags(int flags, bool is_dir);
/Linux-v6.6/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()
/Linux-v6.6/scripts/
Drustdoc_test_gen.rs82 if srctree.join("rust/kernel").join(&prefix).is_dir() { in find_real_path()
/Linux-v6.6/fs/f2fs/
Dnode.h402 static inline void set_cold_node(struct page *page, bool is_dir) in set_cold_node() argument
407 if (is_dir) in set_cold_node()
Dcheckpoint.c1073 bool is_dir = (type == DIR_INODE); in f2fs_sync_dirty_inodes() local
1076 trace_f2fs_sync_dirty_inodes_enter(sbi->sb, is_dir, in f2fs_sync_dirty_inodes()
1077 get_pages(sbi, is_dir ? in f2fs_sync_dirty_inodes()
1081 trace_f2fs_sync_dirty_inodes_exit(sbi->sb, is_dir, in f2fs_sync_dirty_inodes()
1082 get_pages(sbi, is_dir ? in f2fs_sync_dirty_inodes()
1092 trace_f2fs_sync_dirty_inodes_exit(sbi->sb, is_dir, in f2fs_sync_dirty_inodes()
1093 get_pages(sbi, is_dir ? in f2fs_sync_dirty_inodes()
/Linux-v6.6/fs/notify/
Dfsnotify.c328 bool is_dir = mask & FS_ISDIR; in send_to_group() local
349 fsnotify_effective_ignore_mask(mark, is_dir, type); in send_to_group()
/Linux-v6.6/fs/ntfs3/
Dinode.c37 bool is_dir; in ntfs_read_mft() local
102 is_dir = rec->flags & RECORD_FLAG_DIR; in ntfs_read_mft()
105 if (is_dir && ino == MFT_REC_MFT) { in ntfs_read_mft()
214 if (is_dir) { in ntfs_read_mft()
285 if (!is_dir) in ntfs_read_mft()
323 } else if (is_dir && attr->name_len == ARRAY_SIZE(I30_NAME) && in ntfs_read_mft()
358 is_dir = false; in ntfs_read_mft()
/Linux-v6.6/fs/ubifs/
Ddir.c1293 int is_dir = S_ISDIR(old_inode->i_mode); in do_rename() local
1327 if (unlink && is_dir) { in do_rename()
1418 if (is_dir) { in do_rename()
1456 if (is_dir) in do_rename()
1522 if (is_dir) { in do_rename()
/Linux-v6.6/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()
930 if (is_dir(name)) { in conf_write()
/Linux-v6.6/fs/xfs/
Dxfs_inode.c956 int is_dir = S_ISDIR(mode); in xfs_create() local
987 if (is_dir) { in xfs_create()
1023 is_dir ? 2 : 1, rdev, prid, init_xattrs, &ip); in xfs_create()
1046 if (is_dir) { in xfs_create()
2493 int is_dir = S_ISDIR(VFS_I(ip)->i_mode); in xfs_remove() local
2533 if (is_dir) { in xfs_remove()
2599 if (is_dir && xfs_inode_is_filestream(ip)) in xfs_remove()
/Linux-v6.6/tools/bpf/bpftool/
Dmain.h145 int mount_bpffs_for_pin(const char *name, bool is_dir);

12