| /linux/tools/power/acpi/os_specific/service_layers/ |
| H A D | osunixdir.c | 131 if ((S_ISDIR(temp_stat.st_mode) in acpi_os_get_next_filename() 134 || ((!S_ISDIR(temp_stat.st_mode) in acpi_os_get_next_filename()
|
| /linux/tools/power/cpupower/lib/ |
| H A D | cpuidle.c | 301 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in cpuidle_state_count() 305 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in cpuidle_state_count() 308 while (stat(file, &statbuf) == 0 && S_ISDIR(statbuf.st_mode)) { in cpuidle_state_count()
|
| H A D | powercap.c | 99 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) { in powercap_get_driver() 224 if (stat(dent->d_name, &st) != 0 || !S_ISDIR(st.st_mode)) in powercap_read_zone()
|
| /linux/fs/nfs/ |
| H A D | nfs3acl.c | 82 if (S_ISDIR(inode->i_mode)) in nfs3_get_acl() 179 if (acl == NULL && (!S_ISDIR(inode->i_mode) || dfacl == NULL)) in __nfs3_proc_setacls() 193 if (S_ISDIR(inode->i_mode)) { in __nfs3_proc_setacls() 264 if (S_ISDIR(inode->i_mode)) { in nfs3_set_acl()
|
| H A D | nfs4getroot.c | 28 if (!(fattr->valid & NFS_ATTR_FATTR_TYPE) || !S_ISDIR(fattr->mode)) { in nfs4_get_rootfh()
|
| /linux/fs/jfs/ |
| H A D | jfs_inode.c | 56 rc = diAlloc(parent, S_ISDIR(mode), inode); in ialloc() 88 if (S_ISDIR(mode)) { in ialloc()
|
| /linux/tools/power/cpupower/utils/helpers/ |
| H A D | sysfs.c | 362 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in sysfs_get_idlestate_count() 366 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in sysfs_get_idlestate_count() 369 while (stat(file, &statbuf) == 0 && S_ISDIR(statbuf.st_mode)) { in sysfs_get_idlestate_count()
|
| /linux/fs/ |
| H A D | remap_range.c | 295 if (S_ISDIR(inode_in->i_mode) || S_ISDIR(inode_out->i_mode)) in __generic_remap_file_range_prep() 471 if (S_ISDIR(file_inode(dst_file)->i_mode)) in vfs_dedupe_file_range_one() 512 if (S_ISDIR(src->i_mode)) in vfs_dedupe_file_range()
|
| /linux/fs/xfs/scrub/ |
| H A D | parent.c | 172 !S_ISDIR(VFS_I(dp)->i_mode)) { in xchk_parent_validate() 436 if (!S_ISDIR(VFS_I(ip)->i_mode)) { in xchk_parent_iget() 726 if (S_ISDIR(VFS_I(sc->ip)->i_mode)) { in xchk_parent_count_pptrs() 811 if (S_ISDIR(VFS_I(sc->ip)->i_mode)) { in xchk_parent_pptr() 854 if (!S_ISDIR(VFS_I(sc->ip)->i_mode)) in xchk_parent()
|
| H A D | nlinks.c | 190 if (!error && S_ISDIR(VFS_IC(p->ip)->i_mode)) in xchk_nlinks_live_update() 202 if (S_ISDIR(VFS_IC(p->ip)->i_mode) && in xchk_nlinks_live_update() 590 if (S_ISDIR(VFS_I(ip)->i_mode)) in xchk_nlinks_collect() 708 if (!xfs_has_ftype(sc->mp) && S_ISDIR(VFS_I(ip)->i_mode)) in xchk_nlinks_compare_inode() 734 if (S_ISDIR(VFS_I(ip)->i_mode) && actual_nlink > 0) { in xchk_nlinks_compare_inode()
|
| /linux/tools/testing/selftests/ia64/ |
| H A D | aliasing-test.c | 100 if (r == 0 && S_ISDIR(buf.st_mode)) { in scan_tree() 189 if (r == 0 && S_ISDIR(buf.st_mode)) { in scan_rom()
|
| /linux/security/tomoyo/ |
| H A D | realpath.c | 105 if (inode && S_ISDIR(inode->i_mode)) { in tomoyo_get_absolute_path() 135 if (inode && S_ISDIR(inode->i_mode)) { in tomoyo_get_dentry_path()
|
| /linux/fs/overlayfs/ |
| H A D | inode.c | 139 if (S_ISDIR(dentry->d_inode->i_mode)) { in ovl_map_dev_ino() 179 bool is_dir = S_ISDIR(inode->i_mode); in ovl_getattr() 551 if (type == ACL_TYPE_DEFAULT && !S_ISDIR(inode->i_mode)) in ovl_set_acl() 833 if (S_ISDIR(inode->i_mode)) in ovl_lockdep_annotate_inode_mutex_key() 881 if (S_ISDIR(inode->i_mode)) { in ovl_map_ino() 1072 if (S_ISDIR(inode->i_mode) && strict) { in ovl_verify_inode() 1236 is_dir = S_ISDIR(realinode->i_mode); in ovl_get_inode()
|
| H A D | copy_up.c | 671 (S_ISREG(c->stat.mode) || S_ISDIR(c->stat.mode))) { in ovl_copy_up_metadata() 795 if (S_ISDIR(c->stat.mode) && c->indexed) { in ovl_copy_up_workdir() 838 if (S_ISDIR(inode->i_mode)) in ovl_copy_up_workdir() 948 if (S_ISDIR(c->stat.mode)) in ovl_do_copy_up() 954 if (S_ISDIR(c->stat.mode) || c->stat.nlink == 1 || to_index) { in ovl_do_copy_up() 1166 (S_ISREG(ctx.stat.mode) || S_ISDIR(ctx.stat.mode)); in ovl_copy_up_one()
|
| /linux/fs/crypto/ |
| H A D | keysetup.c | 89 if (S_ISDIR(inode->i_mode) || S_ISLNK(inode->i_mode)) in select_encryption_mode() 703 S_ISDIR(inode->i_mode)); in fscrypt_get_encryption_info() 756 !S_ISDIR(inode->i_mode) && in fscrypt_prepare_new_inode() 765 S_ISDIR(inode->i_mode)); in fscrypt_prepare_new_inode()
|
| /linux/fs/ext4/ |
| H A D | ialloc.c | 277 is_directory = S_ISDIR(inode->i_mode); in ext4_free_inode() 457 if (S_ISDIR(mode) && in find_group_orlov() 889 nblocks += (S_ISDIR(mode) ? 2 : 1) * in ext4_xattr_credits_for_new_inode() 1027 if (S_ISDIR(mode)) in __ext4_new_inode() 1228 if (S_ISDIR(mode)) { in __ext4_new_inode() 1251 if (S_ISDIR(mode)) in __ext4_new_inode() 1313 (!(ei->i_flags & (EXT4_DAX_FL|EXT4_EA_INODE_FL)) || S_ISDIR(mode))) in __ext4_new_inode() 1343 if (S_ISDIR(mode) || S_ISREG(mode) || S_ISLNK(mode)) { in __ext4_new_inode()
|
| /linux/scripts/dtc/ |
| H A D | fstree.c | 53 } else if (S_ISDIR(st.st_mode)) { in read_fstree()
|
| /linux/include/linux/ |
| H A D | nfs_fs.h | 382 return S_ISDIR(inode->i_mode) ? nfss->acdirmin : nfss->acregmin; in NFS_MINATTRTIMEO() 388 return S_ISDIR(inode->i_mode) ? nfss->acdirmax : nfss->acregmax; in NFS_MAXATTRTIMEO() 404 if (S_ISDIR(inode->i_mode)) in nfs_mark_for_revalidate()
|
| /linux/tools/testing/selftests/powerpc/papr_attributes/ |
| H A D | attr_test.c | 71 FAIL_IF(!S_ISDIR(s.st_mode)); in verify_energy_info()
|
| /linux/fs/notify/dnotify/ |
| H A D | dnotify.c | 161 if (!S_ISDIR(inode->i_mode)) in dnotify_flush() 288 if (!S_ISDIR(inode->i_mode)) { in fcntl_dirnotify()
|
| /linux/include/uapi/linux/ |
| H A D | stat.h | 23 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) macro
|
| /linux/tools/include/uapi/linux/ |
| H A D | stat.h | 23 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) macro
|
| /linux/tools/perf/trace/beauty/include/uapi/linux/ |
| H A D | stat.h | 23 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) macro
|
| /linux/tools/include/nolibc/ |
| H A D | types.h | 54 #define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR) 39 #define S_ISDIR( global() macro
|
| /linux/fs/btrfs/ |
| H A D | acl.c | 71 if (!S_ISDIR(inode->i_mode)) in __btrfs_set_acl()
|