/Linux-v5.4/include/linux/ |
D | fsnotify.h | 82 if (S_ISDIR(inode->i_mode)) in fsnotify_perm() 95 if (S_ISDIR(inode->i_mode)) in fsnotify_link_count() 161 if (S_ISDIR(inode->i_mode)) in fsnotify_inoderemove() 236 if (S_ISDIR(inode->i_mode)) in fsnotify_access() 252 if (S_ISDIR(inode->i_mode)) in fsnotify_modify() 268 if (S_ISDIR(inode->i_mode)) in fsnotify_open() 286 if (S_ISDIR(inode->i_mode)) in fsnotify_close() 301 if (S_ISDIR(inode->i_mode)) in fsnotify_xattr() 336 if (S_ISDIR(inode->i_mode)) in fsnotify_change()
|
D | nfs_fs.h | 282 return S_ISDIR(inode->i_mode) ? nfss->acdirmin : nfss->acregmin; in NFS_MINATTRTIMEO() 288 return S_ISDIR(inode->i_mode) ? nfss->acdirmax : nfss->acregmax; in NFS_MAXATTRTIMEO() 325 if (S_ISDIR(inode->i_mode)) in nfs_mark_for_revalidate()
|
/Linux-v5.4/fs/xfs/scrub/ |
D | inode.c | 137 !S_ISDIR(mode)) in xchk_inode_flags() 178 if ((flags2 & XFS_DIFLAG2_DAX) && !(S_ISREG(mode) || S_ISDIR(mode))) in xchk_inode_flags2() 278 if (!S_ISDIR(mode) && !S_ISLNK(mode)) in xchk_dinode() 282 if (!S_ISREG(mode) && !S_ISDIR(mode) && !S_ISLNK(mode)) in xchk_dinode() 286 if (!S_ISREG(mode) && !S_ISDIR(mode)) in xchk_dinode() 313 if (!S_ISDIR(mode) && !S_ISREG(mode) && !S_ISLNK(mode) && isize != 0) in xchk_dinode() 317 if (S_ISDIR(mode) && (isize == 0 || isize >= XFS_DIR2_SPACE_SIZE)) in xchk_dinode()
|
D | parent.c | 165 if (dp == sc->ip || !S_ISDIR(VFS_I(dp)->i_mode)) { in xchk_parent_validate() 262 if (!S_ISDIR(VFS_I(sc->ip)->i_mode)) in xchk_parent()
|
/Linux-v5.4/fs/gfs2/ |
D | inode.c | 88 } else if (S_ISDIR(mode)) { in gfs2_set_iop() 344 if (S_ISDIR(mode) && dip->i_inode.i_nlink == (u32)-1) in create_ok() 356 if (S_ISDIR(inode->i_mode)) in munge_mode_uid_gid() 365 if (S_ISDIR(inode->i_mode)) in munge_mode_uid_gid() 617 if (S_ISDIR(inode->i_mode)) { in gfs2_create_inode() 655 set_nlink(inode, S_ISDIR(mode) ? 2 : 1); in gfs2_create_inode() 905 if (S_ISDIR(inode->i_mode)) in gfs2_link() 1075 if (S_ISDIR(inode->i_mode)) in gfs2_unlink_inode() 1135 if (S_ISDIR(inode->i_mode)) { in gfs2_unlink() 1381 if (S_ISDIR(ip->i_inode.i_mode)) { in gfs2_rename() [all …]
|
/Linux-v5.4/fs/hpfs/ |
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-v5.4/tools/power/acpi/os_specific/service_layers/ |
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-v5.4/tools/power/cpupower/lib/ |
D | cpuidle.c | 292 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in cpuidle_state_count() 296 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in cpuidle_state_count() 299 while (stat(file, &statbuf) == 0 && S_ISDIR(statbuf.st_mode)) { in cpuidle_state_count()
|
/Linux-v5.4/fs/nfs/ |
D | nfs3acl.c | 80 if (S_ISDIR(inode->i_mode)) in nfs3_get_acl() 176 if (acl == NULL && (!S_ISDIR(inode->i_mode) || dfacl == NULL)) in __nfs3_proc_setacls() 190 if (S_ISDIR(inode->i_mode)) { in __nfs3_proc_setacls() 259 if (S_ISDIR(inode->i_mode)) { in nfs3_set_acl()
|
D | nfs4getroot.c | 30 || !S_ISDIR(fsinfo.fattr->mode)) { in nfs4_get_rootfh()
|
D | inode.c | 232 if (S_ISREG(mode) || S_ISDIR(mode) || S_ISLNK(mode)) { in nfs_zap_caches_locked() 471 } else if (S_ISDIR(inode->i_mode)) { in nfs_fhget() 811 ((path->mnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode))) in nfs_getattr() 846 if (S_ISDIR(inode->i_mode)) in nfs_getattr() 1161 if (!S_ISDIR(inode->i_mode)) in __nfs_revalidate_inode() 1229 if (S_ISDIR(inode->i_mode)) { in nfs_invalidate_mapping() 1360 if (S_ISDIR(inode->i_mode)) in nfs_wcc_update_inode() 1376 if (S_ISDIR(inode->i_mode)) in nfs_wcc_update_inode() 1667 if (S_ISDIR(inode->i_mode)) in nfs_post_op_update_inode_locked() 1843 if (S_ISDIR(inode->i_mode) && (fattr->valid & NFS_ATTR_FATTR_FSID) && in nfs_update_inode() [all …]
|
/Linux-v5.4/fs/jfs/ |
D | jfs_inode.c | 56 rc = diAlloc(parent, S_ISDIR(mode), inode); in ialloc() 88 if (S_ISDIR(mode)) { in ialloc()
|
/Linux-v5.4/fs/xfs/libxfs/ |
D | xfs_dir2.c | 175 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_isempty() 215 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_init() 248 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_createname() 345 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_lookup() 422 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_removename() 480 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_replace()
|
/Linux-v5.4/fs/ocfs2/ |
D | namei.c | 199 if (S_ISDIR(mode)) in ocfs2_get_init_inode() 271 if (S_ISDIR(mode) && (dir->i_nlink >= ocfs2_link_max(osb))) { in ocfs2_mknod() 334 if (S_ISDIR(mode) && !ocfs2_supports_inline_data(osb)) { in ocfs2_mknod() 357 S_ISDIR(mode), in ocfs2_mknod() 384 if (S_ISDIR(mode)) { in ocfs2_mknod() 567 if (S_ISDIR(inode->i_mode) && ocfs2_supports_inline_data(osb)) { in __ocfs2_mknod_locked() 694 if (S_ISDIR(inode->i_mode)) in ocfs2_link() 855 if (S_ISDIR(inode->i_mode)) { in ocfs2_inode_is_unlinkable() 935 if (S_ISDIR(inode->i_mode)) { in ocfs2_unlink() 986 if (S_ISDIR(inode->i_mode)) in ocfs2_unlink() [all …]
|
/Linux-v5.4/tools/power/cpupower/utils/helpers/ |
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-v5.4/fs/udf/ |
D | ialloc.c | 37 if (S_ISDIR(inode->i_mode)) in udf_free_inode() 98 if (S_ISDIR(mode)) in udf_new_inode()
|
/Linux-v5.4/fs/ |
D | inode.c | 958 if (S_ISDIR(inode->i_mode)) { in lockdep_annotate_inode_mutex_key() 1022 if (inode1 && !S_ISDIR(inode1->i_mode)) in lock_two_nondirectories() 1024 if (inode2 && !S_ISDIR(inode2->i_mode) && inode2 != inode1) in lock_two_nondirectories() 1036 if (inode1 && !S_ISDIR(inode1->i_mode)) in unlock_two_nondirectories() 1038 if (inode2 && !S_ISDIR(inode2->i_mode) && inode2 != inode1) in unlock_two_nondirectories() 1711 if ((inode->i_sb->s_flags & SB_NODIRATIME) && S_ISDIR(inode->i_mode)) in atime_needs_update() 1716 if ((mnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode)) in atime_needs_update() 1929 if (S_ISDIR(inode->i_mode) && IS_DIRSYNC(inode)) in inode_needs_sync() 2052 if (S_ISDIR(mode)) in inode_init_owner() 2289 !S_ISDIR(inode->i_mode)) in vfs_ioc_fssetxattr_check() [all …]
|
/Linux-v5.4/fs/notify/dnotify/ |
D | dnotify.c | 87 if (!S_ISDIR(inode->i_mode)) in dnotify_handle_event() 151 if (!S_ISDIR(inode->i_mode)) in dnotify_flush() 278 if (!S_ISDIR(inode->i_mode)) { in fcntl_dirnotify()
|
/Linux-v5.4/tools/testing/selftests/ia64/ |
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-v5.4/fs/ext4/ |
D | ialloc.c | 276 is_directory = S_ISDIR(inode->i_mode); in ext4_free_inode() 449 if (S_ISDIR(mode) && in find_group_orlov() 775 (S_ISREG(mode) || S_ISDIR(mode) || S_ISLNK(mode)) && in __ext4_new_inode() 794 nblocks += (S_ISDIR(mode) ? 2 : 1) * in __ext4_new_inode() 870 if (S_ISDIR(mode)) in __ext4_new_inode() 1054 if (S_ISDIR(mode)) { in __ext4_new_inode() 1077 if (S_ISDIR(mode)) in __ext4_new_inode() 1167 if (S_ISDIR(mode) || S_ISREG(mode) || S_ISLNK(mode)) { in __ext4_new_inode()
|
/Linux-v5.4/security/tomoyo/ |
D | realpath.c | 104 if (inode && S_ISDIR(inode->i_mode)) { in tomoyo_get_absolute_path() 134 if (inode && S_ISDIR(inode->i_mode)) { in tomoyo_get_dentry_path()
|
/Linux-v5.4/fs/ext2/ |
D | ialloc.c | 126 is_directory = S_ISDIR(inode->i_mode); in ext2_free_inode() 450 if (S_ISDIR(mode)) { in ext2_new_inode() 532 if (S_ISDIR(mode)) in ext2_new_inode() 537 if (S_ISDIR(mode)) { in ext2_new_inode()
|
/Linux-v5.4/tools/perf/util/ |
D | path.c | 93 return S_ISDIR(st.st_mode); in is_directory()
|
/Linux-v5.4/fs/hfs/ |
D | inode.c | 202 if (S_ISDIR(mode)) { in hfs_new_inode() 244 if (S_ISDIR(inode->i_mode)) { in hfs_delete_inode() 461 if (S_ISDIR(main_inode->i_mode)) { in hfs_write_inode() 620 ((S_ISDIR(inode->i_mode) && in hfs_inode_setattr() 632 attr->ia_mode &= S_ISDIR(inode->i_mode) ? ~hsb->s_dir_umask: ~hsb->s_file_umask; in hfs_inode_setattr()
|
/Linux-v5.4/fs/overlayfs/ |
D | inode.c | 115 if (S_ISDIR(dentry->d_inode->i_mode)) { in ovl_map_dev_ino() 148 bool is_dir = S_ISDIR(dentry->d_inode->i_mode); in ovl_getattr() 539 if (S_ISDIR(inode->i_mode)) in ovl_lockdep_annotate_inode_mutex_key() 731 if (S_ISDIR(inode->i_mode) && strict) { in ovl_verify_inode() 890 is_dir = S_ISDIR(realinode->i_mode); in ovl_get_inode()
|