Home
last modified time | relevance | path

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

12

/linux-4.4.14/include/linux/
Dfsnotify.h200 if (S_ISDIR(inode->i_mode)) in fsnotify_access()
218 if (S_ISDIR(inode->i_mode)) in fsnotify_modify()
236 if (S_ISDIR(inode->i_mode)) in fsnotify_open()
253 if (S_ISDIR(inode->i_mode)) in fsnotify_close()
270 if (S_ISDIR(inode->i_mode)) in fsnotify_xattr()
305 if (S_ISDIR(inode->i_mode)) in fsnotify_change()
Dnfs_fs.h257 return S_ISDIR(inode->i_mode) ? nfss->acdirmin : nfss->acregmin; in NFS_MINATTRTIMEO()
263 return S_ISDIR(inode->i_mode) ? nfss->acdirmax : nfss->acregmax; in NFS_MAXATTRTIMEO()
299 if (S_ISDIR(inode->i_mode)) in nfs_mark_for_revalidate()
Dfs.h2409 if (S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || in invalidate_remote_inode()
2454 return (inode->i_mode & S_IXUGO) || S_ISDIR(inode->i_mode); in execute_ok()
/linux-4.4.14/fs/hpfs/
Dinode.c164 if ((i->i_mode != ((hpfs_sb(i->i_sb)->sb_mode & ~(S_ISDIR(i->i_mode) ? 0 : 0111)) in hpfs_write_inode_ea()
165 | (S_ISDIR(i->i_mode) ? S_IFDIR : S_IFREG)) in hpfs_write_inode_ea()
166 && i->i_mode != ((hpfs_sb(i->i_sb)->sb_mode & ~(S_ISDIR(i->i_mode) ? 0222 : 0333)) in hpfs_write_inode_ea()
167 | (S_ISDIR(i->i_mode) ? S_IFDIR : S_IFREG))) || hpfs_inode->i_ea_mode) { in hpfs_write_inode_ea()
225 } else if (S_ISDIR(i->i_mode)) { in hpfs_write_inode_nolock()
239 if (S_ISDIR(i->i_mode)) { in hpfs_write_inode_nolock()
Dnamei.c536 if (new_inode && S_ISDIR(new_inode->i_mode)) { in hpfs_rename()
592 if (S_ISDIR(i->i_mode)) { in hpfs_rename()
/linux-4.4.14/drivers/staging/lustre/lustre/llite/
Dxattr.c252 } else if (S_ISDIR(inode->i_mode)) { in ll_setxattr()
353 if (xattr_type == XATTR_ACL_DEFAULT_T && !S_ISDIR(inode->i_mode)) in ll_getxattr_common()
477 if (!S_ISREG(inode->i_mode) && !S_ISDIR(inode->i_mode)) in ll_getxattr()
480 if (size == 0 && S_ISDIR(inode->i_mode)) { in ll_getxattr()
489 if (S_ISDIR(inode->i_mode)) { in ll_getxattr()
586 } else if (S_ISDIR(inode->i_mode)) { in ll_listxattr()
593 } else if (S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode)) { in ll_listxattr()
Dllite_nfs.c238 if (!dir || !S_ISDIR(dir->i_mode)) { in ll_get_name()
291 LASSERT(dir && S_ISDIR(dir->i_mode)); in ll_get_parent()
Dllite_lib.c820 if (S_ISDIR(lli->lli_vfs_inode.i_mode)) { in ll_lli_init()
1037 if (S_ISDIR(inode->i_mode)) { in ll_clear_inode()
1084 if (!S_ISDIR(inode->i_mode)) in ll_clear_inode()
1120 !S_ISDIR(inode->i_mode)) { in ll_md_setattr()
1279 if (!S_ISDIR(inode->i_mode)) in ll_setattr_raw()
1360 if (!S_ISDIR(inode->i_mode)) { in ll_setattr_raw()
1495 LASSERT(!S_ISDIR(inode->i_mode)); in ll_inode_size_lock()
1675 } else if (S_ISDIR(inode->i_mode)) { in ll_read_inode2()
Dfile.c363 if (S_ISDIR(inode->i_mode) && lli->lli_opendir_key == fd && in ll_file_release()
373 if (!S_ISDIR(inode->i_mode)) { in ll_file_release()
552 if (S_ISDIR(inode->i_mode)) { in ll_file_open()
1062 if ((mnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode)) in file_is_noatime()
1065 if ((inode->i_sb->s_flags & MS_NODIRATIME) && S_ISDIR(inode->i_mode)) in file_is_noatime()
2536 LASSERT(!S_ISDIR(inode->i_mode)); in ll_flush()
2616 if (!S_ISDIR(inode->i_mode)) { in ll_fsync()
2850 if (!S_ISREG(inode->i_mode) && !S_ISDIR(inode->i_mode)) in ll_inode_revalidate_fini()
Dnamei.c257 if ((bits & MDS_INODELOCK_UPDATE) && S_ISDIR(inode->i_mode)) { in ll_md_blocking_ast()
550 !S_ISDIR(inode->i_mode)) { in ll_lookup_it()
/linux-4.4.14/fs/gfs2/
Dinode.c116 } else if (S_ISDIR(mode)) { in gfs2_set_iop()
351 if (S_ISDIR(mode) && dip->i_inode.i_nlink == (u32)-1) in create_ok()
363 if (S_ISDIR(inode->i_mode)) in munge_mode_uid_gid()
372 if (S_ISDIR(inode->i_mode)) in munge_mode_uid_gid()
623 if (S_ISDIR(inode->i_mode)) { in gfs2_create_inode()
661 set_nlink(inode, S_ISDIR(mode) ? 2 : 1); in gfs2_create_inode()
898 if (S_ISDIR(inode->i_mode)) in gfs2_link()
1068 if (S_ISDIR(inode->i_mode)) in gfs2_unlink_inode()
1128 if (S_ISDIR(inode->i_mode)) { in gfs2_unlink()
1384 if (S_ISDIR(ip->i_inode.i_mode)) { in gfs2_rename()
[all …]
Dinode.h47 return S_ISDIR(ip->i_inode.i_mode); in gfs2_is_dir()
Dexport.c105 if (!S_ISDIR(dir->i_mode) || !inode) in gfs2_get_name()
Dfile.c166 if (!S_ISDIR(inode->i_mode) && ip->i_diskflags & GFS2_DIF_JDATA) in gfs2_get_flags()
297 if (!S_ISDIR(inode->i_mode)) { in gfs2_set_flags()
Dsuper.c721 str->di_payload_format = cpu_to_be32(S_ISDIR(ip->i_inode.i_mode) && in gfs2_dinode_out()
1554 if (S_ISDIR(inode->i_mode) && in gfs2_evict_inode()
Drgrp.c1512 if (S_ISDIR(inode->i_mode)) in rg_mblk_search()
2005 if (S_ISDIR(ip->i_inode.i_mode) && (ap->aflags & GFS2_AF_ORLOV)) in gfs2_inplace_reserve()
/linux-4.4.14/tools/power/acpi/os_specific/service_layers/
Dosunixdir.c165 if ((S_ISDIR(temp_stat.st_mode) in acpi_os_get_next_filename()
168 || ((!S_ISDIR(temp_stat.st_mode) in acpi_os_get_next_filename()
/linux-4.4.14/fs/nfs/
Dnfs3acl.c47 if (S_ISDIR(inode->i_mode)) in nfs3_get_acl()
135 if (acl == NULL && (!S_ISDIR(inode->i_mode) || dfacl == NULL)) in __nfs3_proc_setacls()
149 if (S_ISDIR(inode->i_mode)) { in __nfs3_proc_setacls()
219 if (S_ISDIR(inode->i_mode)) { in nfs3_set_acl()
Dinode.c182 if (S_ISREG(mode) || S_ISDIR(mode) || S_ISLNK(mode)) { in nfs_zap_caches_locked()
397 } else if (S_ISDIR(inode->i_mode)) { in nfs_fhget()
674 ((mnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode))) in nfs_getattr()
687 if (S_ISDIR(inode->i_mode)) in nfs_getattr()
981 if (!S_ISDIR(inode->i_mode)) in __nfs_revalidate_inode()
1066 if (S_ISDIR(inode->i_mode)) { in nfs_invalidate_mapping()
1193 if (S_ISDIR(inode->i_mode)) in nfs_wcc_update_inode()
1209 if (S_ISDIR(inode->i_mode)) in nfs_wcc_update_inode()
1504 if (S_ISDIR(inode->i_mode)) in nfs_post_op_update_inode_locked()
1674 if (S_ISDIR(inode->i_mode) && (fattr->valid & NFS_ATTR_FATTR_FSID) && in nfs_update_inode()
[all …]
Dnfs4getroot.c31 || !S_ISDIR(fsinfo.fattr->mode)) { in nfs4_get_rootfh()
Ddir.c1058 (S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode))) in nfs_lookup_verify_inode()
1212 if (inode && S_ISDIR(inode->i_mode)) { in nfs_lookup_revalidate()
1318 if (S_ISDIR(inode->i_mode)) in nfs_dentry_iput()
2006 if (new_inode && !S_ISDIR(new_inode->i_mode)) { in nfs_rename()
2398 if (!S_ISDIR(inode->i_mode)) in nfs_do_access()
Dnfs3proc.c205 if (S_ISDIR(inode->i_mode)) { in nfs3_proc_access()
/linux-4.4.14/fs/afs/
Dsecurity.c91 if (S_ISDIR(vnode->vfs_inode.i_mode)) { in afs_get_auth_inode()
236 ASSERT(S_ISDIR(auth_vnode->vfs_inode.i_mode)); in afs_check_permit()
323 mask, access, S_ISDIR(inode->i_mode) ? "dir" : "file"); in afs_permission()
325 if (S_ISDIR(inode->i_mode)) { in afs_permission()
Dcallback.c79 if (S_ISDIR(vnode->vfs_inode.i_mode)) in afs_broken_callback_work()
/linux-4.4.14/fs/xfs/libxfs/
Dxfs_dir2.c179 ASSERT(S_ISDIR(dp->i_d.di_mode)); in xfs_dir_isempty()
234 ASSERT(S_ISDIR(dp->i_d.di_mode)); in xfs_dir_init()
269 ASSERT(S_ISDIR(dp->i_d.di_mode)); in xfs_dir_createname()
367 ASSERT(S_ISDIR(dp->i_d.di_mode)); in xfs_dir_lookup()
446 ASSERT(S_ISDIR(dp->i_d.di_mode)); in xfs_dir_removename()
508 ASSERT(S_ISDIR(dp->i_d.di_mode)); in xfs_dir_replace()
Dxfs_ialloc.c930 needspace = S_ISDIR(mode) || S_ISREG(mode) || S_ISLNK(mode); in xfs_ialloc_ag_select()
933 if (S_ISDIR(mode)) in xfs_ialloc_ag_select()
/linux-4.4.14/tools/power/cpupower/utils/helpers/
Dsysfs.c363 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in sysfs_get_idlestate_count()
367 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in sysfs_get_idlestate_count()
370 while (stat(file, &statbuf) == 0 && S_ISDIR(statbuf.st_mode)) { in sysfs_get_idlestate_count()
/linux-4.4.14/fs/udf/
Dialloc.c37 if (S_ISDIR(inode->i_mode)) in udf_free_inode()
98 if (S_ISDIR(mode)) in udf_new_inode()
Dinode.c1211 if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || in udf_setsize()
1680 if (S_ISDIR(inode->i_mode) && inode->i_nlink > 0) in udf_update_inode()
1790 else if (S_ISDIR(inode->i_mode)) in udf_update_inode()
/linux-4.4.14/fs/jfs/
Djfs_inode.c88 rc = diAlloc(parent, S_ISDIR(mode), inode); in ialloc()
122 if (S_ISDIR(mode)) { in ialloc()
Dnamei.c1144 if (S_ISDIR(old_ip->i_mode)) { in jfs_rename()
1188 if (S_ISDIR(new_ip->i_mode)) { in jfs_rename()
1196 if (!S_ISDIR(old_ip->i_mode) && new_ip) in jfs_rename()
1239 if (S_ISDIR(old_ip->i_mode)) in jfs_rename()
1254 if (S_ISDIR(old_ip->i_mode)) { in jfs_rename()
1345 if (new_ip && !S_ISDIR(new_ip->i_mode)) in jfs_rename()
Dioctl.c89 if (!S_ISDIR(inode->i_mode)) in jfs_ioctl()
Dinode.c57 } else if (S_ISDIR(inode->i_mode)) { in jfs_iget()
Djfs_txnmgr.c605 if (S_ISDIR(ip->i_mode) && (type & tlckXTREE) && in txLock()
727 if (S_ISDIR(ip->i_mode)) in txLock()
1018 if (S_ISDIR(ip->i_mode)) in txMaplock()
1725 if (S_ISDIR(ip->i_mode)) in xtLog()
1910 if (((tblk->xflag & COMMIT_PWMAP) || S_ISDIR(ip->i_mode)) in xtLog()
Djfs_xtree.c715 if ((sp->header.flag & BT_ROOT) && (!S_ISDIR(ip->i_mode)) && in xtSplitUp()
3089 if (S_ISDIR(ip->i_mode)) in xtInitRoot()
3318 if (S_ISDIR(ip->i_mode) && (teof == 0)) in xtTruncate()
3677 if (S_ISDIR(ip->i_mode) && !newsize) in xtTruncate()
Djfs_imap.c689 if (S_ISDIR(ip->i_mode) && (lid = jfs_ip->xtlid)) { in diWrite()
3059 if (S_ISDIR(ip->i_mode)) { in copy_from_dinode()
3106 if (S_ISDIR(ip->i_mode)) { in copy_from_dinode()
/linux-4.4.14/fs/ocfs2/
Dnamei.c212 if (S_ISDIR(mode)) in ocfs2_get_init_inode()
284 if (S_ISDIR(mode) && (dir->i_nlink >= ocfs2_link_max(osb))) { in ocfs2_mknod()
347 if (S_ISDIR(mode) && !ocfs2_supports_inline_data(osb)) { in ocfs2_mknod()
370 S_ISDIR(mode), in ocfs2_mknod()
397 if (S_ISDIR(mode)) { in ocfs2_mknod()
578 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()
866 if (S_ISDIR(inode->i_mode)) { in ocfs2_inode_is_unlinkable()
946 if (S_ISDIR(inode->i_mode)) { in ocfs2_unlink()
997 if (S_ISDIR(inode->i_mode)) in ocfs2_unlink()
[all …]
Dacl.c260 if (!S_ISDIR(inode->i_mode)) in ocfs2_set_acl()
384 if (S_ISDIR(inode->i_mode)) { in ocfs2_init_acl()
Ddcache.c106 S_ISDIR(inode->i_mode)); in ocfs2_dentry_revalidate()
Dinode.c400 if (S_ISDIR(inode->i_mode)) in ocfs2_populate_inode()
774 if (S_ISDIR(inode->i_mode)) { in ocfs2_wipe_inode()
Dioctl.c101 if (!S_ISDIR(inode->i_mode)) in ocfs2_set_inode_attr()
Dfile.c230 ((inode->i_sb->s_flags & MS_NODIRATIME) && S_ISDIR(inode->i_mode))) in ocfs2_should_update_atime()
245 ((vfsmnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode))) in ocfs2_should_update_atime()
/linux-4.4.14/fs/notify/dnotify/
Ddnotify.c98 if (!S_ISDIR(inode->i_mode)) in dnotify_handle_event()
160 if (!S_ISDIR(inode->i_mode)) in dnotify_flush()
287 if (!S_ISDIR(inode->i_mode)) { in fcntl_dirnotify()
/linux-4.4.14/Documentation/ia64/
Daliasing-test.c103 if (r == 0 && S_ISDIR(buf.st_mode)) { in scan_tree()
192 if (r == 0 && S_ISDIR(buf.st_mode)) { in scan_rom()
/linux-4.4.14/include/uapi/linux/
Dstat.h21 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) macro
/linux-4.4.14/fs/overlayfs/
Dinode.c95 if (S_ISDIR(inode->i_mode)) { in ovl_permission()
139 (S_ISREG(mode) || S_ISDIR(mode) || S_ISLNK(mode))) in ovl_permission()
255 return S_ISDIR(dentry->d_inode->i_mode); in ovl_need_xattr_filter()
Dsuper.c83 if (oe->numlower && S_ISDIR(dentry->d_inode->i_mode)) in ovl_path_type()
255 if (!S_ISDIR(inode->i_mode) || !inode->i_op->getxattr) in ovl_is_opaquedir()
506 if (prev && (!S_ISDIR(prev->d_inode->i_mode) || in ovl_lookup()
507 !S_ISDIR(this->d_inode->i_mode))) { in ovl_lookup()
520 if (!S_ISDIR(this->d_inode->i_mode)) in ovl_lookup()
824 if (!S_ISDIR(path->dentry->d_inode->i_mode)) { in ovl_mount_dir_noesc()
Dcopy_up.c267 if (!S_ISDIR(stat->mode)) in ovl_copy_up_locked()
Ddir.c238 if (!S_ISDIR(stat.mode)) in ovl_clear_empty()
350 if (S_ISDIR(stat->mode)) { in ovl_create_over_whiteout()
/linux-4.4.14/fs/ext2/
Dialloc.c125 is_directory = S_ISDIR(inode->i_mode); in ext2_free_inode()
453 if (S_ISDIR(mode)) { in ext2_new_inode()
529 if (S_ISDIR(mode)) in ext2_new_inode()
534 if (S_ISDIR(mode)) { in ext2_new_inode()
Dacl.c210 if (!S_ISDIR(inode->i_mode)) in ext2_set_acl()
Dinode.c528 if (S_ISDIR(inode->i_mode) && IS_DIRSYNC(inode)) in ext2_alloc_branch()
1186 if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || in ext2_truncate_blocks()
1203 if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || in ext2_setsize()
1408 } else if (S_ISDIR(inode->i_mode)) { in ext2_iget()
Dnamei.c354 if (S_ISDIR(old_inode->i_mode)) { in ext2_rename()
Dext2.h268 if (S_ISDIR(mode)) in ext2_mask_flags()
/linux-4.4.14/fs/
Dinode.c917 if (S_ISDIR(inode->i_mode)) { in lockdep_annotate_inode_mutex_key()
968 if (inode1 && !S_ISDIR(inode1->i_mode)) in lock_two_nondirectories()
970 if (inode2 && !S_ISDIR(inode2->i_mode) && inode2 != inode1) in lock_two_nondirectories()
982 if (inode1 && !S_ISDIR(inode1->i_mode)) in unlock_two_nondirectories()
984 if (inode2 && !S_ISDIR(inode2->i_mode) && inode2 != inode1) in unlock_two_nondirectories()
1615 if ((inode->i_sb->s_flags & MS_NODIRATIME) && S_ISDIR(inode->i_mode)) in atime_needs_update()
1620 if ((mnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode)) in atime_needs_update()
1809 if (S_ISDIR(inode->i_mode) && IS_DIRSYNC(inode)) in inode_needs_sync()
1940 if (S_ISDIR(mode)) in inode_init_owner()
Dopen.c76 if (S_ISDIR(inode->i_mode)) in vfs_truncate()
292 if (!S_ISREG(inode->i_mode) && !S_ISDIR(inode->i_mode)) in vfs_fallocate()
457 if (!S_ISDIR(inode->i_mode)) in SYSCALL_DEFINE1()
593 if (!S_ISDIR(inode->i_mode)) in chown_common()
Dsync.c333 if (!S_ISREG(i_mode) && !S_ISBLK(i_mode) && !S_ISDIR(i_mode) && in SYSCALL_DEFINE4()
Dposix_acl.c580 if (!S_ISDIR(*mode)) in posix_acl_create()
807 if (handler->flags == ACL_TYPE_DEFAULT && !S_ISDIR(inode->i_mode)) in posix_acl_xattr_set()
Ddcache.c865 if (S_ISDIR(inode->i_mode) || !d_unhashed(alias)) { in __d_find_alias()
880 if (S_ISDIR(inode->i_mode) || !d_unhashed(alias)) { in __d_find_alias()
1717 if (S_ISDIR(inode->i_mode)) { in d_flags_for_inode()
1875 if (S_ISDIR(inode->i_mode) && !hlist_empty(&inode->i_dentry)) { in d_instantiate_no_diralias()
2390 isdir = S_ISDIR(inode->i_mode); in d_delete()
2782 if (S_ISDIR(inode->i_mode)) { in d_splice_alias()
Dxattr.c66 if (!S_ISREG(inode->i_mode) && !S_ISDIR(inode->i_mode)) in xattr_permission()
68 if (S_ISDIR(inode->i_mode) && (inode->i_mode & S_ISVTX) && in xattr_permission()
Dioctl.c580 if (S_ISDIR(inode->i_mode) || S_ISREG(inode->i_mode) || in do_vfs_ioctl()
Dnamei.c339 if (S_ISDIR(inode->i_mode)) { in generic_permission()
441 (S_ISREG(mode) || S_ISDIR(mode) || S_ISLNK(mode))) in sb_permission()
4015 if (S_ISDIR(inode->i_mode)) in vfs_link()
/linux-4.4.14/security/tomoyo/
Drealpath.c101 if (inode && S_ISDIR(inode->i_mode)) { in tomoyo_get_absolute_path()
129 if (inode && S_ISDIR(inode->i_mode)) { in tomoyo_get_dentry_path()
/linux-4.4.14/fs/xfs/
Dxfs_acl.c193 if (!S_ISDIR(inode->i_mode)) in __xfs_set_acl()
273 if (!S_ISDIR(inode->i_mode)) in posix_acl_default_exists()
Dxfs_inode.c805 if ((pip->i_d.di_mode & S_ISGID) && S_ISDIR(mode)) { in xfs_ialloc()
867 if (S_ISDIR(mode)) { in xfs_ialloc()
1138 int is_dir = S_ISDIR(mode); in xfs_create()
1435 ASSERT(!S_ISDIR(sip->i_d.di_mode)); in xfs_link()
2522 int is_dir = S_ISDIR(ip->i_d.di_mode); in xfs_remove()
2769 if (S_ISDIR(ip2->i_d.di_mode)) { in xfs_cross_rename()
2777 if (!S_ISDIR(ip1->i_d.di_mode)) { in xfs_cross_rename()
2796 if (S_ISDIR(ip1->i_d.di_mode)) { in xfs_cross_rename()
2804 if (!S_ISDIR(ip2->i_d.di_mode)) { in xfs_cross_rename()
2901 bool src_is_directory = S_ISDIR(src_ip->i_d.di_mode); in xfs_rename()
[all …]
Dxfs_ioctl.c100 !S_ISDIR(inode->i_mode) && in xfs_find_handle()
165 if (!S_ISDIR(file_inode(parfilp)->i_mode)) in xfs_handle_to_dentry()
217 if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode))) { in xfs_open_by_handle()
240 if (S_ISDIR(inode->i_mode) && (fmode & FMODE_WRITE)) { in xfs_open_by_handle()
965 if (S_ISDIR(ip->i_d.di_mode)) { in xfs_set_diflags()
1119 !S_ISDIR(ip->i_d.di_mode)) in xfs_ioctl_setattr_check_extsize()
Dxfs_filestream.c154 ASSERT(S_ISDIR(ip->i_d.di_mode)); in xfs_filestream_pick_ag()
Dxfs_dir2_readdir.c668 ASSERT(S_ISDIR(dp->i_d.di_mode)); in xfs_readdir()
Dxfs_mount.c868 if (unlikely(!S_ISDIR(rip->i_d.di_mode))) { in xfs_mountfs()
/linux-4.4.14/fs/hfs/
Dinode.c200 if (S_ISDIR(mode)) { in hfs_new_inode()
242 if (S_ISDIR(inode->i_mode)) { in hfs_delete_inode()
458 if (S_ISDIR(main_inode->i_mode)) { in hfs_write_inode()
617 ((S_ISDIR(inode->i_mode) && in hfs_inode_setattr()
629 attr->ia_mode &= S_ISDIR(inode->i_mode) ? ~hsb->s_dir_umask: ~hsb->s_file_umask; in hfs_inode_setattr()
Dcatalog.c41 if (S_ISDIR(inode->i_mode)) { in hfs_cat_build_record()
101 entry_size = hfs_cat_build_thread(sb, &entry, S_ISDIR(inode->i_mode) ? in hfs_cat_create()
Ddir.c259 if (S_ISDIR(inode->i_mode) && inode->i_size != 2) in hfs_remove()
/linux-4.4.14/scripts/dtc/
Dfstree.c67 } else if (S_ISDIR(st.st_mode)) { in read_fstree()
/linux-4.4.14/fs/reiserfs/
Dnamei.c574 if (!S_ISDIR(inode->i_mode) && visible) in reiserfs_add_entry()
1369 if (S_ISDIR(old_inode_mode)) { in reiserfs_rename()
1479 if (S_ISDIR(old_inode->i_mode)) { in reiserfs_rename()
1527 if (S_ISDIR(old_inode_mode)) in reiserfs_rename()
1534 if (S_ISDIR(old_inode_mode)) { in reiserfs_rename()
1552 RFALSE(S_ISDIR(old_inode_mode) && in reiserfs_rename()
1580 if (S_ISDIR(new_dentry_inode->i_mode)) { in reiserfs_rename()
1589 if (S_ISDIR(old_inode_mode)) { in reiserfs_rename()
Dinode.c1178 if (S_ISLNK(inode->i_mode) || S_ISDIR(inode->i_mode)) in real_space_diff()
1200 if (S_ISLNK(inode->i_mode) || S_ISDIR(inode->i_mode)) { in to_real_used_space()
1215 if (S_ISLNK(inode->i_mode) || S_ISDIR(inode->i_mode)) { in to_fake_used_blocks()
1337 if (S_ISDIR(inode->i_mode) || S_ISLNK(inode->i_mode)) in init_inode()
1359 } else if (S_ISDIR(inode->i_mode)) { in init_inode()
1999 set_nlink(inode, (S_ISDIR(mode) ? 2 : 1)); in reiserfs_new_inode()
2057 if (old_format_only(sb) || S_ISDIR(mode) || S_ISLNK(mode)) in reiserfs_new_inode()
2083 if (S_ISDIR(mode)) { in reiserfs_new_inode()
Dxattr_acl.c260 if (!S_ISDIR(inode->i_mode)) in __reiserfs_set_acl()
Dstree.c1884 (S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) in reiserfs_do_truncate()
1889 if (S_ISDIR(inode->i_mode)) { in reiserfs_do_truncate()
Dsuper.c314 if (truncate && S_ISDIR(inode->i_mode)) { in finish_unfinished()
432 if (S_ISDIR(inode->i_mode)) in add_save_link()
/linux-4.4.14/fs/ext4/
Dialloc.c299 is_directory = S_ISDIR(inode->i_mode); in ext4_free_inode()
477 if (S_ISDIR(mode) && in find_group_orlov()
769 (S_ISREG(mode) || S_ISDIR(mode) || S_ISLNK(mode))) { in __ext4_new_inode()
818 if (S_ISDIR(mode)) in __ext4_new_inode()
1000 if (S_ISDIR(mode)) { in __ext4_new_inode()
1023 if (S_ISDIR(mode)) in __ext4_new_inode()
1099 if (S_ISDIR(mode) || S_ISREG(mode) || S_ISLNK(mode)) { in __ext4_new_inode()
Dcrypto_policy.c109 if (!S_ISDIR(inode->i_mode)) in ext4_process_policy()
Dacl.c213 if (!S_ISDIR(inode->i_mode)) in __ext4_set_acl()
Dcrypto_key.c174 else if (S_ISDIR(inode->i_mode) || S_ISLNK(inode->i_mode)) in _ext4_get_encryption_info()
Dinline.c438 if (S_ISDIR(inode->i_mode) || in ext4_destroy_inline_data_nolock()
1183 if (S_ISDIR(inode->i_mode)) { in ext4_convert_inline_data_nolock()
1221 if (!S_ISDIR(inode->i_mode)) { in ext4_convert_inline_data_nolock()
Dnamei.c1588 (S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || in ext4_lookup()
2402 if (!S_ISDIR(inode->i_mode) || inode->i_nlink > 2) in ext4_dec_count()
2773 J_ASSERT((S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || in ext4_orphan_add()
3567 if (S_ISDIR(old.inode->i_mode)) { in ext4_rename()
3748 if (S_ISDIR(old.inode->i_mode)) { in ext4_cross_rename()
3754 if (S_ISDIR(new.inode->i_mode)) { in ext4_cross_rename()
Dinode.c3582 if (S_ISDIR(inode->i_mode)) in ext4_can_truncate()
4313 if ((S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || in ext4_iget()
4318 } else if (S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || in ext4_iget()
4332 } else if (S_ISDIR(inode->i_mode)) { in ext4_iget()
Dindirect.c944 if (S_ISDIR(inode->i_mode) || S_ISLNK(inode->i_mode)) in ext4_clear_blocks()
/linux-4.4.14/fs/coda/
Dcache.c108 if ( !inode || !S_ISDIR(inode->i_mode)) in coda_flag_inode_children()
Dcnode.c33 } else if (S_ISDIR(inode->i_mode)) { in coda_fill_inode()
Dcoda_linux.c150 if ( S_ISDIR(mode) ) { in coda_iattr_to_vattr()
Dfile.c199 if (!(S_ISREG(coda_inode->i_mode) || S_ISDIR(coda_inode->i_mode) || in coda_fsync()
/linux-4.4.14/fs/9p/
Dacl.c201 if (S_ISDIR(mode)) in v9fs_acl_mode()
314 if (!S_ISDIR(inode->i_mode)) { in v9fs_xattr_set_acl()
Dvfs_inode.c68 if (S_ISDIR(mode)) in unixmode2p9mode()
1017 if (S_ISDIR(new_inode->i_mode)) in v9fs_vfs_rename()
1022 if (S_ISDIR(old_inode->i_mode)) { in v9fs_vfs_rename()
1179 if ((S_ISREG(inode->i_mode)) || (S_ISDIR(inode->i_mode))) { in v9fs_stat2inode()
/linux-4.4.14/fs/adfs/
Dinode.c143 if (S_ISDIR(inode->i_mode)) in adfs_mode2atts()
277 if (S_ISDIR(inode->i_mode)) { in adfs_iget()
/linux-4.4.14/fs/hfsplus/
Dposix_acl.c80 if (!S_ISDIR(inode->i_mode)) in hfsplus_set_posix_acl()
Dcatalog.c109 if (S_ISDIR(inode->i_mode)) { in hfsplus_cat_build_record()
269 S_ISDIR(inode->i_mode) ? in hfsplus_create_cat()
304 if (S_ISDIR(inode->i_mode)) in hfsplus_create_cat()
Dinode.c392 if (S_ISDIR(inode->i_mode)) { in hfsplus_new_inode()
421 if (S_ISDIR(inode->i_mode)) { in hfsplus_delete_inode()
565 if (S_ISDIR(main_inode->i_mode)) { in hfsplus_cat_write_inode()
Dxattr.c276 !S_ISDIR(inode->i_mode)) || in __hfsplus_setxattr()
510 !S_ISDIR(inode->i_mode)) || in __hfsplus_getxattr()
699 !S_ISDIR(inode->i_mode)) || in hfsplus_listxattr()
/linux-4.4.14/fs/btrfs/
Dacl.c95 if (!S_ISDIR(inode->i_mode)) in __btrfs_set_acl()
Dtree-log.c423 if (S_ISDIR(mode)) in overwrite_item()
443 if (S_ISDIR(mode)) in overwrite_item()
510 S_ISDIR(btrfs_inode_mode(eb, src_item)) && in overwrite_item()
511 S_ISDIR(btrfs_inode_mode(path->nodes[0], dst_item))) { in overwrite_item()
1482 if (S_ISDIR(inode->i_mode)) { in fixup_inode_link_count()
2320 if (S_ISDIR(mode)) { in replay_one_buffer()
4587 if (S_ISDIR(inode->i_mode) || in btrfs_log_inode()
4602 if (S_ISDIR(inode->i_mode) || in btrfs_log_inode()
4622 if (S_ISDIR(inode->i_mode)) { in btrfs_log_inode()
4878 if (inode_only == LOG_INODE_ALL && S_ISDIR(inode->i_mode)) { in btrfs_log_inode()
[all …]
Dexport.c239 if (!S_ISDIR(dir->i_mode)) in btrfs_get_name()
Dsend.c2566 } else if (S_ISDIR(mode)) { in send_create_inode()
2694 if (S_ISDIR(sctx->cur_inode_mode)) { in send_create_inode_if_needed()
3672 if (S_ISDIR(sctx->cur_inode_mode) && sctx->parent_root) { in process_recorded_refs()
3682 if (S_ISDIR(sctx->cur_inode_mode) && sctx->parent_root && in process_recorded_refs()
3707 if (S_ISDIR(sctx->cur_inode_mode)) { in process_recorded_refs()
3732 if (S_ISDIR(sctx->cur_inode_mode) && sctx->cur_inode_deleted) { in process_recorded_refs()
3760 } else if (S_ISDIR(sctx->cur_inode_mode) && in process_recorded_refs()
3770 } else if (!S_ISDIR(sctx->cur_inode_mode)) { in process_recorded_refs()
Dioctl.c96 if (S_ISDIR(mode)) in btrfs_mask_flags()
3233 if (S_ISDIR(src->i_mode)) in btrfs_ioctl_file_extent_same()
3259 } else if (S_ISDIR(dst->i_mode)) { in btrfs_ioctl_file_extent_same()
3915 if (S_ISDIR(src->i_mode) || S_ISDIR(inode->i_mode)) in btrfs_ioctl_clone()
/linux-4.4.14/init/
Dinitramfs.c317 if (S_ISDIR(st.st_mode)) in clean_path()
352 } else if (S_ISDIR(mode)) { in do_name()
589 if (S_ISDIR(st.st_mode)) in clean_rootfs()
/linux-4.4.14/drivers/staging/lustre/lustre/lmv/
Dlmv_internal.h87 if (!body || !S_ISDIR(body->mode) || !body->eadatasize) in lmv_get_mea()
/linux-4.4.14/fs/ufs/
Dialloc.c93 is_directory = S_ISDIR(inode->i_mode); in ufs_free_inode()
278 if (S_ISDIR(mode)) { in ufs_new_inode()
Dnamei.c261 if (S_ISDIR(old_inode->i_mode)) { in ufs_rename()
Dinode.c525 } else if (S_ISDIR(inode->i_mode)) { in ufs_set_inode_ops()
1171 if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || in ufs_truncate()
1196 if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || in ufs_truncate_blocks()
/linux-4.4.14/fs/f2fs/
Dacl.c228 if (!S_ISDIR(inode->i_mode)) in __f2fs_set_acl()
367 if (!S_ISDIR(*mode)) in f2fs_acl_create()
Dtrace.c43 else if (S_ISDIR(inode->i_mode)) in __file_type()
Ddir.c395 if (S_ISDIR(inode->i_mode)) { in init_inode_metadata()
456 if (S_ISDIR(inode->i_mode)) { in update_parent_metadata()
663 if (S_ISDIR(inode->i_mode)) { in f2fs_drop_nlink()
673 if (S_ISDIR(inode->i_mode)) { in f2fs_drop_nlink()
Dcrypto_policy.c95 if (!S_ISDIR(inode->i_mode)) in f2fs_process_policy()
Dcrypto_key.c167 else if (S_ISDIR(inode->i_mode) || S_ISLNK(inode->i_mode)) in _f2fs_get_encryption_info()
Dnamei.c613 if (S_ISDIR(old_inode->i_mode)) { in f2fs_rename()
778 if (S_ISDIR(old_inode->i_mode)) { in f2fs_cross_rename()
786 if (S_ISDIR(new_inode->i_mode)) { in f2fs_cross_rename()
Dcheckpoint.c745 if (!S_ISDIR(inode->i_mode) && !S_ISREG(inode->i_mode) && in update_dirty_page()
749 if (!S_ISDIR(inode->i_mode)) { in update_dirty_page()
793 if (!S_ISDIR(inode->i_mode)) in remove_dirty_dir_inode()
Dnode.h378 if (S_ISDIR(inode->i_mode)) in set_cold_node()
Df2fs.h1062 if (S_ISDIR(inode->i_mode)) in inode_inc_dirty_pages()
1073 if (!S_ISDIR(inode->i_mode) && !S_ISREG(inode->i_mode) && in inode_dec_dirty_pages()
1079 if (S_ISDIR(inode->i_mode)) in inode_dec_dirty_pages()
2126 return (S_ISREG(mode) || S_ISDIR(mode) || S_ISLNK(mode)); in f2fs_may_encrypt()
Ddata.c1147 if (S_ISDIR(inode->i_mode)) { in f2fs_write_data_page()
1352 if (S_ISDIR(inode->i_mode) && wbc->sync_mode == WB_SYNC_NONE && in f2fs_write_data_pages()
1363 if (!S_ISDIR(inode->i_mode)) { in f2fs_write_data_pages()
Dinode.c195 } else if (S_ISDIR(inode->i_mode)) { in f2fs_iget()
Dinline.c42 if (!S_ISDIR(inode->i_mode)) in f2fs_may_inline_dentry()
Dsegment.h527 if (S_ISDIR(inode->i_mode) || f2fs_is_atomic_file(inode)) in need_inplace_update()
Dfile.c600 if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || in f2fs_truncate()
1276 if (S_ISDIR(mode)) in f2fs_mask_flags()
Dsegment.c1196 if (S_ISDIR(inode->i_mode)) in __get_segment_type_4()
1213 if (S_ISDIR(inode->i_mode)) in __get_segment_type_6()
Dsuper.c1284 if (!S_ISDIR(root->i_mode) || !root->i_blocks || !root->i_size) { in f2fs_fill_super()
/linux-4.4.14/fs/ubifs/
Dioctl.c169 if (!S_ISDIR(inode->i_mode)) in ubifs_ioctl()
Ddir.c64 if (!S_ISDIR(dir->i_mode)) in inherit_flags()
72 if (!S_ISDIR(mode)) in inherit_flags()
976 int is_dir = S_ISDIR(old_inode->i_mode); in ubifs_rename()
Ddebug.c274 if (!S_ISDIR(inode->i_mode)) in ubifs_dump_inode()
1116 if (!S_ISDIR(dir->i_mode)) in dbg_check_dir()
1858 if (S_ISDIR(fscki->mode)) { in add_inode()
2157 if (S_ISDIR(fscki->mode)) { in check_inodes()
/linux-4.4.14/security/
Dinode.c82 int is_dir = S_ISDIR(mode); in securityfs_create_file()
/linux-4.4.14/fs/exportfs/
Dexpfs.c287 if (!dir || !S_ISDIR(dir->i_mode)) in get_name()
396 if (connectable && !S_ISDIR(inode->i_mode)) { in exportfs_encode_fh()
/linux-4.4.14/fs/isofs/
Dexport.c54 if (!S_ISDIR(child_inode->i_mode)) { in isofs_export_get_parent()
Dinode.c899 if (!S_ISDIR(inode->i_mode)) { in isofs_fill_super()
1395 if (S_ISDIR(inode->i_mode) && sbi->s_overriderockperm && in isofs_read_inode()
1415 } else if (S_ISDIR(inode->i_mode)) { in isofs_read_inode()
/linux-4.4.14/fs/fat/
Dfat.h161 if (S_ISDIR(inode->i_mode)) { in fat_mode_can_hold_ro()
190 if (S_ISDIR(inode->i_mode)) in fat_make_attrs()
Dmisc.c145 if (S_ISDIR(inode->i_mode) && IS_DIRSYNC(inode)) { in fat_chain_add()
Dnamei_vfat.c751 if (!S_ISDIR(inode->i_mode)) in vfat_lookup()
925 is_dir = S_ISDIR(old_inode->i_mode); in vfat_rename()
Dfile.c34 int is_dir = S_ISDIR(inode->i_mode); in fat_ioctl_set_attributes()
Dinode.c378 if (S_ISDIR(inode->i_mode) && sbi->options.nfs) { in fat_attach()
397 if (S_ISDIR(inode->i_mode) && sbi->options.nfs) { in fat_detach()
775 if (S_ISDIR(inode->i_mode)) in __fat_write_inode()
Dnamei_msdos.c452 is_dir = S_ISDIR(old_inode->i_mode); in do_msdos_rename()
/linux-4.4.14/fs/proc/
Dproc_sysctl.c449 if (!S_ISDIR(table->mode)) { in proc_sys_make_inode()
871 if (!S_ISDIR(entry->mode)) in find_subdir()
1112 if (S_ISDIR(link->mode) && S_ISDIR(entry->mode)) in get_links()
1530 ((S_ISDIR(link->mode) && S_ISDIR(entry->mode)) || in put_links()
Dinternal.h196 return S_ISDIR(pde->mode) && !pde->proc_iops; in is_empty_pde()
Dgeneric.c570 if (S_ISDIR(de->mode)) in remove_proc_entry()
612 if (S_ISDIR(de->mode)) in remove_proc_subtree()
/linux-4.4.14/fs/omfs/
Ddir.c96 if (S_ISDIR(inode->i_mode)) { in omfs_make_empty()
244 if (S_ISDIR(inode->i_mode) && in omfs_remove()
Dinode.c118 if (S_ISDIR(inode->i_mode)) in __omfs_write_inode()
/linux-4.4.14/arch/s390/hypfs/
Dinode.c103 if (S_ISDIR(mode)) in hypfs_make_inode()
352 } else if (S_ISDIR(mode)) { in hypfs_create_file()
/linux-4.4.14/fs/ocfs2/dlmfs/
Ddlmfs.c139 if (S_ISDIR(inode->i_mode)) in dlmfs_file_open()
186 if (S_ISDIR(inode->i_mode)) in dlmfs_file_release()
/linux-4.4.14/fs/nfsd/
Dnfs4acl.c148 if (S_ISDIR(inode->i_mode)) { in nfsd4_get_nfs4_acl()
776 if (S_ISDIR(inode->i_mode)) in nfsd4_set_nfs4_acl()
789 if (S_ISDIR(inode->i_mode)) { in nfsd4_set_nfs4_acl()
Dvfs.c312 if (!S_ISDIR(inode->i_mode) && in nfsd_sanitize_attrs()
1194 if (!S_ISREG(type) && !S_ISDIR(type) && !special_file(type)) { in nfsd_create()
Dexport.c349 if (!S_ISDIR(inode->i_mode) && in check_export()
/linux-4.4.14/fs/notify/
Dfsnotify.c56 if (!S_ISDIR(inode->i_mode)) in __fsnotify_update_child_dentry_flags()
/linux-4.4.14/fs/ceph/
Dacl.c105 if (!S_ISDIR(inode->i_mode)) { in ceph_set_acl()
Dinode.c78 BUG_ON(!S_ISDIR(parent->i_mode)); in ceph_get_snapdir()
859 if (S_ISDIR(inode->i_mode) && in fill_inode()
909 if (S_ISDIR(inode->i_mode)) in fill_inode()
2086 if (S_ISDIR(inode->i_mode)) { in ceph_getattr()
Dcaps.c495 if (S_ISDIR(ci->vfs_inode.i_mode)) { in __check_cap_issue()
837 (!S_ISDIR(ci->vfs_inode.i_mode) && /* ignore readdir cache */ in __ceph_caps_used()
1614 } else if (S_ISDIR(inode->i_mode) && in ceph_check_caps()
1655 !S_ISDIR(inode->i_mode) && /* ignore readdir cache */ in ceph_check_caps()
1982 if (S_ISDIR(inode->i_mode) && !list_empty(&ci->i_unsafe_dirops)) { in unsafe_request_wait()
2803 if (!S_ISDIR(inode->i_mode) && /* don't invalidate readdir cache */ in handle_cap_grant()
Dxattr.c275 if (S_ISDIR(inode->i_mode)) in ceph_inode_vxattrs()
Dfile.c217 if (S_ISDIR(inode->i_mode)) in ceph_open()
/linux-4.4.14/fs/configfs/
Dinode.c203 if (S_ISDIR(mode) || S_ISLNK(mode)) in configfs_create()
/linux-4.4.14/fs/minix/
Dnamei.c202 if (S_ISDIR(old_inode->i_mode)) { in minix_rename()
Dinode.c449 } else if (S_ISDIR(inode->i_mode)) { in minix_set_inode()
643 if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || S_ISLNK(inode->i_mode))) in minix_truncate()
/linux-4.4.14/fs/sysv/
Dnamei.c223 if (S_ISDIR(old_inode->i_mode)) { in sysv_rename()
Dinode.c160 } else if (S_ISDIR(inode->i_mode)) { in sysv_set_inode()
Ditree.c374 if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || in sysv_truncate()
/linux-4.4.14/fs/nilfs2/
Dnilfs.h228 if (S_ISDIR(mode)) in nilfs_mask_flags()
Dinode.c376 if (S_ISREG(mode) || S_ISDIR(mode) || S_ISLNK(mode)) { in nilfs_new_inode()
472 if (S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || in nilfs_read_inode_common()
507 } else if (S_ISDIR(inode->i_mode)) { in __nilfs_read_inode()
Dnamei.c376 if (S_ISDIR(old_inode->i_mode)) { in nilfs_rename()
Dsuper.c935 if (!S_ISDIR(inode->i_mode) || !inode->i_blocks || !inode->i_size) { in nilfs_get_root_dentry()
/linux-4.4.14/fs/jffs2/
Dacl.c258 if (!S_ISDIR(inode->i_mode)) in jffs2_set_acl()
Dwrite.c635 if (S_ISDIR(OFNI_EDONI_2SFFJ(dead_f)->i_mode)) { in jffs2_do_unlink()
Dfs.c448 if (S_ISDIR(mode)) in jffs2_new_inode()
/linux-4.4.14/fs/freevxfs/
Dvxfs_inode.c322 } else if (S_ISDIR(ip->i_mode)) { in vxfs_iget()
/linux-4.4.14/fs/cifs/
Dioctl.c101 if (S_ISDIR(src_inode->i_mode)) in cifs_ioctl_clone()
Dcifsfs.c627 if (!S_ISDIR(dir->i_mode)) { in cifs_get_root()
Dinode.c897 if (S_ISDIR(inode->i_mode) && !hlist_empty(&inode->i_dentry))
2352 if (S_ISDIR(inode->i_mode))
/linux-4.4.14/fs/exofs/
Dnamei.c243 if (S_ISDIR(old_inode->i_mode)) { in exofs_rename()
Dsuper.c830 if (!S_ISDIR(root->i_mode)) { in exofs_fill_super()
/linux-4.4.14/fs/ecryptfs/
Dinode.c73 else if (S_ISDIR(inode->i_mode)) in ecryptfs_inode_set()
78 if (S_ISDIR(inode->i_mode)) in ecryptfs_inode_set()
226 if (S_ISDIR(ecryptfs_inode->i_mode)) { in ecryptfs_initialize_file()
/linux-4.4.14/fs/ncpfs/
Dinode.c275 } else if (S_ISDIR(inode->i_mode)) { in ncp_iget()
303 if (S_ISDIR(inode->i_mode)) { in ncp_evict_inode()
913 if (S_ISDIR(inode->i_mode)) { in ncp_notify_change()
/linux-4.4.14/tools/lib/traceevent/
Devent-plugin.c359 if (!S_ISDIR(st.st_mode)) in load_plugins_dir()
/linux-4.4.14/drivers/staging/rdma/ipath/
Dipath_fs.c64 if (S_ISDIR(mode)) { in ipathfs_mknod()
/linux-4.4.14/fs/autofs4/
Dinode.c361 if (S_ISDIR(mode)) { in autofs4_get_inode()
/linux-4.4.14/fs/logfs/
Ddir.c663 int isdir = S_ISDIR(old_inode->i_mode); in logfs_rename_target()
669 BUG_ON(isdir != S_ISDIR(new_inode->i_mode)); in logfs_rename_target()
Dsegment.c271 if (S_ISDIR(inode->i_mode)) in obj_type()
/linux-4.4.14/fs/qnx4/
Dinode.c314 } else if (S_ISDIR(inode->i_mode)) { in qnx4_iget()
/linux-4.4.14/security/apparmor/
Dfile.c286 flags |= profile->path_flags | (S_ISDIR(cond->mode) ? PATH_IS_DIR : 0); in aa_path_perm()
/linux-4.4.14/fs/bfs/
Ddir.c220 if (S_ISDIR(old_inode->i_mode)) in bfs_rename()
/linux-4.4.14/arch/um/os-Linux/
Dfile.c137 if (S_ISDIR(buf.ust_mode)) in os_file_type()
/linux-4.4.14/tools/perf/util/
Dutil.c102 else if (S_ISDIR(statbuf.st_mode)) in rm_rf()
/linux-4.4.14/fs/cramfs/
Dinode.c309 if (!S_ISDIR(super.root.mode)) { in cramfs_fill_super()
/linux-4.4.14/tools/power/cpupower/lib/
Dsysfs.c669 return S_ISDIR(statbuf.st_mode) ? 0 : -ENOSYS; in sysfs_cpu_exists()
/linux-4.4.14/drivers/infiniband/hw/qib/
Dqib_fs.c71 if (S_ISDIR(mode)) { in qibfs_mknod()
/linux-4.4.14/include/trace/events/
Df2fs.h902 __entry->dir = S_ISDIR(page->mapping->host->i_mode);
996 __entry->dir = S_ISDIR(inode->i_mode);
/linux-4.4.14/fs/ntfs/
Ddir.c99 BUG_ON(!S_ISDIR(VFS_I(dir_ni)->i_mode)); in ntfs_lookup_inode_by_name()
1514 BUG_ON(!S_ISDIR(vi->i_mode)); in ntfs_dir_fsync()
Dmft.c2272 if (!S_ISREG(mode) && !S_ISDIR(mode)) in ntfs_mft_record_alloc()
2574 if (S_ISDIR(mode)) in ntfs_mft_record_alloc()
2661 if (S_ISDIR(mode)) { in ntfs_mft_record_alloc()
Dinode.c786 if (S_ISDIR(vi->i_mode)) { in ntfs_read_locked_inode()
2379 BUG_ON(S_ISDIR(vi->i_mode)); in ntfs_truncate()
Daops.c948 BUG_ON(!(is_mft || S_ISDIR(vi->i_mode) || in ntfs_write_mst_block()
/linux-4.4.14/ipc/
Dmqueue.c290 } else if (S_ISDIR(mode)) { in mqueue_get_inode()
380 if (S_ISDIR(inode->i_mode)) in mqueue_evict_inode()
/linux-4.4.14/sound/core/
Dinfo.c830 if (S_ISDIR(entry->mode)) { in snd_info_register()
/linux-4.4.14/fs/qnx6/
Dinode.c579 } else if (S_ISDIR(inode->i_mode)) { in qnx6_iget()
/linux-4.4.14/fs/notify/fanotify/
Dfanotify_user.c456 !(S_ISDIR(file_inode(f.file)->i_mode))) { in fanotify_find_path()
/linux-4.4.14/fs/befs/
Dlinuxvfs.c396 } else if (S_ISDIR(inode->i_mode)) { in befs_iget()
/linux-4.4.14/tools/vm/
Dpage-types.c951 } else if (S_ISDIR(st.st_mode)) { in walk_page_cache()
/linux-4.4.14/scripts/kconfig/
Dconfdata.c754 if (!stat(name, &st) && S_ISDIR(st.st_mode)) { in conf_write()
/linux-4.4.14/fs/fuse/
Ddir.c281 return S_ISREG(m) || S_ISDIR(m) || S_ISLNK(m) || S_ISCHR(m) || in fuse_valid_type()
948 if (!S_ISDIR(parent->i_mode)) in fuse_reverse_inval_entry()
Dinode.c264 } else if (S_ISDIR(inode->i_mode)) in fuse_init_inode()

12