S_IFMT            225 fs/9p/vfs_inode.c 		switch (mode & S_IFMT) {
S_IFMT            261 fs/9p/vfs_inode.c 				mode, mode & S_IFMT);
S_IFMT             37 fs/cifs/inode.c 	switch (inode->i_mode & S_IFMT) {
S_IFMT             98 fs/cifs/inode.c 	inode->i_mode &= ~S_IFMT;
S_IFMT            550 fs/cifs/inode.c 		inode->i_mode &= ~S_IFMT;
S_IFMT            208 fs/cifs/readdir.c 		tmp_inode->i_mode &= ~S_IFMT;
S_IFMT            337 fs/cifs/readdir.c 	tmp_inode->i_mode &= ~S_IFMT;
S_IFMT            679 fs/coda/dir.c  		if ((old_mode & S_IFMT) != (inode->i_mode & S_IFMT)) {
S_IFMT             44 fs/debugfs/inode.c 		switch (mode & S_IFMT) {
S_IFMT            167 fs/debugfs/inode.c 		switch (mode & S_IFMT) {
S_IFMT            318 fs/debugfs/inode.c 			switch (dentry->d_inode->i_mode & S_IFMT) {
S_IFMT            147 fs/efs/inode.c 	switch (inode->i_mode & S_IFMT) {
S_IFMT            254 fs/ext2/dir.c  static unsigned char ext2_type_by_mode[S_IFMT >> S_SHIFT] = {
S_IFMT            268 fs/ext2/dir.c  		de->file_type = ext2_type_by_mode[(mode & S_IFMT)>>S_SHIFT];
S_IFMT           1096 fs/ext3/namei.c static unsigned char ext3_type_by_mode[S_IFMT >> S_SHIFT] = {
S_IFMT           1110 fs/ext3/namei.c 		de->file_type = ext3_type_by_mode[(mode & S_IFMT)>>S_SHIFT];
S_IFMT           1099 fs/ext4/namei.c static unsigned char ext4_type_by_mode[S_IFMT >> S_SHIFT] = {
S_IFMT           1113 fs/ext4/namei.c 		de->file_type = ext4_type_by_mode[(mode & S_IFMT)>>S_SHIFT];
S_IFMT            285 fs/fat/file.c  	perm = *mode_ptr & ~(S_IFMT | mask);
S_IFMT            296 fs/fat/file.c  	*mode_ptr &= S_IFMT | perm;
S_IFMT            211 fs/fuse/dir.c  		if (err || (outarg.attr.mode ^ inode->i_mode) & S_IFMT)
S_IFMT            515 fs/fuse/dir.c  	if ((outarg.attr.mode ^ mode) & S_IFMT)
S_IFMT            762 fs/fuse/dir.c  	stat->mode = (inode->i_mode & S_IFMT) | (attr->mode & 07777);
S_IFMT            818 fs/fuse/dir.c  		if ((inode->i_mode ^ outarg.attr.mode) & S_IFMT) {
S_IFMT           1278 fs/fuse/dir.c  	if ((inode->i_mode ^ outarg.attr.mode) & S_IFMT) {
S_IFMT            136 fs/fuse/inode.c 	inode->i_mode    = (inode->i_mode & S_IFMT) | (attr->mode & 07777);
S_IFMT            191 fs/fuse/inode.c 	inode->i_mode = attr->mode & S_IFMT;
S_IFMT            244 fs/fuse/inode.c 	} else if ((inode->i_mode ^ attr->mode) & S_IFMT) {
S_IFMT            186 fs/gfs2/acl.c  				(ip->i_inode.i_mode & S_IFMT) == (mode & S_IFMT));
S_IFMT            713 fs/gfs2/eattr.c 					    (ip->i_inode.i_mode & S_IFMT) ==
S_IFMT            714 fs/gfs2/eattr.c 					    (er->er_mode & S_IFMT));
S_IFMT            849 fs/gfs2/eattr.c 			(ip->i_inode.i_mode & S_IFMT) == (er->er_mode & S_IFMT));
S_IFMT            261 fs/gfs2/inode.c 	switch (ip->i_inode.i_mode & S_IFMT) {
S_IFMT            516 fs/hugetlbfs/inode.c 		switch (mode & S_IFMT) {
S_IFMT            279 fs/jffs2/dir.c 	type = (old_dentry->d_inode->i_mode & S_IFMT) >> 12;
S_IFMT            750 fs/jffs2/dir.c 	rd->type = (mode & S_IFMT) >> 12;
S_IFMT            821 fs/jffs2/dir.c 	type = (old_dentry->d_inode->i_mode & S_IFMT) >> 12;
S_IFMT             82 fs/jffs2/fs.c  		if (S_ISLNK(inode->i_mode & S_IFMT))
S_IFMT            280 fs/jffs2/fs.c  	switch (inode->i_mode & S_IFMT) {
S_IFMT           1213 fs/jffs2/readinode.c 	switch(jemode_to_cpu(latest_node->mode) & S_IFMT) {
S_IFMT            628 fs/jfs/namei.c 	filetype = ip->i_mode & S_IFMT;
S_IFMT            696 fs/jfs/namei.c 	type = ip->i_mode & S_IFMT;
S_IFMT           1978 fs/namei.c     	switch (mode & S_IFMT) {
S_IFMT           2021 fs/namei.c     	switch (mode & S_IFMT) {
S_IFMT            173 fs/ncpfs/inode.c 							inode->i_mode = (inode->i_mode & ~S_IFMT) | S_IFLNK;
S_IFMT           1923 fs/nfs/dir.c   	switch (inode->i_mode & S_IFMT) {
S_IFMT            907 fs/nfs/inode.c 			|| (inode->i_mode & S_IFMT) != (fattr->mode & S_IFMT)) {
S_IFMT           1062 fs/nfs/inode.c 	if ((inode->i_mode & S_IFMT) != (fattr->mode & S_IFMT))
S_IFMT            143 fs/nfs/nfs2xdr.c 		fattr->mode = (fattr->mode & ~S_IFMT) | S_IFIFO;
S_IFMT            655 fs/nfs/nfs3proc.c 	switch (sattr->ia_mode & S_IFMT) {
S_IFMT            156 fs/nfs/nfs3xdr.c 	fattr->mode = (ntohl(*p++) & ~S_IFMT) | fmode;
S_IFMT            845 fs/nfs/nfs4proc.c 		switch (data->o_res.f_attr->mode & S_IFMT) {
S_IFMT           2731 fs/nfs/nfs4xdr.c 		*mode &= ~S_IFMT;
S_IFMT            253 fs/nfs/proc.c  		sattr->ia_mode = (mode & ~S_IFMT) | S_IFCHR;
S_IFMT            251 fs/nfsd/nfs3proc.c 	attr->ia_mode &= ~S_IFMT;
S_IFMT            256 fs/nfsd/nfs3proc.c 		attr->ia_mode = (attr->ia_mode & ~S_IFMT) | S_IFREG;
S_IFMT            178 fs/nfsd/nfs3xdr.c 	*p++ = htonl(nfs3_ftypes[(stat->mode & S_IFMT) >> 12]);
S_IFMT            328 fs/nfsd/nfs4xdr.c 		iattr->ia_mode &= (S_IFMT | S_IALLUGO);
S_IFMT           1501 fs/nfsd/nfs4xdr.c 		dummy = nfs4_ftypes[(stat.mode & S_IFMT) >> 12];
S_IFMT             78 fs/nfsd/nfsfh.c 	if (type > 0 && (mode & S_IFMT) != type) {
S_IFMT             79 fs/nfsd/nfsfh.c 		if (rqstp->rq_vers == 4 && (mode & S_IFMT) == S_IFLNK)
S_IFMT             83 fs/nfsd/nfsfh.c 		else if ((mode & S_IFMT) == S_IFDIR)
S_IFMT             88 fs/nfsd/nfsfh.c 	if (type < 0 && (mode & S_IFMT) == -type) {
S_IFMT             89 fs/nfsd/nfsfh.c 		if (rqstp->rq_vers == 4 && (mode & S_IFMT) == S_IFLNK)
S_IFMT            261 fs/nfsd/nfsproc.c 		type = attr->ia_mode & S_IFMT;
S_IFMT            262 fs/nfsd/nfsproc.c 		mode = attr->ia_mode & ~S_IFMT;
S_IFMT            267 fs/nfsd/nfsproc.c 				type = inode->i_mode & S_IFMT;
S_IFMT            293 fs/nfsd/nfsproc.c 		type = inode->i_mode & S_IFMT;
S_IFMT            294 fs/nfsd/nfsproc.c 		mode = inode->i_mode & ~S_IFMT;
S_IFMT            325 fs/nfsd/nfsproc.c 		if (inode && type != (inode->i_mode & S_IFMT))
S_IFMT            159 fs/nfsd/nfsxdr.c 	type = (stat->mode & S_IFMT);
S_IFMT           1783 fs/nfsd/vfs.c  		type = rdentry->d_inode->i_mode & S_IFMT;
S_IFMT           1244 fs/ntfs/inode.c 	vi->i_mode	= base_vi->i_mode & ~S_IFMT;
S_IFMT           1512 fs/ntfs/inode.c 	vi->i_mode	= base_vi->i_mode & ~S_IFMT;
S_IFMT            377 fs/ocfs2/dlm/dlmfs.c 	switch (mode & S_IFMT) {
S_IFMT            302 fs/ocfs2/inode.c 	switch (inode->i_mode & S_IFMT) {
S_IFMT            390 fs/ocfs2/ocfs2_fs.h static unsigned char ocfs2_type_by_mode[S_IFMT >> S_SHIFT] = {
S_IFMT           1120 fs/ocfs2/ocfs2_fs.h 	de->file_type = ocfs2_type_by_mode[(mode & S_IFMT)>>S_SHIFT];
S_IFMT             46 fs/omfs/inode.c 	switch (mode & S_IFMT) {
S_IFMT            677 fs/proc/generic.c 		if ((mode & S_IFMT) == 0)
S_IFMT            707 fs/proc/generic.c 		if ((mode & S_IFMT) == 0)
S_IFMT            343 fs/proc/proc_sysctl.c 		stat->mode = (stat->mode & S_IFMT) | table->mode;
S_IFMT             65 fs/ramfs/inode.c 		switch (mode & S_IFMT) {
S_IFMT            260 fs/smbfs/inode.c 		if ((inode->i_mode & S_IFMT) == (fattr.f_mode & S_IFMT)) {
S_IFMT           2145 fs/smbfs/proc.c 				(fattr->f_mode & S_IFMT);
S_IFMT            121 fs/ubifs/dir.c 	switch (mode & S_IFMT) {
S_IFMT            423 fs/ubifs/journal.c 	switch (mode & S_IFMT) {
S_IFMT             80 fs/ubifs/super.c 	if (ui->xattr && (inode->i_mode & S_IFMT) != S_IFREG)
S_IFMT            154 fs/ubifs/super.c 	switch (inode->i_mode & S_IFMT) {
S_IFMT            163 fs/ufs/util.h  	switch (mode & S_IFMT) {
S_IFMT            177 fs/xfs/linux-2.6/xfs_aops.c 	ASSERT((ip->i_d.di_mode & S_IFMT) == S_IFREG);
S_IFMT            126 fs/xfs/linux-2.6/xfs_ioctl.c 	switch (inode->i_mode & S_IFMT) {
S_IFMT            909 fs/xfs/linux-2.6/xfs_ioctl.c 	if ((ip->i_d.di_mode & S_IFMT) == S_IFDIR) {
S_IFMT            916 fs/xfs/linux-2.6/xfs_ioctl.c 	} else if ((ip->i_d.di_mode & S_IFMT) == S_IFREG) {
S_IFMT            233 fs/xfs/linux-2.6/xfs_iops.c 	switch (mode & S_IFMT) {
S_IFMT            574 fs/xfs/linux-2.6/xfs_iops.c 	switch (inode->i_mode & S_IFMT) {
S_IFMT            781 fs/xfs/linux-2.6/xfs_iops.c 	switch (inode->i_mode & S_IFMT) {
S_IFMT            804 fs/xfs/linux-2.6/xfs_iops.c 	switch (inode->i_mode & S_IFMT) {
S_IFMT            493 fs/xfs/xfs_bmap.c 	if ((ip->i_d.di_mode & S_IFMT) == S_IFDIR) {
S_IFMT           3576 fs/xfs/xfs_bmap.c 	ASSERT(!((ip->i_d.di_mode & S_IFMT) == S_IFREG &&
S_IFMT           4458 fs/xfs/xfs_bmap.c 		return ((ip->i_d.di_mode & S_IFMT) == S_IFREG) ?
S_IFMT            163 fs/xfs/xfs_dfrag.c 	if ((ip->i_d.di_mode & S_IFMT) != (tip->i_d.di_mode & S_IFMT)) {
S_IFMT            131 fs/xfs/xfs_dir2.c 	ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR);
S_IFMT            189 fs/xfs/xfs_dir2.c 	ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR);
S_IFMT            212 fs/xfs/xfs_dir2.c 	ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR);
S_IFMT            288 fs/xfs/xfs_dir2.c 	ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR);
S_IFMT            343 fs/xfs/xfs_dir2.c 	ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR);
S_IFMT            392 fs/xfs/xfs_dir2.c 	ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR);
S_IFMT            424 fs/xfs/xfs_dir2.c 	ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR);
S_IFMT            474 fs/xfs/xfs_dir2.c 	ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR);
S_IFMT            376 fs/xfs/xfs_inode.c 	switch (ip->i_d.di_mode & S_IFMT) {
S_IFMT            399 fs/xfs/xfs_inode.c 			if (unlikely((be16_to_cpu(dip->di_core.di_mode) & S_IFMT) == S_IFREG)) {
S_IFMT           1112 fs/xfs/xfs_inode.c 		if ((pip->i_d.di_mode & S_ISGID) && (mode & S_IFMT) == S_IFDIR) {
S_IFMT           1147 fs/xfs/xfs_inode.c 	switch (mode & S_IFMT) {
S_IFMT           1170 fs/xfs/xfs_inode.c 			if ((mode & S_IFMT) == S_IFDIR) {
S_IFMT           1177 fs/xfs/xfs_inode.c 			} else if ((mode & S_IFMT) == S_IFREG) {
S_IFMT           1251 fs/xfs/xfs_inode.c 	if ((ip->i_d.di_mode & S_IFMT) != S_IFREG)
S_IFMT           2235 fs/xfs/xfs_inode.c 	       ((ip->i_d.di_mode & S_IFMT) != S_IFREG));
S_IFMT           2625 fs/xfs/xfs_inode.c 	switch (ip->i_d.di_mode & S_IFMT) {
S_IFMT           3292 fs/xfs/xfs_inode.c 	if ((ip->i_d.di_mode & S_IFMT) == S_IFREG) {
S_IFMT           3302 fs/xfs/xfs_inode.c 	} else if ((ip->i_d.di_mode & S_IFMT) == S_IFDIR) {
S_IFMT            262 fs/xfs/xfs_inode.h #define XFS_ISIZE(ip)	(((ip)->i_d.di_mode & S_IFMT) == S_IFREG) ? \
S_IFMT            186 fs/xfs/xfs_iomap.c 	ASSERT((ip->i_d.di_mode & S_IFMT) == S_IFREG);
S_IFMT           2359 fs/xfs/xfs_log_recover.c 	if (unlikely((dicp->di_mode & S_IFMT) == S_IFREG)) {
S_IFMT           2371 fs/xfs/xfs_log_recover.c 	} else if (unlikely((dicp->di_mode & S_IFMT) == S_IFDIR)) {
S_IFMT           1120 fs/xfs/xfs_mount.c 	if (unlikely((rip->i_d.di_mode & S_IFMT) != S_IFDIR)) {
S_IFMT            159 fs/xfs/xfs_rename.c 	src_is_directory = ((src_ip->i_d.di_mode & S_IFMT) == S_IFDIR);
S_IFMT            280 fs/xfs/xfs_rename.c 		if ((target_ip->i_d.di_mode & S_IFMT) == S_IFDIR) {
S_IFMT            447 fs/xfs/xfs_vnodeops.c 		ip->i_d.di_mode &= S_IFMT;
S_IFMT            448 fs/xfs/xfs_vnodeops.c 		ip->i_d.di_mode |= iattr->ia_mode & ~S_IFMT;
S_IFMT            450 fs/xfs/xfs_vnodeops.c 		inode->i_mode &= S_IFMT;
S_IFMT            451 fs/xfs/xfs_vnodeops.c 		inode->i_mode |= iattr->ia_mode & ~S_IFMT;
S_IFMT            675 fs/xfs/xfs_vnodeops.c 	ASSERT((ip->i_d.di_mode & S_IFMT) == S_IFLNK);
S_IFMT           1201 fs/xfs/xfs_vnodeops.c 		if ((((ip->i_d.di_mode & S_IFMT) == S_IFREG) &&
S_IFMT           1257 fs/xfs/xfs_vnodeops.c 	    ((ip->i_d.di_mode & S_IFMT) == S_IFREG));
S_IFMT           1271 fs/xfs/xfs_vnodeops.c 		if ((((ip->i_d.di_mode & S_IFMT) == S_IFREG) &&
S_IFMT           1339 fs/xfs/xfs_vnodeops.c 	} else if ((ip->i_d.di_mode & S_IFMT) == S_IFLNK) {
S_IFMT           2567 fs/xfs/xfs_vnodeops.c 	error = xfs_dir_ialloc(&tp, dp, S_IFLNK | (mode & ~S_IFMT),
S_IFMT            222 include/linux/gfs2_ondisk.h #define DT2IF(dt) (((dt) << 12) & S_IFMT)
S_IFMT            223 include/linux/gfs2_ondisk.h #define IF2DT(sif) (((sif) & S_IFMT) >> 12)
S_IFMT             24 include/linux/stat.h #define S_ISLNK(m)	(((m) & S_IFMT) == S_IFLNK)
S_IFMT             25 include/linux/stat.h #define S_ISREG(m)	(((m) & S_IFMT) == S_IFREG)
S_IFMT             26 include/linux/stat.h #define S_ISDIR(m)	(((m) & S_IFMT) == S_IFDIR)
S_IFMT             27 include/linux/stat.h #define S_ISCHR(m)	(((m) & S_IFMT) == S_IFCHR)
S_IFMT             28 include/linux/stat.h #define S_ISBLK(m)	(((m) & S_IFMT) == S_IFBLK)
S_IFMT             29 include/linux/stat.h #define S_ISFIFO(m)	(((m) & S_IFMT) == S_IFIFO)
S_IFMT             30 include/linux/stat.h #define S_ISSOCK(m)	(((m) & S_IFMT) == S_IFSOCK)
S_IFMT             46 init/initramfs.c 		if (((*p)->mode ^ mode) & S_IFMT)
S_IFMT            242 init/initramfs.c 	if (!sys_newlstat(path, &st) && (st.st_mode^mode) & S_IFMT) {
S_IFMT            482 kernel/auditfilter.c 			if ((f->val & ~S_IFMT) > S_IFMT)
S_IFMT            657 kernel/auditfilter.c 			if ((f->val & ~S_IFMT) > S_IFMT)
S_IFMT            289 kernel/auditsc.c 	unsigned index = which & ~S_IFMT;
S_IFMT            290 kernel/auditsc.c 	mode_t mode = which & S_IFMT;
S_IFMT            299 kernel/auditsc.c 	if ((ctx->names[index].mode ^ mode) & S_IFMT)
S_IFMT            628 mm/nommu.c     			switch (file->f_path.dentry->d_inode->i_mode & S_IFMT) {
S_IFMT           1522 mm/shmem.c     		switch (mode & S_IFMT) {
S_IFMT           2346 mm/shmem.c     	if ((inode->i_mode & S_IFMT) == S_IFREG) {
S_IFMT            512 net/sunrpc/rpc_pipe.c 	switch(mode & S_IFMT) {
S_IFMT             68 security/inode.c 		switch (mode & S_IFMT) {
S_IFMT            175 security/inode.c 		if ((mode & S_IFMT) == S_IFDIR)
S_IFMT           1019 security/selinux/hooks.c 	switch (mode & S_IFMT) {
S_IFMT           1666 security/selinux/hooks.c 	if ((mode & S_IFMT) != S_IFDIR) {