Home
last modified time | relevance | path

Searched refs:S_ISDIR (Results 1 – 25 of 133) sorted by relevance

123456

/linux/tools/power/acpi/os_specific/service_layers/
H A Dosunixdir.c131 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 Dcpuidle.c301 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 Dpowercap.c99 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 Dnfs3acl.c82 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 Dnfs4getroot.c28 if (!(fattr->valid & NFS_ATTR_FATTR_TYPE) || !S_ISDIR(fattr->mode)) { in nfs4_get_rootfh()
/linux/fs/jfs/
H A Djfs_inode.c56 rc = diAlloc(parent, S_ISDIR(mode), inode); in ialloc()
88 if (S_ISDIR(mode)) { in ialloc()
/linux/tools/power/cpupower/utils/helpers/
H A Dsysfs.c362 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 Dremap_range.c295 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 Dparent.c172 !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 Dnlinks.c190 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 Daliasing-test.c100 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 Drealpath.c105 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 Dinode.c139 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 Dcopy_up.c671 (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 Dkeysetup.c89 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 Dialloc.c277 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 Dfstree.c53 } else if (S_ISDIR(st.st_mode)) { in read_fstree()
/linux/include/linux/
H A Dnfs_fs.h382 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 Dattr_test.c71 FAIL_IF(!S_ISDIR(s.st_mode)); in verify_energy_info()
/linux/fs/notify/dnotify/
H A Ddnotify.c161 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 Dstat.h23 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) macro
/linux/tools/include/uapi/linux/
H A Dstat.h23 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) macro
/linux/tools/perf/trace/beauty/include/uapi/linux/
H A Dstat.h23 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) macro
/linux/tools/include/nolibc/
H A Dtypes.h54 #define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)
39 #define S_ISDIR( global() macro
/linux/fs/btrfs/
H A Dacl.c71 if (!S_ISDIR(inode->i_mode)) in __btrfs_set_acl()

123456