Home
last modified time | relevance | path

Searched refs:i_mode (Results 1 – 25 of 438) sorted by relevance

12345678910>>...18

/linux/fs/hpfs/
A Dinode.c21 i->i_mode = hpfs_sb(sb)->sb_mode; in hpfs_init_inode()
79 i->i_mode = S_IFLNK | 0777; in hpfs_read_inode()
97 i->i_mode = mode; in hpfs_read_inode()
118 i->i_mode |= S_IFDIR; in hpfs_read_inode()
133 i->i_mode |= S_IFREG; in hpfs_read_inode()
165 if (!S_ISLNK(i->i_mode)) in hpfs_write_inode_ea()
166 if ((i->i_mode != ((hpfs_sb(i->i_sb)->sb_mode & ~(S_ISDIR(i->i_mode) ? 0 : 0111)) in hpfs_write_inode_ea()
168 && i->i_mode != ((hpfs_sb(i->i_sb)->sb_mode & ~(S_ISDIR(i->i_mode) ? 0222 : 0333)) in hpfs_write_inode_ea()
175 if (S_ISBLK(i->i_mode) || S_ISCHR(i->i_mode)) { in hpfs_write_inode_ea()
224 if (S_ISREG(i->i_mode)) { in hpfs_write_inode_nolock()
[all …]
A Dnamei.c67 result->i_mode |= S_IFDIR; in hpfs_mkdir()
74 result->i_mode &= ~0222; in hpfs_mkdir()
109 result->i_mode != (mode | S_IFDIR)) { in hpfs_mkdir()
112 result->i_mode = mode | S_IFDIR; in hpfs_mkdir()
164 result->i_mode |= S_IFREG; in hpfs_create()
165 result->i_mode &= ~0111; in hpfs_create()
176 result->i_mode &= ~0222; in hpfs_create()
199 result->i_mode != (mode | S_IFREG)) { in hpfs_create()
202 result->i_mode = mode | S_IFREG; in hpfs_create()
334 result->i_mode = S_IFLNK | 0777; in hpfs_symlink()
[all …]
/linux/fs/squashfs/
A Dinode.c157 inode->i_mode |= S_IFREG; in squashfs_read_inode()
202 inode->i_mode |= S_IFREG; in squashfs_read_inode()
231 inode->i_mode |= S_IFDIR; in squashfs_read_inode()
256 inode->i_mode |= S_IFDIR; in squashfs_read_inode()
284 inode->i_mode |= S_IFLNK; in squashfs_read_inode()
318 inode->i_mode |= S_IFCHR; in squashfs_read_inode()
320 inode->i_mode |= S_IFBLK; in squashfs_read_inode()
340 inode->i_mode |= S_IFCHR; in squashfs_read_inode()
342 inode->i_mode |= S_IFBLK; in squashfs_read_inode()
363 inode->i_mode |= S_IFIFO; in squashfs_read_inode()
[all …]
/linux/fs/f2fs/
A Dinode.c66 if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode) || in __get_inode_rdev()
67 S_ISFIFO(inode->i_mode) || S_ISSOCK(inode->i_mode)) { in __get_inode_rdev()
93 if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) { in __set_inode_rdev()
280 (!S_ISREG(inode->i_mode) && !S_ISLNK(inode->i_mode))) { in sanity_check_inode()
356 inode->i_mode = le16_to_cpu(ri->i_mode); in do_read_inode()
370 if (S_ISDIR(inode->i_mode)) in do_read_inode()
377 if (S_ISREG(inode->i_mode)) in do_read_inode()
538 } else if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode) || in f2fs_iget()
539 S_ISFIFO(inode->i_mode) || S_ISSOCK(inode->i_mode)) { in f2fs_iget()
584 ri->i_mode = cpu_to_le16(inode->i_mode); in f2fs_update_inode()
[all …]
/linux/fs/sysv/
A Dinode.c154 if (S_ISREG(inode->i_mode)) { in sysv_set_inode()
158 } else if (S_ISDIR(inode->i_mode)) { in sysv_set_inode()
162 } else if (S_ISLNK(inode->i_mode)) { in sysv_set_inode()
167 init_special_inode(inode, inode->i_mode, rdev); in sysv_set_inode()
198 inode->i_mode = fs16_to_cpu(sbi, raw_inode->i_mode); in sysv_iget()
217 if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) in sysv_iget()
252 raw_inode->i_mode = cpu_to_fs16(sbi, inode->i_mode); in __sysv_write_inode()
262 if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) in __sysv_write_inode()
/linux/fs/affs/
A Dinode.c55 inode->i_mode = 0; in affs_iget()
72 inode->i_mode = sbi->s_mode; in affs_iget()
100 if (inode->i_mode & S_IRUSR) in affs_iget()
101 inode->i_mode |= S_IXUSR; in affs_iget()
102 if (inode->i_mode & S_IRGRP) in affs_iget()
103 inode->i_mode |= S_IXGRP; in affs_iget()
105 inode->i_mode |= S_IXOTH; in affs_iget()
106 inode->i_mode |= S_IFDIR; in affs_iget()
119 inode->i_mode |= S_IFDIR; in affs_iget()
128 inode->i_mode |= S_IFREG; in affs_iget()
[all …]
/linux/fs/minix/
A Dinode.c460 if (S_ISREG(inode->i_mode)) { in minix_set_inode()
464 } else if (S_ISDIR(inode->i_mode)) { in minix_set_inode()
468 } else if (S_ISLNK(inode->i_mode)) { in minix_set_inode()
473 init_special_inode(inode, inode->i_mode, rdev); in minix_set_inode()
498 inode->i_mode = raw_inode->i_mode; in V1_minix_iget()
538 inode->i_mode = raw_inode->i_mode; in V2_minix_iget()
590 raw_inode->i_mode = inode->i_mode; in V1_minix_update_inode()
596 if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) in V1_minix_update_inode()
617 raw_inode->i_mode = inode->i_mode; in V2_minix_update_inode()
625 if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) in V2_minix_update_inode()
[all …]
/linux/fs/hfs/
A Dinode.c197 inode->i_mode = mode; in hfs_new_inode()
212 inode->i_mode |= S_IRWXUGO; in hfs_new_inode()
222 inode->i_mode |= S_IRUGO|S_IXUGO; in hfs_new_inode()
224 inode->i_mode |= S_IWUGO; in hfs_new_inode()
247 if (S_ISDIR(inode->i_mode)) { in hfs_delete_inode()
258 if (S_ISREG(inode->i_mode)) { in hfs_delete_inode()
353 inode->i_mode |= S_IWUGO; in hfs_read_inode()
355 inode->i_mode |= S_IFREG; in hfs_read_inode()
464 if (S_ISDIR(main_inode->i_mode)) { in hfs_write_inode()
492 if (inode->i_mode & S_IWUSR) in hfs_write_inode()
[all …]
/linux/fs/ocfs2/
A Dacl.c193 inode->i_mode = new_mode; in ocfs2_acl_set_mode()
195 di->i_mode = cpu_to_le16(inode->i_mode); in ocfs2_acl_set_mode()
227 if (S_ISLNK(inode->i_mode)) in ocfs2_set_acl()
236 if (!S_ISDIR(inode->i_mode)) in ocfs2_set_acl()
326 if (S_ISLNK(inode->i_mode)) in ocfs2_acl_chmod()
337 ret = __posix_acl_chmod(&acl, GFP_KERNEL, inode->i_mode); in ocfs2_acl_chmod()
363 if (!S_ISLNK(inode->i_mode)) { in ocfs2_init_acl()
373 mode = inode->i_mode & ~current_umask(); in ocfs2_init_acl()
382 if (S_ISDIR(inode->i_mode)) { in ocfs2_init_acl()
389 mode = inode->i_mode; in ocfs2_init_acl()
/linux/fs/coda/
A Dcnode.c30 if (S_ISREG(inode->i_mode)) { in coda_fill_inode()
33 } else if (S_ISDIR(inode->i_mode)) { in coda_fill_inode()
36 } else if (S_ISLNK(inode->i_mode)) { in coda_fill_inode()
42 init_special_inode(inode, inode->i_mode, huge_decode_dev(attr->va_rdev)); in coda_fill_inode()
81 } else if ((inode->i_mode & S_IFMT) != inode_type) { in coda_iget()
174 inode->i_mode = 0444; in coda_cnode_makectl()
/linux/fs/jffs2/
A Dfs.c53 if (S_ISBLK(inode->i_mode) || S_ISCHR(inode->i_mode)) { in jffs2_do_setattr()
59 } else if (S_ISLNK(inode->i_mode)) { in jffs2_do_setattr()
80 if (S_ISLNK(inode->i_mode)) in jffs2_do_setattr()
89 if (S_ISLNK(inode->i_mode)) in jffs2_do_setattr()
112 ri->mode = cpu_to_jemode(inode->i_mode); in jffs2_do_setattr()
140 if (S_ISLNK(inode->i_mode)) in jffs2_do_setattr()
153 inode->i_mode = jemode_to_cpu(ri->mode); in jffs2_do_setattr()
293 switch (inode->i_mode & S_IFMT) { in jffs2_iget()
386 iattr.ia_mode = inode->i_mode; in jffs2_dirty_inode()
449 if (dir_i->i_mode & S_ISGID) { in jffs2_new_inode()
[all …]
/linux/fs/
A Dsync.c228 umode_t i_mode; in sync_file_range() local
265 i_mode = file_inode(file)->i_mode; in sync_file_range()
267 if (!S_ISREG(i_mode) && !S_ISBLK(i_mode) && !S_ISDIR(i_mode) && in sync_file_range()
268 !S_ISLNK(i_mode)) in sync_file_range()
A Dioctl.c628 if ((fa->fsx_xflags & FS_XFLAG_EXTSIZE) && !S_ISREG(inode->i_mode)) in fileattr_set_prepare()
632 !S_ISDIR(inode->i_mode)) in fileattr_set_prepare()
636 !S_ISREG(inode->i_mode) && !S_ISDIR(inode->i_mode)) in fileattr_set_prepare()
644 !(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode))) in fileattr_set_prepare()
798 if (S_ISDIR(inode->i_mode) || S_ISREG(inode->i_mode) || in do_vfs_ioctl()
799 S_ISLNK(inode->i_mode)) { in do_vfs_ioctl()
833 if (!S_ISREG(inode->i_mode)) in do_vfs_ioctl()
852 if (S_ISREG(inode->i_mode)) in do_vfs_ioctl()
/linux/fs/btrfs/
A Dacl.c71 if (!S_ISDIR(inode->i_mode)) in __btrfs_set_acl()
118 umode_t old_mode = inode->i_mode; in btrfs_set_acl()
122 &inode->i_mode, &acl); in btrfs_set_acl()
128 inode->i_mode = old_mode; in btrfs_set_acl()
142 ret = posix_acl_create(dir, &inode->i_mode, &default_acl, &acl); in btrfs_init_acl()
/linux/fs/erofs/
A Dinode.c94 inode->i_mode = le16_to_cpu(die->i_mode); in erofs_read_inode()
95 switch (inode->i_mode & S_IFMT) { in erofs_read_inode()
137 inode->i_mode = le16_to_cpu(dic->i_mode); in erofs_read_inode()
138 switch (inode->i_mode & S_IFMT) { in erofs_read_inode()
195 if (test_opt(&sbi->opt, DAX_ALWAYS) && S_ISREG(inode->i_mode) && in erofs_read_inode()
207 inode->i_mode, vi->nid); in erofs_read_inode()
268 switch (inode->i_mode & S_IFMT) { in erofs_fill_inode()
291 init_special_inode(inode, inode->i_mode, inode->i_rdev); in erofs_fill_inode()
/linux/fs/jfs/
A Dacl.c103 umode_t mode = inode->i_mode; in jfs_set_acl()
111 if (mode != inode->i_mode) in jfs_set_acl()
117 inode->i_mode = mode; in jfs_set_acl()
134 rc = posix_acl_create(dir, &inode->i_mode, &default_acl, &acl); in jfs_init_acl()
154 inode->i_mode; in jfs_init_acl()
/linux/fs/ntfs3/
A Dxattr.c552 if (S_ISLNK(inode->i_mode)) in ntfs_set_acl_ex()
558 umode_t mode = inode->i_mode; in ntfs_set_acl_ex()
565 if (inode->i_mode != mode) { in ntfs_set_acl_ex()
566 inode->i_mode = mode; in ntfs_set_acl_ex()
575 if (!S_ISDIR(inode->i_mode)) in ntfs_set_acl_ex()
668 if (S_ISLNK(inode->i_mode)) in ntfs_acl_chmod()
824 if (S_ISREG(inode->i_mode)) { in ntfs_setxattr()
837 if (S_ISDIR(inode->i_mode)) in ntfs_setxattr()
845 inode->i_mode &= ~0222; in ntfs_setxattr()
847 inode->i_mode |= 0222; in ntfs_setxattr()
[all …]
/linux/fs/crypto/
A Dkeysetup.c66 if (S_ISREG(inode->i_mode)) in select_encryption_mode()
69 if (S_ISDIR(inode->i_mode) || S_ISLNK(inode->i_mode)) in select_encryption_mode()
73 inode->i_ino, (inode->i_mode & S_IFMT)); in select_encryption_mode()
657 S_ISDIR(inode->i_mode)); in fscrypt_get_encryption_info()
699 if (WARN_ON_ONCE(inode->i_mode == 0)) in fscrypt_prepare_new_inode()
706 if (!S_ISREG(inode->i_mode) && in fscrypt_prepare_new_inode()
707 !S_ISDIR(inode->i_mode) && in fscrypt_prepare_new_inode()
708 !S_ISLNK(inode->i_mode)) in fscrypt_prepare_new_inode()
716 S_ISDIR(inode->i_mode)); in fscrypt_prepare_new_inode()
743 if (IS_ENCRYPTED(inode) && S_ISLNK(inode->i_mode)) { in fscrypt_free_inode()
/linux/fs/nfs/
A Dinode.c232 int mode = inode->i_mode; in nfs_zap_caches_locked()
346 inode->i_mode = fattr->mode; in nfs_init_locked()
487 inode->i_mode = fattr->mode; in nfs_fhget()
649 if (S_ISREG(inode->i_mode)) in nfs_setattr()
728 inode->i_mode &= ~S_ISUID; in nfs_setattr_update_inode()
732 inode->i_mode &= ~S_ISGID; in nfs_setattr_update_inode()
736 inode->i_mode = mode; in nfs_setattr_update_inode()
857 S_ISREG(inode->i_mode)) { in nfs_getattr()
920 if (S_ISDIR(inode->i_mode)) in nfs_getattr()
2152 inode->i_mode = newmode; in nfs_update_inode()
[all …]
/linux/fs/ext2/
A Dinode.c53 return (S_ISLNK(inode->i_mode) && in ext2_inode_is_fast_symlink()
1274 if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || in ext2_truncate_blocks()
1275 S_ISLNK(inode->i_mode))) in ext2_truncate_blocks()
1289 if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || in ext2_setsize()
1290 S_ISLNK(inode->i_mode))) in ext2_setsize()
1429 inode->i_mode = le16_to_cpu(raw_inode->i_mode); in ext2_iget()
1472 if (S_ISREG(inode->i_mode)) in ext2_iget()
1493 if (S_ISREG(inode->i_mode)) { in ext2_iget()
1555 raw_inode->i_mode = cpu_to_le16(inode->i_mode); in __ext2_write_inode()
1589 if (!S_ISREG(inode->i_mode)) in __ext2_write_inode()
[all …]
/linux/fs/reiserfs/
A Dxattr_acl.c29 umode_t mode = inode->i_mode; in reiserfs_set_acl()
52 inode->i_mode = mode; in reiserfs_set_acl()
263 if (!S_ISDIR(inode->i_mode)) in __reiserfs_set_acl()
313 if (S_ISLNK(inode->i_mode)) in reiserfs_inherit_default_acl()
331 err = posix_acl_create(dir, &inode->i_mode, &default_acl, &acl); in reiserfs_inherit_default_acl()
351 inode->i_mode &= ~current_umask(); in reiserfs_inherit_default_acl()
407 return posix_acl_chmod(&init_user_ns, inode, inode->i_mode); in reiserfs_acl_chmod()
/linux/fs/orangefs/
A Dacl.c148 if (inode->i_mode != iattr.ia_mode) in orangefs_set_acl()
164 umode_t mode = inode->i_mode; in orangefs_init_acl()
189 if (mode != inode->i_mode) { in orangefs_init_acl()
191 inode->i_mode = mode; in orangefs_init_acl()
/linux/fs/adfs/
A Dinode.c139 if (S_ISLNK(inode->i_mode)) in adfs_mode2atts()
143 if (S_ISDIR(inode->i_mode)) in adfs_mode2atts()
269 inode->i_mode = adfs_atts2mode(sb, inode); in adfs_iget()
274 if (S_ISDIR(inode->i_mode)) { in adfs_iget()
277 } else if (S_ISREG(inode->i_mode)) { in adfs_iget()
336 inode->i_mode = adfs_atts2mode(sb, inode); in adfs_notify_change()
/linux/fs/proc/
A Dfd.c116 if (S_ISLNK(inode->i_mode)) { in tid_fd_update_inode()
117 unsigned i_mode = S_IFLNK; in tid_fd_update_inode() local
119 i_mode |= S_IRUSR | S_IXUSR; in tid_fd_update_inode()
121 i_mode |= S_IWUSR | S_IXUSR; in tid_fd_update_inode()
122 inode->i_mode = i_mode; in tid_fd_update_inode()
/linux/fs/udf/
A Dinode.c152 inode->i_ino, inode->i_mode, in udf_evict_inode()
885 if (S_ISREG(inode->i_mode)) in inode_getblk()
1234 if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || in udf_setsize()
1235 S_ISLNK(inode->i_mode))) in udf_setsize()
1464 inode->i_mode = sbi->s_fmode; in udf_read_inode()
1554 inode->i_mode |= S_IFDIR; in udf_read_inode()
1567 inode->i_mode |= S_IFREG; in udf_read_inode()
1570 inode->i_mode |= S_IFBLK; in udf_read_inode()
1573 inode->i_mode |= S_IFCHR; in udf_read_inode()
1601 if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) { in udf_read_inode()
[all …]

Completed in 54 milliseconds

12345678910>>...18