Home
last modified time | relevance | path

Searched refs:S_ISREG (Results 1 – 25 of 201) sorted by relevance

123456789

/linux-6.1.9/fs/xfs/scrub/
Dinode.c154 !S_ISREG(mode)) in xchk_inode_flags()
190 if ((flags2 & XFS_DIFLAG2_DAX) && !(S_ISREG(mode) || S_ISDIR(mode))) in xchk_inode_flags2()
194 if ((flags2 & XFS_DIFLAG2_REFLINK) && !S_ISREG(mode)) in xchk_inode_flags2()
323 if (!S_ISREG(mode) && !S_ISDIR(mode) && !S_ISLNK(mode)) in xchk_dinode()
327 if (!S_ISREG(mode) && !S_ISDIR(mode)) in xchk_dinode()
351 if (!S_ISDIR(mode) && !S_ISREG(mode) && !S_ISLNK(mode) && isize != 0) in xchk_dinode()
622 if (S_ISREG(VFS_I(sc->ip)->i_mode)) in xchk_inode()
/linux-6.1.9/fs/ext2/
Dioctl.c91 && S_ISREG(inode->i_mode) in ext2_ioctl()
99 if (!test_opt(inode->i_sb, RESERVATION) ||!S_ISREG(inode->i_mode)) in ext2_ioctl()
Dinode.c714 if (S_ISREG(inode->i_mode) && (!ei->i_block_alloc_info)) in ext2_get_blocks()
1242 if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || in ext2_truncate_blocks()
1257 if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || in ext2_setsize()
1352 if (test_opt(inode->i_sb, DAX) && S_ISREG(inode->i_mode)) in ext2_set_inode_flags()
1435 if (S_ISREG(inode->i_mode)) in ext2_iget()
1456 if (S_ISREG(inode->i_mode)) { in ext2_iget()
1546 if (!S_ISREG(inode->i_mode)) in __ext2_write_inode()
/linux-6.1.9/fs/hfs/
Dattr.c30 if (!S_ISREG(inode->i_mode) || HFS_IS_RSRC(inode)) in __hfs_setxattr()
76 if (!S_ISREG(inode->i_mode) || HFS_IS_RSRC(inode)) in __hfs_getxattr()
/linux-6.1.9/fs/reiserfs/
Dioctl.c51 if ((flags & REISERFS_NOTAIL_FL) && S_ISREG(inode->i_mode)) { in reiserfs_fileattr_set()
85 if (S_ISREG(inode->i_mode)) { in reiserfs_ioctl()
Dfile.c39 BUG_ON(!S_ISREG(inode->i_mode)); in reiserfs_file_release()
156 BUG_ON(!S_ISREG(inode->i_mode)); in reiserfs_sync_file()
/linux-6.1.9/fs/
Dioctl.c624 if ((fa->fsx_xflags & FS_XFLAG_EXTSIZE) && !S_ISREG(inode->i_mode)) in fileattr_set_prepare()
632 !S_ISREG(inode->i_mode) && !S_ISDIR(inode->i_mode)) in fileattr_set_prepare()
640 !(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode))) in fileattr_set_prepare()
794 if (S_ISDIR(inode->i_mode) || S_ISREG(inode->i_mode) || in do_vfs_ioctl()
829 if (!S_ISREG(inode->i_mode)) in do_vfs_ioctl()
848 if (S_ISREG(inode->i_mode)) in do_vfs_ioctl()
Dremap_range.c288 if (!S_ISREG(inode_in->i_mode) || !S_ISREG(inode_out->i_mode)) in __generic_remap_file_range_prep()
517 if (!S_ISREG(src->i_mode)) in vfs_dedupe_file_range()
Dopen.c81 if (!S_ISREG(inode->i_mode)) in vfs_truncate()
178 if (!S_ISREG(inode->i_mode) || !(f.file->f_mode & FMODE_WRITE)) in do_sys_ftruncate()
312 if (!S_ISREG(inode->i_mode) && !S_ISBLK(inode->i_mode)) in vfs_fallocate()
452 if ((mode & MAY_EXEC) && S_ISREG(inode->i_mode)) { in do_faccessat()
860 if (S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode)) in do_dentry_open()
/linux-6.1.9/fs/xfs/libxfs/
Dxfs_inode_buf.c389 if (S_ISREG(mode) && whichfork == XFS_DATA_FORK) in xfs_dinode_verify_fork()
690 if ((hint_flag || inherit_flag) && !(S_ISDIR(mode) || S_ISREG(mode))) in xfs_inode_validate_extsize()
693 if (hint_flag && !S_ISREG(mode)) in xfs_inode_validate_extsize()
750 if (hint_flag && !(S_ISDIR(mode) || S_ISREG(mode))) in xfs_inode_validate_cowextsize()
/linux-6.1.9/fs/9p/
Dcache.c57 if (!S_ISREG(inode->i_mode)) in v9fs_cache_inode_get_cookie()
/linux-6.1.9/scripts/dtc/
Dfstree.c36 if (S_ISREG(st.st_mode)) { in read_fstree()
/linux-6.1.9/tools/perf/util/
Dpath.c80 return S_ISREG(st.st_mode); in is_regular_file()
/linux-6.1.9/security/integrity/ima/
Dima_main.c191 if (!ima_policy_flag || !S_ISREG(inode->i_mode)) in ima_file_free()
220 if (!ima_policy_flag || !S_ISREG(inode->i_mode)) in process_measurement()
652 if (!ima_policy_flag || !S_ISREG(inode->i_mode)) in ima_post_create_tmpfile()
685 if (!ima_policy_flag || !S_ISREG(inode->i_mode)) in ima_post_path_mknod()
/linux-6.1.9/include/uapi/linux/
Dstat.h22 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) macro
/linux-6.1.9/tools/include/uapi/linux/
Dstat.h22 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) macro
/linux-6.1.9/fs/ext4/
Dext4_jbd2.c15 if (!S_ISREG(inode->i_mode) || in ext4_inode_journal_mode()
21 if (S_ISREG(inode->i_mode) && IS_ENCRYPTED(inode)) in ext4_inode_journal_mode()
/linux-6.1.9/fs/ceph/
Dcache.c25 if (!S_ISREG(inode->i_mode)) in ceph_fscache_register_inode_cookie()
/linux-6.1.9/fs/f2fs/
Dinode.c383 else if (S_ISREG(inode->i_mode)) in do_read_inode()
388 if (S_ISREG(inode->i_mode)) in do_read_inode()
438 if (S_ISREG(inode->i_mode)) { in do_read_inode()
548 } else if (S_ISREG(inode->i_mode)) { in f2fs_iget()
645 else if (S_ISREG(inode->i_mode)) in f2fs_update_inode()
/linux-6.1.9/fs/hfsplus/
Ddir.c121 if (S_ISREG(inode->i_mode)) in hfsplus_lookup()
235 if (S_ISREG(mode)) in hfsplus_readdir()
313 if (!S_ISREG(inode->i_mode)) in hfsplus_link()
/linux-6.1.9/fs/nfs/
Dinode.c233 if (S_ISREG(mode) || S_ISDIR(mode) || S_ISLNK(mode)) in nfs_zap_caches_locked()
489 if (S_ISREG(inode->i_mode)) { in nfs_fhget()
623 BUG_ON(!S_ISREG(inode->i_mode)); in nfs_setattr()
640 if (S_ISREG(inode->i_mode)) in nfs_setattr()
856 S_ISREG(inode->i_mode)) in nfs_getattr()
1202 if (S_ISREG(inode->i_mode)) { in __nfs_revalidate_inode()
1286 if (S_ISREG(inode->i_mode)) { in nfs_invalidate_mapping()
1412 if (!S_ISREG(inode->i_mode)) in nfs_file_has_writers()
2218 if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) in nfs_update_inode()
/linux-6.1.9/fs/fuse/
Ddir.c359 return S_ISREG(m) || S_ISDIR(m) || S_ISLNK(m) || S_ISCHR(m) || in fuse_valid_type()
606 if (!S_ISREG(outentry.attr.mode) || invalid_nodeid(outentry.nodeid) || in fuse_create_open()
1105 if (file && S_ISREG(inode->i_mode)) { in fuse_do_getattr()
1339 ((mask & MAY_EXEC) && S_ISREG(inode->i_mode))) { in fuse_permission()
1372 } else if ((mask & MAY_EXEC) && S_ISREG(inode->i_mode)) { in fuse_permission()
1677 bool is_wb = fc->writeback_cache && S_ISREG(inode->i_mode); in fuse_do_setattr()
1691 if (WARN_ON(!S_ISREG(inode->i_mode))) in fuse_do_setattr()
1810 S_ISREG(inode->i_mode) && oldsize != outarg.attr.size) { in fuse_do_setattr()
/linux-6.1.9/fs/nilfs2/
Dinode.c371 if (S_ISREG(mode) || S_ISDIR(mode) || S_ISLNK(mode)) { in nilfs_new_inode()
458 if (nilfs_is_metadata_file_inode(inode) && !S_ISREG(inode->i_mode)) in nilfs_read_inode_common()
467 ii->i_dir_acl = S_ISREG(inode->i_mode) ? in nilfs_read_inode_common()
473 if (S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || in nilfs_read_inode_common()
504 if (S_ISREG(inode->i_mode)) { in __nilfs_read_inode()
/linux-6.1.9/fs/gfs2/
Dglops.c300 int isreg = ip && S_ISREG(ip->i_inode.i_mode); in inode_go_sync()
371 if (ip && S_ISREG(ip->i_inode.i_mode)) in inode_go_inval()
451 if (S_ISREG(ip->i_inode.i_mode)) in gfs2_dinode_in()
/linux-6.1.9/tools/include/nolibc/
Dtypes.h32 #define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG) macro

123456789