Home
last modified time | relevance | path

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

12345678910>>...19

/kernel/linux/linux-5.10/fs/sharefs/
Dauthentication.h53 if (S_ISDIR(inode->i_mode)) in sharefs_set_read_perm()
54 inode->i_mode = (inode->i_mode & S_IFMT) | SHAREFS_PERM_READONLY_DIR; in sharefs_set_read_perm()
56 inode->i_mode = (inode->i_mode & S_IFMT) | SHAREFS_PERM_READONLY_FILE; in sharefs_set_read_perm()
61 if (S_ISDIR(inode->i_mode)) in sharefs_set_read_write_perm()
62 inode->i_mode = (inode->i_mode & S_IFMT) | SHAREFS_PERM_READWRITE_DIR; in sharefs_set_read_write_perm()
64 inode->i_mode = (inode->i_mode & S_IFMT) | SHAREFS_PERM_READWRITE_FILE; in sharefs_set_read_write_perm()
Dlookup.c113 if (S_ISDIR(lower_inode->i_mode)) in sharefs_iget()
115 else if (S_ISLNK(lower_inode->i_mode)) in sharefs_iget()
121 if (S_ISDIR(lower_inode->i_mode)) in sharefs_iget()
134 if (S_ISBLK(lower_inode->i_mode) || S_ISCHR(lower_inode->i_mode) || in sharefs_iget()
135 S_ISFIFO(lower_inode->i_mode) || S_ISSOCK(lower_inode->i_mode)) in sharefs_iget()
136 init_special_inode(inode, lower_inode->i_mode, in sharefs_iget()
/kernel/linux/linux-5.10/fs/hpfs/
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()
134 if (!hpfs_inode->i_ea_mode) i->i_mode &= ~0111; 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()
167 | (S_ISDIR(i->i_mode) ? S_IFDIR : S_IFREG)) 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()
[all …]
/kernel/linux/linux-5.10/fs/squashfs/
Dinode.c65 inode->i_mode = le16_to_cpu(sqsh_ino->mode); in squashfs_new_inode()
157 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()
323 init_special_inode(inode, inode->i_mode, new_decode_dev(rdev)); in squashfs_read_inode()
340 inode->i_mode |= S_IFCHR; in squashfs_read_inode()
[all …]
/kernel/linux/linux-5.10/fs/sysv/
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()
/kernel/linux/linux-5.10/fs/f2fs/
Dinode.c62 if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode) || in __get_inode_rdev()
63 S_ISFIFO(inode->i_mode) || S_ISSOCK(inode->i_mode)) { in __get_inode_rdev()
89 if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) { in __set_inode_rdev()
278 __func__, inode->i_ino, inode->i_mode); in sanity_check_inode()
282 if (f2fs_has_inline_dentry(inode) && !S_ISDIR(inode->i_mode)) { in sanity_check_inode()
285 __func__, inode->i_ino, inode->i_mode); in sanity_check_inode()
351 inode->i_mode = le16_to_cpu(ri->i_mode); in do_read_inode()
365 if (S_ISDIR(inode->i_mode)) in do_read_inode()
367 else if (S_ISREG(inode->i_mode)) in do_read_inode()
372 if (S_ISREG(inode->i_mode)) in do_read_inode()
[all …]
/kernel/linux/linux-5.10/fs/ocfs2/
Dacl.c195 inode->i_mode = new_mode; in ocfs2_acl_set_mode()
197 di->i_mode = cpu_to_le16(inode->i_mode); in ocfs2_acl_set_mode()
229 if (S_ISLNK(inode->i_mode)) in ocfs2_set_acl()
238 if (!S_ISDIR(inode->i_mode)) in ocfs2_set_acl()
323 if (S_ISLNK(inode->i_mode)) in ocfs2_acl_chmod()
334 ret = __posix_acl_chmod(&acl, GFP_KERNEL, inode->i_mode); in ocfs2_acl_chmod()
360 if (!S_ISLNK(inode->i_mode)) { in ocfs2_init_acl()
370 mode = inode->i_mode & ~current_umask(); in ocfs2_init_acl()
379 if (S_ISDIR(inode->i_mode)) { in ocfs2_init_acl()
386 mode = inode->i_mode; in ocfs2_init_acl()
/kernel/linux/linux-5.10/fs/affs/
Dinode.c55 inode->i_mode = 0; in affs_iget()
72 inode->i_mode = sbi->s_mode; in affs_iget()
74 inode->i_mode = affs_prot_to_mode(prot); 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()
104 if (inode->i_mode & S_IROTH) in affs_iget()
105 inode->i_mode |= S_IXOTH; in affs_iget()
106 inode->i_mode |= S_IFDIR; in affs_iget()
[all …]
/kernel/linux/linux-5.10/fs/minix/
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 …]
/kernel/linux/linux-5.10/fs/hfs/
Dinode.c195 inode->i_mode = mode; in hfs_new_inode()
210 inode->i_mode |= S_IRWXUGO; in hfs_new_inode()
211 inode->i_mode &= ~HFS_SB(inode->i_sb)->s_dir_umask; in hfs_new_inode()
220 inode->i_mode |= S_IRUGO|S_IXUGO; in hfs_new_inode()
222 inode->i_mode |= S_IWUGO; in hfs_new_inode()
223 inode->i_mode &= ~HFS_SB(inode->i_sb)->s_file_umask; in hfs_new_inode()
245 if (S_ISDIR(inode->i_mode)) { in hfs_delete_inode()
256 if (S_ISREG(inode->i_mode)) { in hfs_delete_inode()
349 inode->i_mode = S_IRUGO | S_IXUGO; in hfs_read_inode()
351 inode->i_mode |= S_IWUGO; in hfs_read_inode()
[all …]
/kernel/linux/linux-5.10/fs/btrfs/
Dacl.c67 if (!S_ISDIR(inode->i_mode)) in __btrfs_set_acl()
113 umode_t old_mode = inode->i_mode; in btrfs_set_acl()
116 ret = posix_acl_update_mode(inode, &inode->i_mode, &acl); in btrfs_set_acl()
122 inode->i_mode = old_mode; in btrfs_set_acl()
136 ret = posix_acl_create(dir, &inode->i_mode, &default_acl, &acl); in btrfs_init_acl()
/kernel/linux/linux-5.10/fs/jfs/
Dacl.c99 umode_t mode = inode->i_mode; in jfs_set_acl()
107 if (mode != inode->i_mode) in jfs_set_acl()
113 inode->i_mode = mode; in jfs_set_acl()
130 rc = posix_acl_create(dir, &inode->i_mode, &default_acl, &acl); in jfs_init_acl()
150 inode->i_mode; in jfs_init_acl()
/kernel/linux/linux-5.10/fs/
Dsync.c248 umode_t i_mode; in sync_file_range() local
285 i_mode = file_inode(file)->i_mode; in sync_file_range()
287 if (!S_ISREG(i_mode) && !S_ISBLK(i_mode) && !S_ISDIR(i_mode) && in sync_file_range()
288 !S_ISLNK(i_mode)) in sync_file_range()
/kernel/linux/linux-5.10/fs/jffs2/
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()
204 rc = posix_acl_chmod(inode, inode->i_mode); in jffs2_setattr()
246 __func__, inode->i_ino, inode->i_mode); in jffs2_evict_inode()
280 inode->i_mode = jemode_to_cpu(latest_node.mode); in jffs2_iget()
[all …]
/kernel/linux/linux-5.10/fs/coda/
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()
169 inode->i_mode = 0444; in coda_cnode_makectl()
/kernel/linux/linux-5.10/fs/erofs/
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()
134 inode->i_mode = le16_to_cpu(dic->i_mode); in erofs_read_inode()
135 switch (inode->i_mode & S_IFMT) { in erofs_read_inode()
187 inode->i_mode, vi->nid); in erofs_read_inode()
248 switch (inode->i_mode & S_IFMT) { in erofs_fill_inode()
268 init_special_inode(inode, inode->i_mode, inode->i_rdev); in erofs_fill_inode()
/kernel/linux/linux-5.10/fs/reiserfs/
Dxattr_acl.c28 umode_t mode = inode->i_mode; in reiserfs_set_acl()
50 inode->i_mode = mode; in reiserfs_set_acl()
258 if (!S_ISDIR(inode->i_mode)) in __reiserfs_set_acl()
308 if (S_ISLNK(inode->i_mode)) in reiserfs_inherit_default_acl()
326 err = posix_acl_create(dir, &inode->i_mode, &default_acl, &acl); in reiserfs_inherit_default_acl()
346 inode->i_mode &= ~current_umask(); in reiserfs_inherit_default_acl()
402 return posix_acl_chmod(inode, inode->i_mode); in reiserfs_acl_chmod()
/kernel/linux/linux-5.10/fs/crypto/
Dkeysetup.c65 if (S_ISREG(inode->i_mode)) in select_encryption_mode()
68 if (S_ISDIR(inode->i_mode) || S_ISLNK(inode->i_mode)) in select_encryption_mode()
72 inode->i_ino, (inode->i_mode & S_IFMT)); in select_encryption_mode()
629 S_ISDIR(inode->i_mode)); in fscrypt_get_encryption_info()
669 if (WARN_ON_ONCE(inode->i_mode == 0)) in fscrypt_prepare_new_inode()
676 if (!S_ISREG(inode->i_mode) && in fscrypt_prepare_new_inode()
677 !S_ISDIR(inode->i_mode) && in fscrypt_prepare_new_inode()
678 !S_ISLNK(inode->i_mode)) in fscrypt_prepare_new_inode()
686 S_ISDIR(inode->i_mode)); in fscrypt_prepare_new_inode()
713 if (IS_ENCRYPTED(inode) && S_ISLNK(inode->i_mode)) { in fscrypt_free_inode()
/kernel/linux/linux-5.10/fs/hmdfs/authority/
Dauthentication.c342 if (S_ISDIR(child->i_mode)) in hmdfs_perm_inherit()
357 child->i_mode = child->i_mode | S_IRWXG; in check_and_fixup_ownership()
390 dinode->i_mode = dinode->i_mode | S_IRWXG; in check_and_fixup_ownership_remote()
405 dinode->i_mode = dinode->i_mode | S_IRWXG; in check_and_fixup_ownership_remote()
437 dinode->i_mode = dir->i_mode | S_IRWXG; in check_and_fixup_ownership_remote()
/kernel/linux/linux-5.10/fs/nfs/
Dinode.c240 int mode = inode->i_mode; in nfs_zap_caches_locked()
355 inode->i_mode = fattr->mode; in nfs_init_locked()
485 inode->i_mode = fattr->mode; in nfs_fhget()
494 if (S_ISREG(inode->i_mode)) { in nfs_fhget()
497 } else if (S_ISDIR(inode->i_mode)) { in nfs_fhget()
511 } else if (S_ISLNK(inode->i_mode)) { in nfs_fhget()
515 init_special_inode(inode, inode->i_mode, fattr->rdev); in nfs_fhget()
626 BUG_ON(!S_ISREG(inode->i_mode)); in nfs_setattr()
644 if (S_ISREG(inode->i_mode)) in nfs_setattr()
721 mode |= inode->i_mode & ~S_IALLUGO; in nfs_setattr_update_inode()
[all …]
/kernel/linux/linux-5.10/fs/hmdfs/
Dinode_root.c44 inode->i_mode = in fill_device_local_inode()
45 (lower_inode->i_mode & S_IFMT) | S_IRWXU | S_IRWXG | S_IXOTH; in fill_device_local_inode()
85 inode->i_mode = S_IFDIR | S_IRWXU | S_IRWXG | S_IXOTH; in fill_device_inode_remote()
116 inode->i_mode = S_IFDIR | S_IRWXU | S_IRWXG | S_IXOTH; in fill_device_inode_cloud()
311 inode->i_mode = (lower_inode->i_mode & S_IFMT) | S_IRUSR | S_IXUSR | in fill_device_inode()
345 inode->i_mode = (lower_inode->i_mode & S_IFMT) | S_IRUSR | S_IXUSR | in fill_root_inode()
/kernel/linux/linux-5.10/fs/ext2/
Dinode.c53 return (S_ISLNK(inode->i_mode) && in ext2_inode_is_fast_symlink()
530 if (S_ISDIR(inode->i_mode) && IS_DIRSYNC(inode)) in ext2_alloc_branch()
714 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()
1271 S_ISLNK(inode->i_mode))) in ext2_truncate_blocks()
1285 if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || in ext2_setsize()
1286 S_ISLNK(inode->i_mode))) in ext2_setsize()
1383 if (test_opt(inode->i_sb, DAX) && S_ISREG(inode->i_mode)) in ext2_set_inode_flags()
1425 inode->i_mode = le16_to_cpu(raw_inode->i_mode); in ext2_iget()
1446 if (inode->i_nlink == 0 && (inode->i_mode == 0 || ei->i_dtime)) { in ext2_iget()
[all …]
/kernel/linux/linux-5.10/fs/orangefs/
Dacl.c143 if (inode->i_mode != iattr.ia_mode) in orangefs_set_acl()
159 umode_t mode = inode->i_mode; in orangefs_init_acl()
184 if (mode != inode->i_mode) { in orangefs_init_acl()
186 inode->i_mode = mode; in orangefs_init_acl()
/kernel/linux/linux-5.10/fs/adfs/
Dinode.c138 if (S_ISLNK(inode->i_mode)) in adfs_mode2atts()
142 if (S_ISDIR(inode->i_mode)) in adfs_mode2atts()
268 inode->i_mode = adfs_atts2mode(sb, inode); in adfs_iget()
273 if (S_ISDIR(inode->i_mode)) { in adfs_iget()
276 } else if (S_ISREG(inode->i_mode)) { in adfs_iget()
334 inode->i_mode = adfs_atts2mode(sb, inode); in adfs_notify_change()
/kernel/linux/linux-5.10/fs/proc/
Dfd.c106 if (S_ISLNK(inode->i_mode)) { in tid_fd_update_inode()
107 unsigned i_mode = S_IFLNK; in tid_fd_update_inode() local
109 i_mode |= S_IRUSR | S_IXUSR; in tid_fd_update_inode()
111 i_mode |= S_IWUSR | S_IXUSR; in tid_fd_update_inode()
112 inode->i_mode = i_mode; in tid_fd_update_inode()

12345678910>>...19