/fs/xfs/ |
D | xfs_filestream.c | 275 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()
|
D | xfs_dir2.c | 131 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()
|
D | xfs_rw.c | 72 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()
|
D | xfs_iget.c | 151 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()
|
D | xfs_vnodeops.c | 209 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 …]
|
D | xfs_inode.c | 347 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 …]
|
D | xfs_acl.c | 241 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()
|
D | xfs_rename.c | 134 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()
|
D | xfs_inode.h | 129 __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))
|
D | xfs_dfrag.c | 149 if ((ip->i_d.di_mode & S_IFMT) != (tip->i_d.di_mode & S_IFMT)) { in xfs_swap_extents()
|
D | xfs_dinode.h | 45 __be16 di_mode; /* mode and type of file */ member
|
D | xfs_itable.c | 82 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()
|
D | xfs_iomap.c | 186 ASSERT((ip->i_d.di_mode & S_IFMT) == S_IFREG); in xfs_iomap()
|
D | xfs_log_recover.c | 2364 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/ |
D | namei.c | 189 de->di_mode = 0; in qnx4_rmdir() 234 de->di_mode = 0; in qnx4_unlink()
|
D | bitmap.c | 152 qnx4_ino->di_mode = 0; in qnx4_clear_inode()
|
D | inode.c | 108 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/ |
D | jfs_dinode.h | 57 __le32 di_mode; /* 4: attribute, format and permission */ member
|
D | jfs_imap.c | 2311 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/ |
D | efs.h | 50 __be16 di_mode; /* mode and type of file */ member
|
D | inode.c | 99 inode->i_mode = be16_to_cpu(efs_inode->di_mode); in efs_iget()
|
/fs/xfs/linux-2.6/ |
D | xfs_ioctl.c | 872 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()
|
D | xfs_lrw.c | 698 if (((xip->i_d.di_mode & S_ISUID) || in xfs_write() 699 ((xip->i_d.di_mode & (S_ISGID | S_IXGRP)) == in xfs_write()
|
D | xfs_iops.c | 551 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/ |
D | inode.c | 257 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()
|