Home
last modified time | relevance | path

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

12

/linux-4.1.27/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.h256 return S_ISDIR(inode->i_mode) ? nfss->acdirmin : nfss->acregmin; in NFS_MINATTRTIMEO()
262 return S_ISDIR(inode->i_mode) ? nfss->acdirmax : nfss->acregmax; in NFS_MAXATTRTIMEO()
295 if (S_ISDIR(inode->i_mode)) in nfs_mark_for_revalidate()
Dfs.h2375 if (S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || in invalidate_remote_inode()
2419 return (inode->i_mode & S_IXUGO) || S_ISDIR(inode->i_mode); in execute_ok()
/linux-4.1.27/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.c538 if (new_inode && S_ISDIR(new_inode->i_mode)) { in hpfs_rename()
594 if (S_ISDIR(i->i_mode)) { in hpfs_rename()
/linux-4.1.27/drivers/staging/lustre/lustre/llite/
Dxattr.c254 } else if (S_ISDIR(inode->i_mode)) { in ll_setxattr()
356 if (xattr_type == XATTR_ACL_DEFAULT_T && !S_ISDIR(inode->i_mode)) in ll_getxattr_common()
482 if (!S_ISREG(inode->i_mode) && !S_ISDIR(inode->i_mode)) in ll_getxattr()
485 if (size == 0 && S_ISDIR(inode->i_mode)) { in ll_getxattr()
494 if (S_ISDIR(inode->i_mode)) { in ll_getxattr()
591 } else if (S_ISDIR(inode->i_mode)) { in ll_listxattr()
598 } else if (S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode)) { in ll_listxattr()
Dllite_nfs.c241 if (!dir || !S_ISDIR(dir->i_mode)) { in ll_get_name()
294 LASSERT(dir && S_ISDIR(dir->i_mode)); in ll_get_parent()
Dllite_lib.c882 if (S_ISDIR(lli->lli_vfs_inode.i_mode)) { in ll_lli_init()
1105 if (S_ISDIR(inode->i_mode)) { in ll_clear_inode()
1154 if (!S_ISDIR(inode->i_mode)) in ll_clear_inode()
1188 !S_ISDIR(inode->i_mode)) { in ll_md_setattr()
1369 if (!S_ISDIR(inode->i_mode)) { in ll_setattr_raw()
1454 if (!S_ISDIR(inode->i_mode)) { in ll_setattr_raw()
1588 LASSERT(!S_ISDIR(inode->i_mode)); in ll_inode_size_lock()
1777 } else if (S_ISDIR(inode->i_mode)) { in ll_read_inode2()
Dfile.c365 if (S_ISDIR(inode->i_mode) && lli->lli_opendir_key == fd && in ll_file_release()
375 if (!S_ISDIR(inode->i_mode)) { in ll_file_release()
554 if (S_ISDIR(inode->i_mode)) { in ll_file_open()
1071 if ((mnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode)) in file_is_noatime()
1074 if ((inode->i_sb->s_flags & MS_NODIRATIME) && S_ISDIR(inode->i_mode)) in file_is_noatime()
2557 LASSERT(!S_ISDIR(inode->i_mode)); in ll_flush()
2644 if (!S_ISDIR(inode->i_mode)) { in ll_fsync()
2885 if (!S_ISREG(inode->i_mode) && !S_ISDIR(inode->i_mode)) in ll_inode_revalidate_fini()
Dnamei.c259 if ((bits & MDS_INODELOCK_UPDATE) && S_ISDIR(inode->i_mode)) { in ll_md_blocking_ast()
547 !S_ISDIR(inode->i_mode)) { in ll_lookup_it()
Dllite_capa.c211 !S_ISDIR(ocapa->u.cli.inode->i_mode) && in capa_thread_main()
/linux-4.1.27/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.1.27/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()
Dnfs4getroot.c31 || !S_ISDIR(fsinfo.fattr->mode)) { in nfs4_get_rootfh()
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()
668 ((mnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode))) in nfs_getattr()
967 if (!S_ISDIR(inode->i_mode)) in __nfs_revalidate_inode()
1052 if (S_ISDIR(inode->i_mode)) { in nfs_invalidate_mapping()
1179 if (S_ISDIR(inode->i_mode)) in nfs_wcc_update_inode()
1195 if (S_ISDIR(inode->i_mode)) in nfs_wcc_update_inode()
1490 if (S_ISDIR(inode->i_mode)) in nfs_post_op_update_inode_locked()
1660 if (S_ISDIR(inode->i_mode) && (fattr->valid & NFS_ATTR_FATTR_FSID) && in nfs_update_inode()
1688 if (S_ISDIR(inode->i_mode)) in nfs_update_inode()
[all …]
Ddir.c1066 (S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode))) in nfs_lookup_verify_inode()
1220 if (inode && S_ISDIR(inode->i_mode)) { in nfs_lookup_revalidate()
1326 if (S_ISDIR(inode->i_mode)) in nfs_dentry_iput()
2020 if (new_inode && !S_ISDIR(new_inode->i_mode)) { in nfs_rename()
2412 if (!S_ISDIR(inode->i_mode)) in nfs_do_access()
Dnfs3proc.c205 if (S_ISDIR(inode->i_mode)) { in nfs3_proc_access()
/linux-4.1.27/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.1.27/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()
366 ASSERT(S_ISDIR(dp->i_d.di_mode)); in xfs_dir_lookup()
443 ASSERT(S_ISDIR(dp->i_d.di_mode)); in xfs_dir_removename()
505 ASSERT(S_ISDIR(dp->i_d.di_mode)); in xfs_dir_replace()
Dxfs_ialloc.c583 needspace = S_ISDIR(mode) || S_ISREG(mode) || S_ISLNK(mode); in xfs_ialloc_ag_select()
586 if (S_ISDIR(mode)) in xfs_ialloc_ag_select()
/linux-4.1.27/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.1.27/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()
1688 if (S_ISDIR(inode->i_mode) && inode->i_nlink > 0) in udf_update_inode()
1794 if (S_ISDIR(inode->i_mode)) in udf_update_inode()
/linux-4.1.27/fs/jfs/
Djfs_inode.c88 rc = diAlloc(parent, S_ISDIR(mode), inode); in ialloc()
120 if (S_ISDIR(mode)) { in ialloc()
Dnamei.c1124 if (S_ISDIR(old_ip->i_mode)) { in jfs_rename()
1166 if (S_ISDIR(new_ip->i_mode)) { in jfs_rename()
1174 if (!S_ISDIR(old_ip->i_mode) && new_ip) in jfs_rename()
1217 if (S_ISDIR(old_ip->i_mode)) in jfs_rename()
1232 if (S_ISDIR(old_ip->i_mode)) { in jfs_rename()
1317 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.1.27/fs/ocfs2/
Dnamei.c213 if (S_ISDIR(mode)) in ocfs2_get_init_inode()
278 if (S_ISDIR(mode) && (dir->i_nlink >= ocfs2_link_max(osb))) { in ocfs2_mknod()
340 if (S_ISDIR(mode) && !ocfs2_supports_inline_data(osb)) { in ocfs2_mknod()
363 S_ISDIR(mode), in ocfs2_mknod()
390 if (S_ISDIR(mode)) { in ocfs2_mknod()
571 if (S_ISDIR(inode->i_mode) && ocfs2_supports_inline_data(osb)) { in __ocfs2_mknod_locked()
689 if (S_ISDIR(inode->i_mode)) in ocfs2_link()
846 if (S_ISDIR(inode->i_mode)) { in ocfs2_inode_is_unlinkable()
922 if (S_ISDIR(inode->i_mode)) { in ocfs2_unlink()
973 if (S_ISDIR(inode->i_mode)) in ocfs2_unlink()
[all …]
Dacl.c260 if (!S_ISDIR(inode->i_mode)) in ocfs2_set_acl()
370 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.c226 ((inode->i_sb->s_flags & MS_NODIRATIME) && S_ISDIR(inode->i_mode))) in ocfs2_should_update_atime()
241 ((vfsmnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode))) in ocfs2_should_update_atime()
/linux-4.1.27/fs/notify/dnotify/
Ddnotify.c98 if (!S_ISDIR(inode->i_mode)) in dnotify_handle_event()
159 if (!S_ISDIR(inode->i_mode)) in dnotify_flush()
282 if (!S_ISDIR(inode->i_mode)) { in fcntl_dirnotify()
/linux-4.1.27/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.1.27/include/uapi/linux/
Dstat.h21 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) macro
/linux-4.1.27/fs/overlayfs/
Dinode.c98 if (S_ISDIR(inode->i_mode)) { in ovl_permission()
142 (S_ISREG(mode) || S_ISDIR(mode) || S_ISLNK(mode))) in ovl_permission()
257 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()
402 if (prev && (!S_ISDIR(prev->d_inode->i_mode) || in ovl_lookup()
403 !S_ISDIR(this->d_inode->i_mode))) { in ovl_lookup()
416 if (!S_ISDIR(this->d_inode->i_mode)) in ovl_lookup()
739 if (!S_ISDIR(path->dentry->d_inode->i_mode)) { in ovl_mount_dir_noesc()
Dcopy_up.c270 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.1.27/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()
1355 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.c1496 if (S_ISDIR(inode->i_mode)) in rg_mblk_search()
1982 if (S_ISDIR(ip->i_inode.i_mode) && (ap->aflags & GFS2_AF_ORLOV)) in gfs2_inplace_reserve()
/linux-4.1.27/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.c527 if (S_ISDIR(inode->i_mode) && IS_DIRSYNC(inode)) in ext2_alloc_branch()
1180 if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || in ext2_truncate_blocks()
1194 if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || in ext2_setsize()
1397 } else if (S_ISDIR(inode->i_mode)) { in ext2_iget()
Dnamei.c334 if (S_ISDIR(old_inode->i_mode)) { in ext2_rename()
Dext2.h268 if (S_ISDIR(mode)) in ext2_mask_flags()
/linux-4.1.27/fs/
Dinode.c899 if (S_ISDIR(inode->i_mode)) { in lockdep_annotate_inode_mutex_key()
950 if (inode1 && !S_ISDIR(inode1->i_mode)) in lock_two_nondirectories()
952 if (inode2 && !S_ISDIR(inode2->i_mode) && inode2 != inode1) in lock_two_nondirectories()
964 if (inode1 && !S_ISDIR(inode1->i_mode)) in unlock_two_nondirectories()
966 if (inode2 && !S_ISDIR(inode2->i_mode) && inode2 != inode1) in unlock_two_nondirectories()
1597 if ((inode->i_sb->s_flags & MS_NODIRATIME) && S_ISDIR(inode->i_mode)) in touch_atime()
1602 if ((mnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode)) in touch_atime()
1755 if (S_ISDIR(inode->i_mode) && IS_DIRSYNC(inode)) in inode_needs_sync()
1886 if (S_ISDIR(mode)) in inode_init_owner()
Dopen.c74 if (S_ISDIR(inode->i_mode)) in vfs_truncate()
290 if (!S_ISREG(inode->i_mode) && !S_ISDIR(inode->i_mode)) in vfs_fallocate()
455 if (!S_ISDIR(inode->i_mode)) in SYSCALL_DEFINE1()
591 if (!S_ISDIR(inode->i_mode)) in chown_common()
Dsync.c328 if (!S_ISREG(i_mode) && !S_ISBLK(i_mode) && !S_ISDIR(i_mode) && in SYSCALL_DEFINE4()
Dposix_acl.c578 if (!S_ISDIR(*mode)) { in posix_acl_create()
807 if (type == 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()
1714 if (S_ISDIR(inode->i_mode)) { in d_flags_for_inode()
1872 if (S_ISDIR(inode->i_mode) && !hlist_empty(&inode->i_dentry)) { in d_instantiate_no_diralias()
2387 isdir = S_ISDIR(inode->i_mode); in d_delete()
2780 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()
3977 if (S_ISDIR(inode->i_mode)) in vfs_link()
/linux-4.1.27/fs/xfs/
Dxfs_acl.c189 if (!S_ISDIR(inode->i_mode)) in __xfs_set_acl()
269 if (!S_ISDIR(inode->i_mode)) in posix_acl_default_exists()
Dxfs_inode.c754 if ((pip->i_d.di_mode & S_ISGID) && S_ISDIR(mode)) { in xfs_ialloc()
816 if (S_ISDIR(mode)) { in xfs_ialloc()
1122 int is_dir = S_ISDIR(mode); in xfs_create()
1436 ASSERT(!S_ISDIR(sip->i_d.di_mode)); in xfs_link()
2535 int is_dir = S_ISDIR(ip->i_d.di_mode); in xfs_remove()
2785 if (S_ISDIR(ip2->i_d.di_mode)) { in xfs_cross_rename()
2793 if (!S_ISDIR(ip1->i_d.di_mode)) { in xfs_cross_rename()
2812 if (S_ISDIR(ip1->i_d.di_mode)) { in xfs_cross_rename()
2820 if (!S_ISDIR(ip2->i_d.di_mode)) { in xfs_cross_rename()
2917 bool src_is_directory = S_ISDIR(src_ip->i_d.di_mode); in xfs_rename()
[all …]
Dxfs_ioctl.c99 !S_ISDIR(inode->i_mode) && in xfs_find_handle()
164 if (!S_ISDIR(file_inode(parfilp)->i_mode)) in xfs_handle_to_dentry()
216 if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode))) { in xfs_open_by_handle()
239 if (S_ISDIR(inode->i_mode) && (fmode & FMODE_WRITE)) { in xfs_open_by_handle()
954 if (S_ISDIR(ip->i_d.di_mode)) { in xfs_set_diflags()
1108 !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.c663 ASSERT(S_ISDIR(dp->i_d.di_mode)); in xfs_readdir()
Dxfs_mount.c835 if (unlikely(!S_ISDIR(rip->i_d.di_mode))) { in xfs_mountfs()
/linux-4.1.27/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.1.27/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.1.27/scripts/dtc/
Dfstree.c67 } else if (S_ISDIR(st.st_mode)) { in read_fstree()
/linux-4.1.27/fs/ext3/
Dialloc.c113 is_directory = S_ISDIR(inode->i_mode); in ext3_free_inode()
376 if (S_ISDIR(mode)) in ext3_new_inode()
455 if (S_ISDIR(mode)) { in ext3_new_inode()
464 if (S_ISDIR(mode)) in ext3_new_inode()
Dacl.c212 if (!S_ISDIR(inode->i_mode)) in __ext3_set_acl()
Dext3.h175 if (S_ISDIR(mode)) in ext3_mask_flags()
Dnamei.c1990 J_ASSERT ((S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || in ext3_orphan_add()
2425 if (S_ISDIR(old_inode->i_mode)) { in ext3_rename()
Dinode.c2458 if (S_ISDIR(inode->i_mode)) in ext3_can_truncate()
2994 } else if (S_ISDIR(inode->i_mode)) { in ext3_iget()
/linux-4.1.27/fs/reiserfs/
Dnamei.c574 if (!S_ISDIR(inode->i_mode) && visible) in reiserfs_add_entry()
1339 if (S_ISDIR(old_inode_mode)) { in reiserfs_rename()
1449 if (S_ISDIR(old_inode->i_mode)) { in reiserfs_rename()
1497 if (S_ISDIR(old_inode_mode)) in reiserfs_rename()
1504 if (S_ISDIR(old_inode_mode)) { in reiserfs_rename()
1522 RFALSE(S_ISDIR(old_inode_mode) && in reiserfs_rename()
1550 if (S_ISDIR(new_dentry_inode->i_mode)) { in reiserfs_rename()
1559 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.c313 if (truncate && S_ISDIR(inode->i_mode)) { in finish_unfinished()
431 if (S_ISDIR(inode->i_mode)) in add_save_link()
/linux-4.1.27/fs/ext4/
Dialloc.c274 is_directory = S_ISDIR(inode->i_mode); in ext4_free_inode()
445 if (S_ISDIR(mode) && in find_group_orlov()
770 if (S_ISDIR(mode)) in __ext4_new_inode()
950 if (S_ISDIR(mode)) { in __ext4_new_inode()
973 if (S_ISDIR(mode)) in __ext4_new_inode()
1000 if ((S_ISDIR(mode) || S_ISREG(mode) || S_ISLNK(mode)) && in __ext4_new_inode()
1074 if (S_ISDIR(mode) || S_ISREG(mode) || S_ISLNK(mode)) { in __ext4_new_inode()
Dcrypto_key.c116 else if (S_ISDIR(inode->i_mode) || S_ISLNK(inode->i_mode)) in ext4_generate_encryption_key()
Dacl.c213 if (!S_ISDIR(inode->i_mode)) in __ext4_set_acl()
Dinline.c439 if (S_ISDIR(inode->i_mode) || in ext4_destroy_inline_data_nolock()
1187 if (S_ISDIR(inode->i_mode)) { in ext4_convert_inline_data_nolock()
1225 if (!S_ISDIR(inode->i_mode)) { in ext4_convert_inline_data_nolock()
Dnamei.c1592 (S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || in ext4_lookup()
2471 if (!S_ISDIR(inode->i_mode) || inode->i_nlink > 2) in ext4_dec_count()
2861 J_ASSERT((S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || in ext4_orphan_add()
3635 if (S_ISDIR(old.inode->i_mode)) { in ext4_rename()
3803 if (S_ISDIR(old.inode->i_mode)) { in ext4_cross_rename()
3809 if (S_ISDIR(new.inode->i_mode)) { in ext4_cross_rename()
Dinode.c3540 if (S_ISDIR(inode->i_mode)) in ext4_can_truncate()
4272 if ((S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || in ext4_iget()
4277 } else if (S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || in ext4_iget()
4291 } else if (S_ISDIR(inode->i_mode)) { in ext4_iget()
Dindirect.c942 if (S_ISDIR(inode->i_mode) || S_ISLNK(inode->i_mode)) in ext4_clear_blocks()
/linux-4.1.27/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.1.27/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.1.27/fs/9p/
Dacl.c201 if (S_ISDIR(mode)) in v9fs_acl_mode()
353 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.1.27/fs/f2fs/
Dnamei.c61 if (test_opt(sbi, INLINE_DENTRY) && S_ISDIR(inode->i_mode)) in f2fs_new_inode()
467 if (S_ISDIR(old_inode->i_mode)) { in f2fs_rename()
600 if (S_ISDIR(old_inode->i_mode)) { in f2fs_cross_rename()
608 if (S_ISDIR(new_inode->i_mode)) { in f2fs_cross_rename()
Dacl.c228 if (!S_ISDIR(inode->i_mode)) in __f2fs_set_acl()
365 if (!S_ISDIR(*mode)) { in f2fs_acl_create()
Ddir.c380 if (S_ISDIR(inode->i_mode)) { in init_inode_metadata()
435 if (S_ISDIR(inode->i_mode)) { in update_parent_metadata()
625 if (S_ISDIR(inode->i_mode)) { in f2fs_drop_nlink()
635 if (S_ISDIR(inode->i_mode)) { in f2fs_drop_nlink()
Dtrace.c43 else if (S_ISDIR(inode->i_mode)) in __file_type()
Dcheckpoint.c698 if (!S_ISDIR(inode->i_mode) && !S_ISREG(inode->i_mode)) in update_dirty_page()
701 if (!S_ISDIR(inode->i_mode)) { in update_dirty_page()
745 if (!S_ISDIR(inode->i_mode)) in remove_dirty_dir_inode()
Dnode.h398 if (S_ISDIR(inode->i_mode)) in set_cold_node()
Df2fs.h941 if (S_ISDIR(inode->i_mode)) in inode_inc_dirty_pages()
952 if (!S_ISDIR(inode->i_mode) && !S_ISREG(inode->i_mode)) in inode_dec_dirty_pages()
957 if (S_ISDIR(inode->i_mode)) in inode_dec_dirty_pages()
Dinode.c195 } else if (S_ISDIR(inode->i_mode)) { in f2fs_iget()
Dfile.c556 if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || in f2fs_truncate()
874 if (S_ISDIR(mode)) in f2fs_mask_flags()
Ddata.c1456 if (S_ISDIR(inode->i_mode)) { in f2fs_write_data_page()
1526 if (S_ISDIR(inode->i_mode) && wbc->sync_mode == WB_SYNC_NONE && in f2fs_write_data_pages()
1537 if (!S_ISDIR(inode->i_mode)) { in f2fs_write_data_pages()
Dsegment.h514 if (S_ISDIR(inode->i_mode) || f2fs_is_atomic_file(inode)) in need_inplace_update()
Dsegment.c1115 if (S_ISDIR(inode->i_mode)) in __get_segment_type_4()
1132 if (S_ISDIR(inode->i_mode)) in __get_segment_type_6()
Dsuper.c1128 if (!S_ISDIR(root->i_mode) || !root->i_blocks || !root->i_size) { in f2fs_fill_super()
/linux-4.1.27/fs/btrfs/
Dacl.c95 if (!S_ISDIR(inode->i_mode)) in __btrfs_set_acl()
Dtree-log.c430 if (S_ISDIR(mode)) in overwrite_item()
450 if (S_ISDIR(mode)) in overwrite_item()
517 S_ISDIR(btrfs_inode_mode(eb, src_item)) && in overwrite_item()
518 S_ISDIR(btrfs_inode_mode(path->nodes[0], dst_item))) { in overwrite_item()
1435 if (S_ISDIR(inode->i_mode)) { in fixup_inode_link_count()
2218 if (S_ISDIR(mode)) { in replay_one_buffer()
4485 if (S_ISDIR(inode->i_mode) || in btrfs_log_inode()
4500 if (S_ISDIR(inode->i_mode) || in btrfs_log_inode()
4520 if (S_ISDIR(inode->i_mode)) { in btrfs_log_inode()
4776 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.c2536 } else if (S_ISDIR(mode)) { in send_create_inode()
2664 if (S_ISDIR(sctx->cur_inode_mode)) { in send_create_inode_if_needed()
3596 if (S_ISDIR(sctx->cur_inode_mode) && sctx->parent_root) { in process_recorded_refs()
3620 if (S_ISDIR(sctx->cur_inode_mode)) { in process_recorded_refs()
3652 if (S_ISDIR(sctx->cur_inode_mode) && sctx->cur_inode_deleted) { in process_recorded_refs()
3680 } else if (S_ISDIR(sctx->cur_inode_mode) && in process_recorded_refs()
3690 } else if (!S_ISDIR(sctx->cur_inode_mode)) { in process_recorded_refs()
Dioctl.c95 if (S_ISDIR(mode)) in btrfs_mask_flags()
3001 if (S_ISDIR(src->i_mode)) in btrfs_ioctl_file_extent_same()
3027 } else if (S_ISDIR(dst->i_mode)) { in btrfs_ioctl_file_extent_same()
3740 if (S_ISDIR(src->i_mode) || S_ISDIR(inode->i_mode)) in btrfs_ioctl_clone()
/linux-4.1.27/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.1.27/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.1.27/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.c286 if (S_ISDIR(old_inode->i_mode)) { in ufs_rename()
Dtruncate.c454 if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || in ufs_truncate()
Dinode.c570 } else if (S_ISDIR(inode->i_mode)) { in ufs_set_inode_ops()
/linux-4.1.27/drivers/staging/lustre/lustre/lmv/
Dlmv_internal.h87 if (!body || !S_ISDIR(body->mode) || !body->eadatasize) in lmv_get_mea()
/linux-4.1.27/security/
Dinode.c87 int is_dir = S_ISDIR(mode); in securityfs_create_file()
/linux-4.1.27/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()
977 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.1.27/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.1.27/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.1.27/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.c33 int is_dir = S_ISDIR(inode->i_mode); in fat_ioctl_set_attributes()
Dinode.c377 if (S_ISDIR(inode->i_mode) && sbi->options.nfs) { in fat_attach()
396 if (S_ISDIR(inode->i_mode) && sbi->options.nfs) { in fat_detach()
774 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.1.27/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.1.27/fs/cifs/
Dioctl.c96 if (S_ISDIR(src_inode->i_mode)) in cifs_ioctl_clone()
Dcifsfs.c620 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.1.27/arch/s390/hypfs/
Dinode.c108 if (S_ISDIR(mode)) in hypfs_make_inode()
357 } else if (S_ISDIR(mode)) { in hypfs_create_file()
/linux-4.1.27/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.1.27/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.1.27/fs/nfsd/
Dnfs4acl.c158 if (S_ISDIR(inode->i_mode)) { in nfsd4_get_nfs4_acl()
788 if (S_ISDIR(inode->i_mode)) in nfsd4_set_nfs4_acl()
801 if (S_ISDIR(inode->i_mode)) { in nfsd4_set_nfs4_acl()
Dvfs.c348 if (!S_ISDIR(inode->i_mode) && in nfsd_sanitize_attrs()
1264 if (!S_ISREG(type) && !S_ISDIR(type) && !special_file(type)) { in nfsd_create()
/linux-4.1.27/fs/ceph/
Dacl.c105 if (!S_ISDIR(inode->i_mode)) { in ceph_set_acl()
Dinode.c79 BUG_ON(!S_ISDIR(parent->i_mode)); in ceph_get_snapdir()
855 if (S_ISDIR(inode->i_mode) && in fill_inode()
904 if (S_ISDIR(inode->i_mode)) in fill_inode()
2005 if (S_ISDIR(inode->i_mode)) { in ceph_getattr()
Dxattr.c275 if (S_ISDIR(inode->i_mode)) in ceph_inode_vxattrs()
/linux-4.1.27/fs/configfs/
Dinode.c203 if (S_ISDIR(mode) || S_ISLNK(mode)) in configfs_create()
/linux-4.1.27/fs/notify/
Dfsnotify.c57 if (!S_ISDIR(inode->i_mode)) in __fsnotify_update_child_dentry_flags()
/linux-4.1.27/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.1.27/fs/freevxfs/
Dvxfs_inode.c321 } else if (S_ISDIR(ip->i_mode)) { in vxfs_iget()
/linux-4.1.27/fs/nilfs2/
Dnilfs.h228 if (S_ISDIR(mode)) in nilfs_mask_flags()
Dinode.c394 if (S_ISREG(mode) || S_ISDIR(mode) || S_ISLNK(mode)) { in nilfs_new_inode()
490 if (S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || in nilfs_read_inode_common()
525 } else if (S_ISDIR(inode->i_mode)) { in __nilfs_read_inode()
Dnamei.c379 if (S_ISDIR(old_inode->i_mode)) { in nilfs_rename()
Dsuper.c932 if (!S_ISDIR(inode->i_mode) || !inode->i_blocks || !inode->i_size) { in nilfs_get_root_dentry()
/linux-4.1.27/fs/jffs2/
Dacl.c258 if (!S_ISDIR(inode->i_mode)) in jffs2_set_acl()
Dfs.c450 if (S_ISDIR(mode)) in jffs2_new_inode()
Dwrite.c635 if (S_ISDIR(OFNI_EDONI_2SFFJ(dead_f)->i_mode)) { in jffs2_do_unlink()
/linux-4.1.27/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.1.27/fs/exofs/
Dnamei.c245 if (S_ISDIR(old_inode->i_mode)) { in exofs_rename()
Dsuper.c830 if (!S_ISDIR(root->i_mode)) { in exofs_fill_super()
/linux-4.1.27/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()
227 if (S_ISDIR(ecryptfs_inode->i_mode)) { in ecryptfs_initialize_file()
/linux-4.1.27/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.1.27/tools/lib/traceevent/
Devent-plugin.c359 if (!S_ISDIR(st.st_mode)) in load_plugins_dir()
/linux-4.1.27/fs/autofs4/
Dinode.c361 if (S_ISDIR(mode)) { in autofs4_get_inode()
/linux-4.1.27/drivers/infiniband/hw/ipath/
Dipath_fs.c64 if (S_ISDIR(mode)) { in ipathfs_mknod()
/linux-4.1.27/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.1.27/fs/qnx4/
Dinode.c314 } else if (S_ISDIR(inode->i_mode)) { in qnx4_iget()
/linux-4.1.27/security/apparmor/
Dfile.c286 flags |= profile->path_flags | (S_ISDIR(cond->mode) ? PATH_IS_DIR : 0); in aa_path_perm()
/linux-4.1.27/fs/bfs/
Ddir.c220 if (S_ISDIR(old_inode->i_mode)) in bfs_rename()
/linux-4.1.27/arch/um/os-Linux/
Dfile.c136 if (S_ISDIR(buf.ust_mode)) in os_file_type()
/linux-4.1.27/fs/cramfs/
Dinode.c309 if (!S_ISDIR(super.root.mode)) { in cramfs_fill_super()
/linux-4.1.27/tools/power/cpupower/lib/
Dsysfs.c669 return S_ISDIR(statbuf.st_mode) ? 0 : -ENOSYS; in sysfs_cpu_exists()
/linux-4.1.27/drivers/infiniband/hw/qib/
Dqib_fs.c71 if (S_ISDIR(mode)) { in qibfs_mknod()
/linux-4.1.27/include/trace/events/
Df2fs.h869 __entry->dir = S_ISDIR(page->mapping->host->i_mode);
963 __entry->dir = S_ISDIR(inode->i_mode);
/linux-4.1.27/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.1.27/ipc/
Dmqueue.c291 } else if (S_ISDIR(mode)) { in mqueue_get_inode()
381 if (S_ISDIR(inode->i_mode)) in mqueue_evict_inode()
/linux-4.1.27/fs/qnx6/
Dinode.c579 } else if (S_ISDIR(inode->i_mode)) { in qnx6_iget()
/linux-4.1.27/fs/befs/
Dlinuxvfs.c402 } else if (S_ISDIR(inode->i_mode)) { in befs_iget()
/linux-4.1.27/fs/notify/fanotify/
Dfanotify_user.c456 !(S_ISDIR(file_inode(f.file)->i_mode))) { in fanotify_find_path()
/linux-4.1.27/tools/vm/
Dpage-types.c949 } else if (S_ISDIR(st.st_mode)) { in walk_page_cache()
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/
Ddt_object.c630 if (!S_ISDIR(mode)) in dt_index_feat_select()
/linux-4.1.27/sound/core/
Dinfo.c951 if (S_ISDIR(entry->mode)) { in snd_info_register()
/linux-4.1.27/scripts/kconfig/
Dconfdata.c756 if (!stat(name, &st) && S_ISDIR(st.st_mode)) { in conf_write()
/linux-4.1.27/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