Home
last modified time | relevance | path

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

1234567891011

/linux-5.19.10/fs/xfs/scrub/
Dinode.c149 !S_ISDIR(mode)) in xchk_inode_flags()
190 if ((flags2 & XFS_DIFLAG2_DAX) && !(S_ISREG(mode) || S_ISDIR(mode))) in xchk_inode_flags2()
319 if (!S_ISDIR(mode) && !S_ISLNK(mode)) in xchk_dinode()
323 if (!S_ISREG(mode) && !S_ISDIR(mode) && !S_ISLNK(mode)) in xchk_dinode()
327 if (!S_ISREG(mode) && !S_ISDIR(mode)) in xchk_dinode()
351 if (!S_ISDIR(mode) && !S_ISREG(mode) && !S_ISLNK(mode) && isize != 0) in xchk_dinode()
355 if (S_ISDIR(mode) && (isize == 0 || isize >= XFS_DIR2_SPACE_SIZE)) in xchk_dinode()
Dparent.c179 if (dp == sc->ip || !S_ISDIR(VFS_I(dp)->i_mode)) { in xchk_parent_validate()
276 if (!S_ISDIR(VFS_I(sc->ip)->i_mode)) in xchk_parent()
/linux-5.19.10/fs/hpfs/
Dinode.c166 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-5.19.10/fs/gfs2/
Dinode.c62 } else if (S_ISDIR(mode)) { in gfs2_set_iop()
353 if (S_ISDIR(mode) && dip->i_inode.i_nlink == (u32)-1) in create_ok()
365 if (S_ISDIR(inode->i_mode)) in munge_mode_uid_gid()
374 if (S_ISDIR(inode->i_mode)) in munge_mode_uid_gid()
626 if (S_ISDIR(inode->i_mode)) { in gfs2_create_inode()
664 set_nlink(inode, S_ISDIR(mode) ? 2 : 1); in gfs2_create_inode()
924 if (S_ISDIR(inode->i_mode)) in gfs2_link()
1096 if (S_ISDIR(inode->i_mode)) in gfs2_unlink_inode()
1156 if (S_ISDIR(inode->i_mode)) { in gfs2_unlink()
1406 if (S_ISDIR(ip->i_inode.i_mode)) { in gfs2_rename()
[all …]
/linux-5.19.10/tools/perf/util/
Dpath.c93 return S_ISDIR(st.st_mode); in is_directory()
105 return !S_ISDIR(st.st_mode) && (st.st_mode & S_IXUSR); in is_executable_file()
/linux-5.19.10/tools/power/acpi/os_specific/service_layers/
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-5.19.10/tools/power/cpupower/lib/
Dcpuidle.c292 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-5.19.10/fs/nfs/
Dnfs3acl.c83 if (S_ISDIR(inode->i_mode)) in nfs3_get_acl()
180 if (acl == NULL && (!S_ISDIR(inode->i_mode) || dfacl == NULL)) in __nfs3_proc_setacls()
194 if (S_ISDIR(inode->i_mode)) { in __nfs3_proc_setacls()
264 if (S_ISDIR(inode->i_mode)) { in nfs3_set_acl()
Dnfs4getroot.c30 || !S_ISDIR(fsinfo.fattr->mode)) { in nfs4_get_rootfh()
/linux-5.19.10/fs/jfs/
Djfs_inode.c56 rc = diAlloc(parent, S_ISDIR(mode), inode); in ialloc()
88 if (S_ISDIR(mode)) { in ialloc()
/linux-5.19.10/fs/ocfs2/
Dnamei.c198 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()
448 if (status < 0 && S_ISDIR(mode)) { in ocfs2_mknod()
574 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()
863 if (S_ISDIR(inode->i_mode)) { in ocfs2_inode_is_unlinkable()
943 if (S_ISDIR(inode->i_mode)) { in ocfs2_unlink()
[all …]
/linux-5.19.10/fs/xfs/libxfs/
Dxfs_inode_buf.c374 if (S_ISDIR(mode) || S_ISLNK(mode)) { in xfs_dinode_verify_fork()
496 if ((S_ISLNK(mode) || S_ISDIR(mode)) && di_size == 0) in xfs_dinode_verify()
511 if (S_ISDIR(mode) && nextents > mp->m_dir_geo->max_extents) in xfs_dinode_verify()
691 if ((hint_flag || inherit_flag) && !(S_ISDIR(mode) || S_ISREG(mode))) in xfs_inode_validate_extsize()
697 if (inherit_flag && !S_ISDIR(mode)) in xfs_inode_validate_extsize()
751 if (hint_flag && !(S_ISDIR(mode) || S_ISREG(mode))) in xfs_inode_validate_cowextsize()
Dxfs_dir2.c193 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_isempty()
233 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_init()
266 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_createname()
363 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_lookup()
440 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_removename()
498 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_replace()
/linux-5.19.10/tools/power/cpupower/utils/helpers/
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-5.19.10/include/linux/
Dfsnotify.h50 if (S_ISDIR(inode->i_mode)) in fsnotify_inode()
65 if (S_ISDIR(inode->i_mode)) { in fsnotify_parent()
240 if (S_ISDIR(inode->i_mode)) in fsnotify_delete()
/linux-5.19.10/fs/udf/
Dialloc.c37 if (S_ISDIR(inode->i_mode)) in udf_free_inode()
100 if (S_ISDIR(mode)) in udf_new_inode()
/linux-5.19.10/fs/
Dremap_range.c292 if (S_ISDIR(inode_in->i_mode) || S_ISDIR(inode_out->i_mode)) in generic_remap_file_range_prep()
461 if (S_ISDIR(file_inode(dst_file)->i_mode)) in vfs_dedupe_file_range_one()
502 if (S_ISDIR(src->i_mode)) in vfs_dedupe_file_range()
/linux-5.19.10/tools/testing/selftests/ia64/
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-5.19.10/security/tomoyo/
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-5.19.10/fs/crypto/
Dkeysetup.c69 if (S_ISDIR(inode->i_mode) || S_ISLNK(inode->i_mode)) in select_encryption_mode()
643 S_ISDIR(inode->i_mode)); in fscrypt_get_encryption_info()
693 !S_ISDIR(inode->i_mode) && in fscrypt_prepare_new_inode()
702 S_ISDIR(inode->i_mode)); in fscrypt_prepare_new_inode()
/linux-5.19.10/fs/ext2/
Dialloc.c127 is_directory = S_ISDIR(inode->i_mode); in ext2_free_inode()
446 if (S_ISDIR(mode)) { in ext2_new_inode()
528 if (S_ISDIR(mode)) in ext2_new_inode()
533 if (S_ISDIR(mode)) { in ext2_new_inode()
/linux-5.19.10/fs/overlayfs/
Dinode.c131 if (S_ISDIR(dentry->d_inode->i_mode)) { in ovl_map_dev_ino()
162 bool is_dir = S_ISDIR(inode->i_mode); in ovl_getattr()
727 if (S_ISDIR(inode->i_mode)) in ovl_lockdep_annotate_inode_mutex_key()
774 if (S_ISDIR(inode->i_mode)) { in ovl_map_ino()
969 if (S_ISDIR(inode->i_mode) && strict) { in ovl_verify_inode()
1133 is_dir = S_ISDIR(realinode->i_mode); in ovl_get_inode()
/linux-5.19.10/fs/f2fs/
Dnamei.c55 if (S_ISDIR(inode->i_mode)) in f2fs_new_inode()
111 if (S_ISDIR(inode->i_mode)) in f2fs_new_inode()
466 if (!S_ISDIR(dir->i_mode)) { in __recover_dot_dentries()
566 (S_ISDIR(inode->i_mode) || S_ISLNK(inode->i_mode)) && in f2fs_lookup()
1013 if (S_ISDIR(old_inode->i_mode)) { in f2fs_rename()
1111 if (S_ISDIR(old_inode->i_mode)) in f2fs_rename()
1188 if (S_ISDIR(old_inode->i_mode)) { in f2fs_cross_rename()
1198 if (S_ISDIR(new_inode->i_mode)) { in f2fs_cross_rename()
/linux-5.19.10/fs/reiserfs/
Dnamei.c578 if (!S_ISDIR(inode->i_mode) && visible) in reiserfs_add_entry()
1377 if (S_ISDIR(old_inode_mode)) { in reiserfs_rename()
1487 if (S_ISDIR(old_inode->i_mode)) { in reiserfs_rename()
1535 if (S_ISDIR(old_inode_mode)) in reiserfs_rename()
1542 if (S_ISDIR(old_inode_mode)) { in reiserfs_rename()
1560 RFALSE(S_ISDIR(old_inode_mode) && in reiserfs_rename()
1588 if (S_ISDIR(new_dentry_inode->i_mode)) { in reiserfs_rename()
1597 if (S_ISDIR(old_inode_mode)) { in reiserfs_rename()
/linux-5.19.10/fs/hfs/
Dinode.c207 if (S_ISDIR(mode)) { in hfs_new_inode()
249 if (S_ISDIR(inode->i_mode)) { in hfs_delete_inode()
466 if (S_ISDIR(main_inode->i_mode)) { in hfs_write_inode()
625 ((S_ISDIR(inode->i_mode) && in hfs_inode_setattr()
637 attr->ia_mode &= S_ISDIR(inode->i_mode) ? ~hsb->s_dir_umask: ~hsb->s_file_umask; in hfs_inode_setattr()

1234567891011