Home
last modified time | relevance | path

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

12345678910>>...14

/linux-4.19.296/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 …]
/linux-4.19.296/fs/squashfs/
Dinode.c78 inode->i_mode = le16_to_cpu(sqsh_ino->mode); in squashfs_new_inode()
170 inode->i_mode |= S_IFREG; in squashfs_read_inode()
215 inode->i_mode |= S_IFREG; in squashfs_read_inode()
244 inode->i_mode |= S_IFDIR; in squashfs_read_inode()
269 inode->i_mode |= S_IFDIR; in squashfs_read_inode()
297 inode->i_mode |= S_IFLNK; in squashfs_read_inode()
331 inode->i_mode |= S_IFCHR; in squashfs_read_inode()
333 inode->i_mode |= S_IFBLK; in squashfs_read_inode()
336 init_special_inode(inode, inode->i_mode, new_decode_dev(rdev)); in squashfs_read_inode()
353 inode->i_mode |= S_IFCHR; in squashfs_read_inode()
[all …]
/linux-4.19.296/fs/f2fs/
Dinode.c60 if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode) || in __get_inode_rdev()
61 S_ISFIFO(inode->i_mode) || S_ISSOCK(inode->i_mode)) { in __get_inode_rdev()
87 if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) { in __set_inode_rdev()
272 (!S_ISREG(inode->i_mode) && !S_ISLNK(inode->i_mode))) { in sanity_check_inode()
277 __func__, inode->i_ino, inode->i_mode); in sanity_check_inode()
281 if (f2fs_has_inline_dentry(inode) && !S_ISDIR(inode->i_mode)) { in sanity_check_inode()
286 __func__, inode->i_ino, inode->i_mode); in sanity_check_inode()
312 inode->i_mode = le16_to_cpu(ri->i_mode); in do_read_inode()
326 if (S_ISDIR(inode->i_mode)) in do_read_inode()
328 else if (S_ISREG(inode->i_mode)) in do_read_inode()
[all …]
/linux-4.19.296/fs/sysv/
Dinode.c155 if (S_ISREG(inode->i_mode)) { in sysv_set_inode()
159 } else if (S_ISDIR(inode->i_mode)) { in sysv_set_inode()
163 } else if (S_ISLNK(inode->i_mode)) { in sysv_set_inode()
168 init_special_inode(inode, inode->i_mode, rdev); in sysv_set_inode()
199 inode->i_mode = fs16_to_cpu(sbi, raw_inode->i_mode); in sysv_iget()
218 if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) in sysv_iget()
253 raw_inode->i_mode = cpu_to_fs16(sbi, inode->i_mode); in __sysv_write_inode()
263 if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) in __sysv_write_inode()
/linux-4.19.296/fs/ocfs2/
Dacl.c203 inode->i_mode = new_mode; in ocfs2_acl_set_mode()
205 di->i_mode = cpu_to_le16(inode->i_mode); in ocfs2_acl_set_mode()
237 if (S_ISLNK(inode->i_mode)) in ocfs2_set_acl()
246 if (!S_ISDIR(inode->i_mode)) in ocfs2_set_acl()
329 if (S_ISLNK(inode->i_mode)) in ocfs2_acl_chmod()
340 ret = __posix_acl_chmod(&acl, GFP_KERNEL, inode->i_mode); in ocfs2_acl_chmod()
366 if (!S_ISLNK(inode->i_mode)) { in ocfs2_init_acl()
376 mode = inode->i_mode & ~current_umask(); in ocfs2_init_acl()
385 if (S_ISDIR(inode->i_mode)) { in ocfs2_init_acl()
392 mode = inode->i_mode; in ocfs2_init_acl()
/linux-4.19.296/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 …]
/linux-4.19.296/fs/btrfs/
Dacl.c67 if (!S_ISDIR(inode->i_mode)) in __btrfs_set_acl()
109 umode_t old_mode = inode->i_mode; in btrfs_set_acl()
112 ret = posix_acl_update_mode(inode, &inode->i_mode, &acl); in btrfs_set_acl()
118 inode->i_mode = old_mode; in btrfs_set_acl()
132 ret = posix_acl_create(dir, &inode->i_mode, &default_acl, &acl); in btrfs_init_acl()
/linux-4.19.296/fs/minix/
Dinode.c464 if (S_ISREG(inode->i_mode)) { in minix_set_inode()
468 } else if (S_ISDIR(inode->i_mode)) { in minix_set_inode()
472 } else if (S_ISLNK(inode->i_mode)) { in minix_set_inode()
477 init_special_inode(inode, inode->i_mode, rdev); in minix_set_inode()
502 inode->i_mode = raw_inode->i_mode; in V1_minix_iget()
542 inode->i_mode = raw_inode->i_mode; in V2_minix_iget()
594 raw_inode->i_mode = inode->i_mode; in V1_minix_update_inode()
600 if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) in V1_minix_update_inode()
621 raw_inode->i_mode = inode->i_mode; in V2_minix_update_inode()
629 if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) in V2_minix_update_inode()
[all …]
/linux-4.19.296/fs/
Dsync.c291 umode_t i_mode; in ksys_sync_file_range() local
333 i_mode = file_inode(f.file)->i_mode; in ksys_sync_file_range()
335 if (!S_ISREG(i_mode) && !S_ISBLK(i_mode) && !S_ISDIR(i_mode) && in ksys_sync_file_range()
336 !S_ISLNK(i_mode)) in ksys_sync_file_range()
Dattr.c203 inode->i_mode = mode; in setattr_copy()
231 umode_t mode = inode->i_mode; in notify_change()
273 if (S_ISLNK(inode->i_mode)) in notify_change()
310 attr->ia_mode = (inode->i_mode & ~S_ISUID); in notify_change()
317 attr->ia_mode = inode->i_mode; in notify_change()
Dopen.c76 if (S_ISDIR(inode->i_mode)) in vfs_truncate()
78 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()
291 if (S_ISFIFO(inode->i_mode)) in vfs_fallocate()
294 if (S_ISDIR(inode->i_mode)) in vfs_fallocate()
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()
415 if (res || !(mode & S_IWOTH) || special_file(inode->i_mode)) in do_faccessat()
558 newattrs.ia_mode = (mode & S_IALLUGO) | (inode->i_mode & ~S_IALLUGO); in chmod_common()
645 if (!S_ISDIR(inode->i_mode)) in chown_common()
[all …]
/linux-4.19.296/fs/hfs/
Dinode.c194 inode->i_mode = mode; in hfs_new_inode()
209 inode->i_mode |= S_IRWXUGO; in hfs_new_inode()
210 inode->i_mode &= ~HFS_SB(inode->i_sb)->s_dir_umask; in hfs_new_inode()
219 inode->i_mode |= S_IRUGO|S_IXUGO; in hfs_new_inode()
221 inode->i_mode |= S_IWUGO; in hfs_new_inode()
222 inode->i_mode &= ~HFS_SB(inode->i_sb)->s_file_umask; in hfs_new_inode()
244 if (S_ISDIR(inode->i_mode)) { in hfs_delete_inode()
255 if (S_ISREG(inode->i_mode)) { in hfs_delete_inode()
348 inode->i_mode = S_IRUGO | S_IXUGO; in hfs_read_inode()
350 inode->i_mode |= S_IWUGO; in hfs_read_inode()
[all …]
/linux-4.19.296/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()
164 inode->i_mode = 0444; in coda_cnode_makectl()
/linux-4.19.296/fs/jffs2/
Dfs.c52 if (S_ISBLK(inode->i_mode) || S_ISCHR(inode->i_mode)) { in jffs2_do_setattr()
58 } else if (S_ISLNK(inode->i_mode)) { in jffs2_do_setattr()
79 if (S_ISLNK(inode->i_mode)) in jffs2_do_setattr()
88 if (S_ISLNK(inode->i_mode)) in jffs2_do_setattr()
111 ri->mode = cpu_to_jemode(inode->i_mode); in jffs2_do_setattr()
139 if (S_ISLNK(inode->i_mode)) in jffs2_do_setattr()
152 inode->i_mode = jemode_to_cpu(ri->mode); in jffs2_do_setattr()
203 rc = posix_acl_chmod(inode, inode->i_mode); in jffs2_setattr()
245 __func__, inode->i_ino, inode->i_mode); in jffs2_evict_inode()
279 inode->i_mode = jemode_to_cpu(latest_node.mode); in jffs2_iget()
[all …]
/linux-4.19.296/fs/adfs/
Dinode.c140 if (S_ISLNK(inode->i_mode)) in adfs_mode2atts()
143 if (S_ISDIR(inode->i_mode)) in adfs_mode2atts()
148 mode = inode->i_mode & asb->s_owner_mask; in adfs_mode2atts()
154 mode = inode->i_mode & asb->s_other_mask; in adfs_mode2atts()
272 inode->i_mode = adfs_atts2mode(sb, inode); in adfs_iget()
277 if (S_ISDIR(inode->i_mode)) { in adfs_iget()
280 } else if (S_ISREG(inode->i_mode)) { in adfs_iget()
337 inode->i_mode = adfs_atts2mode(sb, inode); in adfs_notify_change()
/linux-4.19.296/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()
/linux-4.19.296/fs/nfs/
Dinode.c221 int mode = inode->i_mode; in nfs_zap_caches_locked()
310 if ((S_IFMT & inode->i_mode) != (S_IFMT & fattr->mode)) in nfs_find_actor()
326 inode->i_mode = fattr->mode; in nfs_init_locked()
456 inode->i_mode = fattr->mode; in nfs_fhget()
465 if (S_ISREG(inode->i_mode)) { in nfs_fhget()
468 } else if (S_ISDIR(inode->i_mode)) { in nfs_fhget()
482 } else if (S_ISLNK(inode->i_mode)) { in nfs_fhget()
486 init_special_inode(inode, inode->i_mode, fattr->rdev); in nfs_fhget()
595 BUG_ON(!S_ISREG(inode->i_mode)); in nfs_setattr()
613 if (S_ISREG(inode->i_mode)) in nfs_setattr()
[all …]
/linux-4.19.296/fs/jfs/
Dacl.c112 umode_t mode = inode->i_mode; in jfs_set_acl()
125 inode->i_mode = mode; in jfs_set_acl()
142 rc = posix_acl_create(dir, &inode->i_mode, &default_acl, &acl); in jfs_init_acl()
158 inode->i_mode; in jfs_init_acl()
Dinode.c53 if (S_ISREG(inode->i_mode)) { in jfs_iget()
57 } else if (S_ISDIR(inode->i_mode)) { in jfs_iget()
60 } else if (S_ISLNK(inode->i_mode)) { in jfs_iget()
76 init_special_inode(inode, inode->i_mode, inode->i_rdev); in jfs_iget()
104 if (!special_file(inode->i_mode) && noisy) { in jfs_commit_inode()
186 if (!special_file(inode->i_mode) && noisy) { in jfs_dirty_inode()
/linux-4.19.296/include/linux/
Dfsnotify.h180 if (S_ISDIR(inode->i_mode)) in fsnotify_access()
198 if (S_ISDIR(inode->i_mode)) in fsnotify_modify()
216 if (S_ISDIR(inode->i_mode)) in fsnotify_open()
233 if (S_ISDIR(inode->i_mode)) in fsnotify_close()
250 if (S_ISDIR(inode->i_mode)) in fsnotify_xattr()
285 if (S_ISDIR(inode->i_mode)) in fsnotify_change()
/linux-4.19.296/fs/ext2/
Dinode.c53 return (S_ISLNK(inode->i_mode) && in ext2_inode_is_fast_symlink()
531 if (S_ISDIR(inode->i_mode) && IS_DIRSYNC(inode)) in ext2_alloc_branch()
715 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 …]
/linux-4.19.296/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()
/linux-4.19.296/fs/hfsplus/
Dinode.c202 inode->i_mode = mode; in hfsplus_get_perms()
380 if (S_ISDIR(inode->i_mode)) { in hfsplus_new_inode()
385 } else if (S_ISREG(inode->i_mode)) { in hfsplus_new_inode()
391 } else if (S_ISLNK(inode->i_mode)) { in hfsplus_new_inode()
410 if (S_ISDIR(inode->i_mode)) { in hfsplus_delete_inode()
416 if (S_ISREG(inode->i_mode)) { in hfsplus_delete_inode()
421 } else if (S_ISLNK(inode->i_mode)) { in hfsplus_delete_inode()
515 if (S_ISREG(inode->i_mode)) { in hfsplus_cat_read_inode()
522 } else if (S_ISLNK(inode->i_mode)) { in hfsplus_cat_read_inode()
527 init_special_inode(inode, inode->i_mode, in hfsplus_cat_read_inode()
[all …]
/linux-4.19.296/fs/gfs2/
Dacl.c133 mode = inode->i_mode; in gfs2_set_acl()
141 if (!ret && mode != inode->i_mode) { in gfs2_set_acl()
143 inode->i_mode = mode; in gfs2_set_acl()
Dinode.c83 umode_t mode = inode->i_mode; in gfs2_set_iop()
101 init_special_inode(inode, inode->i_mode, inode->i_rdev); in gfs2_set_iop()
187 inode->i_mode = DT2IF(type); in gfs2_inode_lookup()
357 (dip->i_inode.i_mode & S_ISUID) && in munge_mode_uid_gid()
359 if (S_ISDIR(inode->i_mode)) in munge_mode_uid_gid()
360 inode->i_mode |= S_ISUID; in munge_mode_uid_gid()
362 inode->i_mode &= ~07111; in munge_mode_uid_gid()
367 if (dip->i_inode.i_mode & S_ISGID) { in munge_mode_uid_gid()
368 if (S_ISDIR(inode->i_mode)) in munge_mode_uid_gid()
369 inode->i_mode |= S_ISGID; in munge_mode_uid_gid()
[all …]

12345678910>>...14