/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() 438 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_lookup() 504 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_removename() 561 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_replace() 869 if (S_ISDIR(VFS_I(ip)->i_mode)) { in xfs_dir_create_child() 910 ASSERT(!S_ISDIR(VFS_I(ip)->i_mode)); in xfs_dir_add_child() 977 if (S_ISDIR(VFS_I(ip)->i_mode)) { in xfs_dir_remove_child() 1081 if (S_ISDIR(VFS_I(ip2)->i_mode)) { in xfs_dir_exchange_children() [all …]
|
H A D | xfs_inode_buf.c | 393 if (S_ISDIR(mode)) { in xfs_dinode_verify_fork() 522 if (!S_ISDIR(mode) && !S_ISREG(mode)) in xfs_dinode_verify_metadir() 541 if (S_ISDIR(mode)) { in xfs_dinode_verify_metadir() 617 if ((S_ISLNK(mode) || S_ISDIR(mode)) && di_size == 0) { in xfs_dinode_verify() 643 if (S_ISDIR(mode) && nextents > mp->m_dir_geo->max_extents) in xfs_dinode_verify() 829 if ((hint_flag || inherit_flag) && !(S_ISDIR(mode) || S_ISREG(mode))) in xfs_inode_validate_extsize() 835 if (inherit_flag && !S_ISDIR(mode)) in xfs_inode_validate_extsize() 889 if (hint_flag && !(S_ISDIR(mode) || S_ISREG(mode))) in xfs_inode_validate_cowextsize()
|
/linux/fs/hpfs/ |
H A D | inode.c | 166 if ((i->i_mode != ((hpfs_sb(i->i_sb)->sb_mode & ~(S_ISDIR(i->i_mode) ? 0 : 0111)) in hpfs_write_inode_ea() 167 | (S_ISDIR(i->i_mode) ? S_IFDIR : S_IFREG)) in hpfs_write_inode_ea() 168 && i->i_mode != ((hpfs_sb(i->i_sb)->sb_mode & ~(S_ISDIR(i->i_mode) ? 0222 : 0333)) in hpfs_write_inode_ea() 169 | (S_ISDIR(i->i_mode) ? S_IFDIR : S_IFREG))) || hpfs_inode->i_ea_mode) { in hpfs_write_inode_ea() 227 } else if (S_ISDIR(i->i_mode)) { in hpfs_write_inode_nolock() 241 if (S_ISDIR(i->i_mode)) { in hpfs_write_inode_nolock()
|
/linux/fs/bcachefs/ |
H A D | fs-common.c | 16 return S_ISDIR(inode->bi_mode) && !inode->bi_subvol; in is_subdir_for_nlink() 275 if (!deleting_subvol && S_ISDIR(inode_u->bi_mode)) { in bch2_unlink_trans() 484 if (S_ISDIR(src_inode_u->bi_mode) != in bch2_rename_trans() 485 S_ISDIR(dst_inode_u->bi_mode)) { in bch2_rename_trans() 490 if (S_ISDIR(dst_inode_u->bi_mode)) { in bch2_rename_trans() 498 S_ISDIR(src_inode_u->bi_mode)) { in bch2_rename_trans() 505 S_ISDIR(dst_inode_u->bi_mode)) { in bch2_rename_trans()
|
H A D | inode.h | 227 return S_ISDIR(mode) ? 2 : 1; in nlink_bias() 256 return S_ISDIR(inode->bi_mode) || in bch2_inode_should_have_bp()
|
/linux/tools/perf/util/ |
H A D | path.c | 68 return S_ISDIR(st.st_mode); in is_directory() 80 return !S_ISDIR(st.st_mode) && (st.st_mode & S_IXUSR); in is_executable_file()
|
/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/ocfs2/ |
H A D | namei.c | 198 if (S_ISDIR(mode)) in ocfs2_get_init_inode() 276 if (S_ISDIR(mode) && (dir->i_nlink >= ocfs2_link_max(osb))) { in ocfs2_mknod() 339 if (S_ISDIR(mode) && !ocfs2_supports_inline_data(osb)) { in ocfs2_mknod() 362 S_ISDIR(mode), in ocfs2_mknod() 390 if (S_ISDIR(mode)) { in ocfs2_mknod() 454 if (status < 0 && S_ISDIR(mode)) { in ocfs2_mknod() 583 if (S_ISDIR(inode->i_mode) && ocfs2_supports_inline_data(osb)) { in __ocfs2_mknod_locked() 702 if (S_ISDIR(inode->i_mode)) in ocfs2_link() 864 if (S_ISDIR(inode->i_mode)) { in ocfs2_inode_is_unlinkable() 944 if (S_ISDIR(inode->i_mode)) { in ocfs2_unlink() [all …]
|
/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 | 30 || !S_ISDIR(fsinfo.fattr->mode)) { in nfs4_get_rootfh()
|
/linux/tools/power/cpupower/lib/ |
H A D | cpuidle.c | 300 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in cpuidle_state_count() 304 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in cpuidle_state_count() 307 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/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() 311 if (S_ISDIR(inode->i_mode)) in fsnotify_delete()
|
/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() 817 if (S_ISDIR(VFS_I(sc->ip)->i_mode)) { in xchk_parent_pptr() 860 if (!S_ISDIR(VFS_I(sc->ip)->i_mode)) in xchk_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()
|
/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/f2fs/ |
H A D | namei.c | 153 if (S_ISDIR(inode->i_mode)) in set_compress_new_inode() 252 if (S_ISDIR(inode->i_mode)) in f2fs_new_inode() 306 if (S_ISDIR(inode->i_mode)) in f2fs_new_inode() 505 (S_ISDIR(inode->i_mode) || S_ISLNK(inode->i_mode)) && in f2fs_lookup() 898 bool old_is_dir = S_ISDIR(old_inode->i_mode); in f2fs_rename() 1055 if (S_ISDIR(old_inode->i_mode)) in f2fs_rename() 1132 if (S_ISDIR(old_inode->i_mode)) { in f2fs_cross_rename() 1142 if (S_ISDIR(new_inode->i_mode)) { in f2fs_cross_rename()
|
/linux/fs/ext2/ |
H A D | ialloc.c | 127 is_directory = S_ISDIR(inode->i_mode); in ext2_free_inode() 442 if (S_ISDIR(mode)) { in ext2_new_inode() 524 if (S_ISDIR(mode)) in ext2_new_inode() 529 if (S_ISDIR(mode)) { in ext2_new_inode()
|
/linux/fs/crypto/ |
H A D | keysetup.c | 90 if (S_ISDIR(inode->i_mode) || S_ISLNK(inode->i_mode)) in select_encryption_mode() 678 S_ISDIR(inode->i_mode)); in fscrypt_get_encryption_info() 731 !S_ISDIR(inode->i_mode) && in fscrypt_prepare_new_inode() 740 S_ISDIR(inode->i_mode)); in fscrypt_prepare_new_inode()
|
/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() 880 nblocks += (S_ISDIR(mode) ? 2 : 1) * in ext4_xattr_credits_for_new_inode() 1015 if (S_ISDIR(mode)) in __ext4_new_inode() 1216 if (S_ISDIR(mode)) { in __ext4_new_inode() 1239 if (S_ISDIR(mode)) in __ext4_new_inode() 1301 (!(ei->i_flags & EXT4_DAX_FL) || S_ISDIR(mode))) in __ext4_new_inode() 1331 if (S_ISDIR(mode) || S_ISREG(mode) || S_ISLNK(mode)) { in __ext4_new_inode()
|
/linux/fs/hfs/ |
H A D | inode.c | 203 if (S_ISDIR(mode)) { in hfs_new_inode() 245 if (S_ISDIR(inode->i_mode)) { in hfs_delete_inode() 466 if (S_ISDIR(main_inode->i_mode)) { in hfs_write_inode() 630 ((S_ISDIR(inode->i_mode) && in hfs_inode_setattr() 642 attr->ia_mode &= S_ISDIR(inode->i_mode) ? ~hsb->s_dir_umask: ~hsb->s_file_umask; in hfs_inode_setattr()
|
/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() 254 if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode))) { in xfs_open_by_handle() 277 if (S_ISDIR(inode->i_mode) && (fmode & FMODE_WRITE)) { in xfs_open_by_handle()
|