Home
last modified time | relevance | path

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

123456

/linux-4.19.296/fs/xfs/scrub/
Dinode.c151 !S_ISREG(mode)) in xchk_inode_flags()
187 if ((flags2 & XFS_DIFLAG2_DAX) && !(S_ISREG(mode) || S_ISDIR(mode))) in xchk_inode_flags2()
191 if ((flags2 & XFS_DIFLAG2_REFLINK) && !S_ISREG(mode)) in xchk_inode_flags2()
291 if (!S_ISREG(mode) && !S_ISDIR(mode) && !S_ISLNK(mode)) in xchk_dinode()
295 if (!S_ISREG(mode) && !S_ISDIR(mode)) in xchk_dinode()
322 if (!S_ISDIR(mode) && !S_ISREG(mode) && !S_ISLNK(mode) && isize != 0) in xchk_dinode()
594 if (S_ISREG(VFS_I(sc->ip)->i_mode)) in xchk_inode()
/linux-4.19.296/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-4.19.296/fs/ext2/
Dioctl.c117 && S_ISREG(inode->i_mode) in ext2_ioctl()
125 if (!test_opt(inode->i_sb, RESERVATION) ||!S_ISREG(inode->i_mode)) in ext2_ioctl()
Dinode.c715 if (S_ISREG(inode->i_mode) && (!ei->i_block_alloc_info)) in ext2_get_blocks()
1270 if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || in ext2_truncate_blocks()
1285 if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || in ext2_setsize()
1383 if (test_opt(inode->i_sb, DAX) && S_ISREG(inode->i_mode)) in ext2_set_inode_flags()
1470 if (S_ISREG(inode->i_mode)) in ext2_iget()
1491 if (S_ISREG(inode->i_mode)) { in ext2_iget()
1586 if (!S_ISREG(inode->i_mode)) in __ext2_write_inode()
/linux-4.19.296/fs/reiserfs/
Dioctl.c33 if (S_ISREG(inode->i_mode)) { in reiserfs_ioctl()
85 S_ISREG(inode->i_mode)) { in reiserfs_ioctl()
Dfile.c39 BUG_ON(!S_ISREG(inode->i_mode)); in reiserfs_file_release()
162 BUG_ON(!S_ISREG(inode->i_mode)); in reiserfs_sync_file()
/linux-4.19.296/fs/ext4/
Dext4_jbd2.h409 if (!S_ISREG(inode->i_mode) || in ext4_inode_journal_mode()
414 if (S_ISREG(inode->i_mode) && ext4_encrypted_inode(inode)) in ext4_inode_journal_mode()
453 if (!S_ISREG(inode->i_mode)) in ext4_should_dioread_nolock()
/linux-4.19.296/include/uapi/linux/
Dstat.h22 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) macro
/linux-4.19.296/fs/f2fs/
Dinode.c272 (!S_ISREG(inode->i_mode) && !S_ISLNK(inode->i_mode))) { in sanity_check_inode()
328 else if (S_ISREG(inode->i_mode)) in do_read_inode()
380 if (S_ISREG(inode->i_mode)) { in do_read_inode()
449 } else if (S_ISREG(inode->i_mode)) { in f2fs_iget()
537 else if (S_ISREG(inode->i_mode)) in f2fs_update_inode()
/linux-4.19.296/fs/xfs/
Dxfs_ioctl.c92 if (!S_ISREG(inode->i_mode) && in xfs_find_handle()
209 if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode))) { in xfs_open_by_handle()
252 if (S_ISREG(inode->i_mode)) { in xfs_open_by_handle()
621 if (!S_ISREG(inode->i_mode)) in xfs_ioc_space()
953 } else if (S_ISREG(VFS_I(ip)->i_mode)) { in xfs_flags2diflags()
1090 if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode))) in xfs_ioctl_setattr_dax_invalidate()
1092 if (S_ISREG(inode->i_mode) && in xfs_ioctl_setattr_dax_invalidate()
1207 if ((fa->fsx_xflags & FS_XFLAG_EXTSIZE) && !S_ISREG(VFS_I(ip)->i_mode)) in xfs_ioctl_setattr_check_extsize()
1214 if (S_ISREG(VFS_I(ip)->i_mode) && ip->i_d.di_nextents && in xfs_ioctl_setattr_check_extsize()
1272 if (!S_ISREG(VFS_I(ip)->i_mode) && !S_ISDIR(VFS_I(ip)->i_mode)) in xfs_ioctl_setattr_check_cowextsize()
/linux-4.19.296/fs/
Dopen.c78 if (!S_ISREG(inode->i_mode)) in vfs_truncate()
176 if (!S_ISREG(inode->i_mode) || !(f.file->f_mode & FMODE_WRITE)) in do_sys_ftruncate()
297 if (!S_ISREG(inode->i_mode) && !S_ISBLK(inode->i_mode)) in vfs_fallocate()
403 if ((mode & MAY_EXEC) && S_ISREG(inode->i_mode)) { in do_faccessat()
756 if (unlikely(f->f_flags & FMODE_EXEC && !S_ISREG(inode->i_mode))) { in do_dentry_open()
774 if (S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode)) in do_dentry_open()
/linux-4.19.296/fs/fuse/
Ddir.c297 return S_ISREG(m) || S_ISDIR(m) || S_ISLNK(m) || S_ISCHR(m) || in fuse_valid_type()
464 if (!S_ISREG(outentry.attr.mode) || invalid_nodeid(outentry.nodeid) || in fuse_create_open()
884 if (fc->writeback_cache && S_ISREG(inode->i_mode)) { in fuse_fillattr()
931 if (file && S_ISREG(inode->i_mode)) { in fuse_do_getattr()
1156 ((mask & MAY_EXEC) && S_ISREG(inode->i_mode))) { in fuse_permission()
1186 } else if ((mask & MAY_EXEC) && S_ISREG(inode->i_mode)) { in fuse_permission()
1673 bool trust_local_cmtime = is_wb && S_ISREG(inode->i_mode); in fuse_do_setattr()
1703 if (is_wb && S_ISREG(inode->i_mode) && in fuse_do_setattr()
1764 if (!is_wb || is_truncate || !S_ISREG(inode->i_mode)) in fuse_do_setattr()
1778 S_ISREG(inode->i_mode) && oldsize != outarg.attr.size) { in fuse_do_setattr()
Dinode.c186 if (!fc->writeback_cache || !S_ISREG(inode->i_mode)) { in fuse_change_attributes_common()
235 if (!is_wb || !S_ISREG(inode->i_mode)) in fuse_change_attributes()
239 if (!is_wb && S_ISREG(inode->i_mode)) { in fuse_change_attributes()
272 if (S_ISREG(inode->i_mode)) { in fuse_init_inode()
319 if (!fc->writeback_cache || !S_ISREG(attr->mode)) in fuse_iget()
/linux-4.19.296/fs/xfs/libxfs/
Dxfs_inode_buf.c391 if (S_ISREG(be16_to_cpu(dip->di_mode))) in xfs_dinode_verify_fork()
752 if ((hint_flag || inherit_flag) && !(S_ISDIR(mode) || S_ISREG(mode))) in xfs_inode_validate_extsize()
755 if (hint_flag && !S_ISREG(mode)) in xfs_inode_validate_extsize()
805 if (hint_flag && !(S_ISDIR(mode) || S_ISREG(mode))) in xfs_inode_validate_cowextsize()
/linux-4.19.296/fs/crypto/
Dkeyinfo.c190 if (S_ISREG(inode->i_mode)) in select_encryption_mode()
373 if (S_ISREG(inode->i_mode) && in fscrypt_get_encryption_info()
/linux-4.19.296/fs/nfs/
Dinode.c229 if (S_ISREG(mode) || S_ISDIR(mode) || S_ISLNK(mode)) { in nfs_zap_caches_locked()
465 if (S_ISREG(inode->i_mode)) { in nfs_fhget()
595 BUG_ON(!S_ISREG(inode->i_mode)); in nfs_setattr()
613 if (S_ISREG(inode->i_mode)) in nfs_setattr()
791 S_ISREG(inode->i_mode)) in nfs_getattr()
1129 if (S_ISREG(inode->i_mode)) { in __nfs_revalidate_inode()
1215 if (S_ISREG(inode->i_mode)) { in nfs_invalidate_mapping()
1336 if (!S_ISREG(inode->i_mode)) in nfs_file_has_writers()
2043 if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) in nfs_update_inode()
/linux-4.19.296/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()
Dinode.c385 } else if (S_ISREG(inode->i_mode)) { in hfsplus_new_inode()
416 if (S_ISREG(inode->i_mode)) { in hfsplus_delete_inode()
515 if (S_ISREG(inode->i_mode)) { in hfsplus_cat_read_inode()
/linux-4.19.296/fs/gfs2/
Dglops.c246 int isreg = ip && S_ISREG(ip->i_inode.i_mode); in inode_go_sync()
317 if (ip && S_ISREG(ip->i_inode.i_mode)) in inode_go_inval()
395 if (S_ISREG(ip->i_inode.i_mode)) in gfs2_dinode_in()
/linux-4.19.296/fs/coda/
Dcnode.c30 if (S_ISREG(inode->i_mode)) { in coda_fill_inode()
Dcoda_linux.c153 } else if ( S_ISREG(mode) ) { in coda_iattr_to_vattr()
/linux-4.19.296/fs/jfs/
Dfile.c72 if (S_ISREG(inode->i_mode) && file->f_mode & FMODE_WRITE && in jfs_open()
/linux-4.19.296/fs/nilfs2/
Dinode.c384 if (S_ISREG(mode) || S_ISDIR(mode) || S_ISLNK(mode)) { in nilfs_new_inode()
470 if (nilfs_is_metadata_file_inode(inode) && !S_ISREG(inode->i_mode)) in nilfs_read_inode_common()
479 ii->i_dir_acl = S_ISREG(inode->i_mode) ? in nilfs_read_inode_common()
485 if (S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || in nilfs_read_inode_common()
516 if (S_ISREG(inode->i_mode)) { in __nilfs_read_inode()
/linux-4.19.296/fs/overlayfs/
Dutil.c255 if (WARN_ON(!S_ISREG(inode->i_mode))) in ovl_inode_lowerdata()
331 if (!S_ISREG(inode->i_mode)) in ovl_should_check_upperdata()
850 if (!S_ISREG(d_inode(dentry)->i_mode)) in ovl_check_metacopy_xattr()
Dcopy_up.c509 if (S_ISREG(c->stat.mode) && !c->metacopy) { in ovl_copy_up_inode()
655 if (S_ISREG(c->stat.mode) && ofs->tmpfile) { in ovl_do_copy_up()
701 if (!S_ISREG(mode)) in ovl_need_meta_copy_up()

123456