Home
last modified time | relevance | path

Searched refs:di_mode (Results 1 – 25 of 29) sorted by relevance

12

/fs/xfs/
Dxfs_filestream.c275 ASSERT(ip && (((ip->i_d.di_mode & S_IFREG) && pip && in _xfs_filestream_update_ag()
276 (pip->i_d.di_mode & S_IFDIR)) || in _xfs_filestream_update_ag()
277 ((ip->i_d.di_mode & S_IFDIR) && !pip))); in _xfs_filestream_update_ag()
489 if (!(ip->i_d.di_mode & (S_IFREG | S_IFDIR))) { in xfs_filestream_lookup_ag()
531 ASSERT(pip->i_d.di_mode & S_IFDIR); in xfs_filestream_associate()
532 ASSERT(ip->i_d.di_mode & S_IFREG); in xfs_filestream_associate()
533 if (!(pip->i_d.di_mode & S_IFDIR) || !(ip->i_d.di_mode & S_IFREG)) in xfs_filestream_associate()
Dxfs_dir2.c131 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir_isempty()
189 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir_init()
212 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir_createname()
288 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir_lookup()
343 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir_removename()
392 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_readdir()
424 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir_replace()
474 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir_canenter()
Dxfs_rw.c72 ip->i_d.di_mode &= ~S_ISUID; in xfs_write_clear_setuid()
81 if (ip->i_d.di_mode & S_IXGRP) { in xfs_write_clear_setuid()
82 ip->i_d.di_mode &= ~S_ISGID; in xfs_write_clear_setuid()
Dxfs_iget.c151 if ((ip->i_d.di_mode == 0) && !(flags & XFS_IGET_CREATE)) { in xfs_iget_cache_hit()
195 if (ip->i_d.di_mode == 0 && !(flags & XFS_IGET_CREATE)) { in xfs_iget_cache_hit()
244 if ((ip->i_d.di_mode == 0) && !(flags & XFS_IGET_CREATE)) { in xfs_iget_cache_miss()
378 if (xfs_iflags_test(ip, XFS_INEW) && ip->i_d.di_mode != 0) in xfs_iget()
446 if ((ip->i_d.di_mode == 0)) { in xfs_iput_new()
504 switch (ip->i_d.di_mode & S_IFMT) { in xfs_ireclaim()
Dxfs_vnodeops.c209 if (S_ISDIR(ip->i_d.di_mode)) { in xfs_setattr()
212 } else if (!S_ISREG(ip->i_d.di_mode)) { in xfs_setattr()
344 if ((ip->i_d.di_mode & (S_ISUID|S_ISGID)) && in xfs_setattr()
346 ip->i_d.di_mode &= ~(S_ISUID|S_ISGID); in xfs_setattr()
388 ip->i_d.di_mode &= S_IFMT; in xfs_setattr()
389 ip->i_d.di_mode |= mode & ~S_IFMT; in xfs_setattr()
566 ASSERT((ip->i_d.di_mode & S_IFMT) == S_IFLNK); in xfs_readlink()
1062 if (!S_ISREG(ip->i_d.di_mode) || (ip->i_d.di_mode == 0)) in xfs_release()
1098 if ((((ip->i_d.di_mode & S_IFMT) == S_IFREG) && in xfs_release()
1139 if (ip->i_d.di_mode == 0 || VN_BAD(VFS_I(ip))) { in xfs_inactive()
[all …]
Dxfs_inode.c347 switch (ip->i_d.di_mode & S_IFMT) { in xfs_iformat()
370 if (unlikely((be16_to_cpu(dip->di_mode) & S_IFMT) == S_IFREG)) { in xfs_iformat()
651 to->di_mode = be16_to_cpu(from->di_mode); in xfs_dinode_from_disk()
686 to->di_mode = cpu_to_be16(from->di_mode); in xfs_dinode_to_disk()
829 if (dip->di_mode) { in xfs_iread()
852 ip->i_d.di_mode = 0; in xfs_iread()
1024 ip->i_d.di_mode = (__uint16_t)mode; in xfs_ialloc()
1056 if ((pip->i_d.di_mode & S_ISGID) && (mode & S_IFMT) == S_IFDIR) { in xfs_ialloc()
1057 ip->i_d.di_mode |= S_ISGID; in xfs_ialloc()
1067 (ip->i_d.di_mode & S_ISGID) && in xfs_ialloc()
[all …]
Dxfs_acl.c241 xfs_acl_sync_mode(XFS_I(vp)->i_d.di_mode, xfs_acl); in xfs_acl_vget()
351 xfs_acl_sync_mode(ip->i_d.di_mode, acl); in xfs_acl_iaccess()
636 xfs_acl_sync_mode(XFS_I(vp)->i_d.di_mode, access_acl); in xfs_acl_vtoacl()
731 iattr.ia_mode = XFS_I(vp)->i_d.di_mode; in xfs_acl_setmode()
Dxfs_rename.c134 src_is_directory = ((src_ip->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_rename()
253 if ((target_ip->i_d.di_mode & S_IFMT) == S_IFDIR) { in xfs_rename()
Dxfs_inode.h129 __uint16_t di_mode; /* mode and type of file */ member
296 #define XFS_ISIZE(ip) (((ip)->i_d.di_mode & S_IFMT) == S_IFREG) ? \
482 ((pip)->i_d.di_mode & S_ISGID))
Dxfs_dfrag.c149 if ((ip->i_d.di_mode & S_IFMT) != (tip->i_d.di_mode & S_IFMT)) { in xfs_swap_extents()
Dxfs_dinode.h45 __be16 di_mode; /* mode and type of file */ member
Dxfs_itable.c82 buf->bs_mode = dic->di_mode; in xfs_bulkstat_one_iget()
151 buf->bs_mode = be16_to_cpu(dic->di_mode); in xfs_bulkstat_one_dinode()
305 !dip->di_mode) in xfs_bulkstat_use_dinode()
Dxfs_iomap.c186 ASSERT((ip->i_d.di_mode & S_IFMT) == S_IFREG); in xfs_iomap()
Dxfs_log_recover.c2364 if (unlikely((dicp->di_mode & S_IFMT) == S_IFREG)) { in xlog_recover_do_inode_trans()
2376 } else if (unlikely((dicp->di_mode & S_IFMT) == S_IFDIR)) { in xlog_recover_do_inode_trans()
3175 ASSERT(ip->i_d.di_mode != 0); in xlog_recover_process_one_iunlink()
/fs/qnx4/
Dnamei.c189 de->di_mode = 0; in qnx4_rmdir()
234 de->di_mode = 0; in qnx4_unlink()
Dbitmap.c152 qnx4_ino->di_mode = 0; in qnx4_clear_inode()
Dinode.c108 raw_inode->di_mode = cpu_to_le16(inode->i_mode); in qnx4_write_inode()
502 inode->i_mode = le16_to_cpu(raw_inode->di_mode); in qnx4_iget()
/fs/jfs/
Djfs_dinode.h57 __le32 di_mode; /* 4: attribute, format and permission */ member
Djfs_imap.c2311 dp->di_mode = 0; in diNewExt()
3067 jfs_ip->mode2 = le32_to_cpu(dip->di_mode); in copy_from_dinode()
3070 ip->i_mode = le32_to_cpu(dip->di_mode) & 0xffff; in copy_from_dinode()
3171 dip->di_mode = cpu_to_le32((jfs_ip->mode2 & 0xffff0000) | in copy_to_dinode()
3174 dip->di_mode = cpu_to_le32(jfs_ip->mode2); in copy_to_dinode()
/fs/efs/
Defs.h50 __be16 di_mode; /* mode and type of file */ member
Dinode.c99 inode->i_mode = be16_to_cpu(efs_inode->di_mode); in efs_iget()
/fs/xfs/linux-2.6/
Dxfs_ioctl.c872 if ((ip->i_d.di_mode & S_IFMT) == S_IFDIR) { in xfs_set_diflags()
879 } else if ((ip->i_d.di_mode & S_IFMT) == S_IFREG) { in xfs_set_diflags()
1079 if ((ip->i_d.di_mode & (S_ISUID|S_ISGID)) && in xfs_ioctl_setattr()
1081 ip->i_d.di_mode &= ~(S_ISUID|S_ISGID); in xfs_ioctl_setattr()
Dxfs_lrw.c698 if (((xip->i_d.di_mode & S_ISUID) || in xfs_write()
699 ((xip->i_d.di_mode & (S_ISGID | S_IXGRP)) == in xfs_write()
Dxfs_iops.c551 stat->mode = ip->i_d.di_mode; in xfs_vn_getattr()
861 inode->i_mode = ip->i_d.di_mode; in xfs_setup_inode()
/fs/gfs2/
Dinode.c257 ip->i_inode.i_mode = be32_to_cpu(str->di_mode); in gfs2_dinode_in()
776 di->di_mode = cpu_to_be32(mode); in init_dinode()
1251 str->di_mode = cpu_to_be32(ip->i_inode.i_mode); in gfs2_dinode_out()

12