| /linux/fs/xfs/libxfs/ |
| H A D | xfs_dir2.c | 206 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_isempty() 246 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_init() 335 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_createname() 437 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_lookup() 502 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_removename() 559 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_replace() 867 if (S_ISDIR(VFS_I(ip)->i_mode)) { in xfs_dir_create_child() 908 ASSERT(!S_ISDIR(VFS_I(ip)->i_mode)); in xfs_dir_add_child() 975 if (S_ISDIR(VFS_I(ip)->i_mode)) { in xfs_dir_remove_child() 1079 if (S_ISDIR(VFS_I(ip2)->i_mode)) { in xfs_dir_exchange_children() [all …]
|
| H A D | xfs_inode_buf.c | 401 if (S_ISDIR(mode)) { in xfs_dinode_verify_fork() 558 if (!S_ISDIR(mode) && !S_ISREG(mode)) in xfs_dinode_verify_metadir() 577 if (S_ISDIR(mode)) { in xfs_dinode_verify_metadir() 653 if ((S_ISLNK(mode) || S_ISDIR(mode)) && di_size == 0) { in xfs_dinode_verify() 676 if (S_ISDIR(mode) && nextents > mp->m_dir_geo->max_extents) in xfs_dinode_verify() 876 if ((hint_flag || inherit_flag) && !(S_ISDIR(mode) || S_ISREG(mode))) in xfs_inode_validate_extsize() 882 if (inherit_flag && !S_ISDIR(mode)) in xfs_inode_validate_extsize() 954 if (hint_flag && !(S_ISDIR(mode) || S_ISREG(mode))) in xfs_inode_validate_cowextsize()
|
| /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/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/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/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/xfs/scrub/ |
| H A D | parent.c | 173 !S_ISDIR(VFS_I(dp)->i_mode)) { in xchk_parent_validate() 437 if (!S_ISDIR(VFS_I(ip)->i_mode)) { in xchk_parent_iget() 727 if (S_ISDIR(VFS_I(sc->ip)->i_mode)) { in xchk_parent_count_pptrs() 812 if (S_ISDIR(VFS_I(sc->ip)->i_mode)) { in xchk_parent_pptr() 855 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() 589 if (S_ISDIR(VFS_I(ip)->i_mode)) in xchk_nlinks_collect() 707 if (!xfs_has_ftype(sc->mp) && S_ISDIR(VFS_I(ip)->i_mode)) in xchk_nlinks_compare_inode() 733 if (S_ISDIR(VFS_I(ip)->i_mode) && actual_nlink > 0) { in xchk_nlinks_compare_inode()
|
| H A D | parent_repair.c | 492 if (S_ISDIR(VFS_I(ip)->i_mode) && xfs_need_iread_extents(&ip->i_df)) { in xrep_parent_scan_ilock() 519 if (S_ISDIR(VFS_I(ip)->i_mode)) { in xrep_parent_scan_file() 777 if (S_ISDIR(VFS_I(sc->ip)->i_mode)) { in xrep_parent_move_to_orphanage() 832 if (S_ISDIR(VFS_I(sc->ip)->i_mode)) in xrep_parent_move_to_orphanage() 1384 if (S_ISDIR(VFS_I(sc->ip)->i_mode)) in xrep_parent_rebuild_tree() 1611 if (xfs_has_parent(sc->mp) && !S_ISDIR(VFS_I(sc->ip)->i_mode)) { in xrep_parent()
|
| /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()
|
| H A D | file_attr.c | 228 !S_ISDIR(inode->i_mode)) in fileattr_set_prepare() 232 !S_ISREG(inode->i_mode) && !S_ISDIR(inode->i_mode)) in fileattr_set_prepare() 240 !(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode))) in fileattr_set_prepare()
|
| /linux/include/linux/ |
| H A D | fsnotify.h | 69 if (S_ISDIR(inode->i_mode)) in fsnotify_inode() 84 if (S_ISDIR(inode->i_mode)) { in fsnotify_parent() 356 if (S_ISDIR(inode->i_mode)) in fsnotify_delete()
|
| H A D | nfs_fs.h | 383 return S_ISDIR(inode->i_mode) ? nfss->acdirmin : nfss->acregmin; in NFS_MINATTRTIMEO() 389 return S_ISDIR(inode->i_mode) ? nfss->acdirmax : nfss->acregmax; in NFS_MAXATTRTIMEO() 415 if (S_ISDIR(inode->i_mode)) in nfs_mark_for_revalidate()
|
| /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/xfs/ |
| H A D | xfs_handle.c | 117 !S_ISDIR(inode->i_mode) && in xfs_find_handle() 168 if (!S_ISDIR(file_inode(file)->i_mode)) in xfs_khandle_to_dentry() 189 if (!S_ISDIR(VFS_I(ip)->i_mode)) in xfs_khandle_to_inode() 252 if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode))) in xfs_open_by_handle() 269 if (S_ISDIR(inode->i_mode) && (fmode & FMODE_WRITE)) in xfs_open_by_handle()
|
| /linux/fs/ext4/ |
| H A D | ialloc.c | 275 is_directory = S_ISDIR(inode->i_mode); in ext4_free_inode() 455 if (S_ISDIR(mode) && in find_group_orlov() 887 nblocks += (S_ISDIR(mode) ? 2 : 1) * in ext4_xattr_credits_for_new_inode() 1023 if (S_ISDIR(mode)) in __ext4_new_inode() 1224 if (S_ISDIR(mode)) { in __ext4_new_inode() 1247 if (S_ISDIR(mode)) in __ext4_new_inode() 1307 (!(ei->i_flags & (EXT4_DAX_FL|EXT4_EA_INODE_FL)) || S_ISDIR(mode))) in __ext4_new_inode() 1337 if (S_ISDIR(mode) || S_ISREG(mode) || S_ISLNK(mode)) { in __ext4_new_inode()
|
| /linux/fs/smb/server/ |
| H A D | vfs.c | 351 if (S_ISDIR(inode->i_mode)) in ksmbd_vfs_read() 476 S_ISDIR(file_inode(fp->filp)->i_mode)) { in ksmbd_vfs_write() 592 if (S_ISDIR(d_inode(path->dentry)->i_mode)) { in ksmbd_vfs_remove_file() 1026 if (S_ISDIR(d_inode(dentry)->i_mode)) in ksmbd_vfs_unlink() 1434 if (S_ISDIR(inode->i_mode)) in ksmbd_vfs_set_sd_xattr() 1491 if (S_ISDIR(inode->i_mode)) in ksmbd_vfs_get_sd_xattr() 1640 if (S_ISDIR(ksmbd_kstat->kstat->mode)) in ksmbd_vfs_fill_dentry_attrs() 1841 else if (S_ISDIR(inode->i_mode)) { in ksmbd_vfs_set_init_posix_acl() 1882 if (S_ISDIR(inode->i_mode)) { in ksmbd_vfs_inherit_posix_acl()
|
| /linux/fs/ntfs/ |
| H A D | namei.c | 427 if (S_ISDIR(mode)) { in __ntfs_create() 540 if (!S_ISREG(mode) && !S_ISDIR(mode)) in __ntfs_create() 556 if (S_ISDIR(mode)) { in __ntfs_create() 644 if (S_ISDIR(mode)) { in __ntfs_create() 651 if (!S_ISREG(mode) && !S_ISDIR(mode)) { in __ntfs_create() 948 if (!S_ISDIR(VFS_I(ni)->i_mode)) in ntfs_delete() 963 if (S_ISDIR(VFS_I(ni)->i_mode) && !le16_to_cpu(ni_mrec->link_count)) in ntfs_delete() 1232 if (!S_ISDIR(vi->i_mode)) in __ntfs_link() 1314 is_dir = S_ISDIR(old_inode->i_mode); in ntfs_rename()
|
| /linux/fs/overlayfs/ |
| 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() 940 if (S_ISDIR(c->stat.mode)) in ovl_do_copy_up() 946 if (S_ISDIR(c->stat.mode) || c->stat.nlink == 1 || to_index) { in ovl_do_copy_up() 1158 (S_ISREG(ctx.stat.mode) || S_ISDIR(ctx.stat.mode)); in ovl_copy_up_one()
|
| /linux/scripts/dtc/ |
| H A D | fstree.c | 53 } else if (S_ISDIR(st.st_mode)) { in read_fstree()
|
| /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()
|