Home
last modified time | relevance | path

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

12345678

/linux/fs/xfs/libxfs/
H A Dxfs_dir2.c206 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 Dxfs_inode_buf.c401 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/fs/hpfs/
H A 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/fs/ocfs2/
H A Dnamei.c202 if (S_ISDIR(mode)) in ocfs2_get_init_inode()
280 if (S_ISDIR(mode) && (dir->i_nlink >= ocfs2_link_max(osb))) { in ocfs2_mknod()
343 if (S_ISDIR(mode) && !ocfs2_supports_inline_data(osb)) { in ocfs2_mknod()
366 S_ISDIR(mode), in ocfs2_mknod()
394 if (S_ISDIR(mode)) { in ocfs2_mknod()
458 if (status < 0 && S_ISDIR(mode)) { in ocfs2_mknod()
586 if (S_ISDIR(inode->i_mode) && ocfs2_supports_inline_data(osb)) { in __ocfs2_mknod_locked()
705 if (S_ISDIR(inode->i_mode)) in ocfs2_link()
867 if (S_ISDIR(inode->i_mode)) { in ocfs2_inode_is_unlinkable()
947 if (S_ISDIR(inode->i_mode)) { in ocfs2_unlink()
[all …]
/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/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/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/xfs/scrub/
H A Dparent.c173 !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 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()
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 Dparent_repair.c492 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 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()
H A Dfile_attr.c228 !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()
H A Dinode.c1195 if (S_ISDIR(inode->i_mode)) { in lockdep_annotate_inode_mutex_key()
1254 WARN_ON_ONCE(S_ISDIR(inode1->i_mode)); in lock_two_nondirectories()
1256 WARN_ON_ONCE(S_ISDIR(inode2->i_mode)); in lock_two_nondirectories()
1274 WARN_ON_ONCE(S_ISDIR(inode1->i_mode)); in unlock_two_nondirectories()
1278 WARN_ON_ONCE(S_ISDIR(inode2->i_mode)); in unlock_two_nondirectories()
2228 if ((inode->i_sb->s_flags & SB_NODIRATIME) && S_ISDIR(inode->i_mode)) in atime_needs_update()
2233 if ((mnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode)) in atime_needs_update()
2520 if (S_ISDIR(inode->i_mode) && IS_DIRSYNC(inode)) in inode_needs_sync()
2673 if (S_ISDIR(mode)) in inode_init_owner()
3012 if (S_ISDIR(mode) || !dir || !(dir->i_mode & S_ISGID)) in mode_strip_sgid()
/linux/include/linux/
H A Dfsnotify.h69 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 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()
414 if (S_ISDIR(inode->i_mode)) in nfs_mark_for_revalidate()
/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/ext2/
H A Dialloc.c127 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 Dkeysetup.c91 if (S_ISDIR(inode->i_mode) || S_ISLNK(inode->i_mode)) in select_encryption_mode()
704 S_ISDIR(inode->i_mode)); in fscrypt_get_encryption_info()
757 !S_ISDIR(inode->i_mode) && in fscrypt_prepare_new_inode()
766 S_ISDIR(inode->i_mode)); in fscrypt_prepare_new_inode()
/linux/fs/smb/server/
H A Dvfs.c351 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/overlayfs/
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()
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()

12345678