Home
last modified time | relevance | path

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

12345678910>>...12

/fs/hpfs/
Dinode.c19 i->i_mode = hpfs_sb(sb)->sb_mode; in hpfs_init_inode()
77 i->i_mode = S_IFLNK | 0777; in hpfs_read_inode()
94 i->i_mode = mode; in hpfs_read_inode()
115 i->i_mode |= S_IFDIR; in hpfs_read_inode()
130 i->i_mode |= S_IFREG; in hpfs_read_inode()
131 if (!hpfs_inode->i_ea_mode) i->i_mode &= ~0111; in hpfs_read_inode()
162 if (!S_ISLNK(i->i_mode)) in hpfs_write_inode_ea()
163 if ((i->i_mode != ((hpfs_sb(i->i_sb)->sb_mode & ~(S_ISDIR(i->i_mode) ? 0 : 0111)) in hpfs_write_inode_ea()
164 | (S_ISDIR(i->i_mode) ? S_IFDIR : S_IFREG)) in hpfs_write_inode_ea()
165 && i->i_mode != ((hpfs_sb(i->i_sb)->sb_mode & ~(S_ISDIR(i->i_mode) ? 0222 : 0333)) in hpfs_write_inode_ea()
[all …]
/fs/squashfs/
Dinode.c73 inode->i_mode = le16_to_cpu(sqsh_ino->mode); in squashfs_new_inode()
165 inode->i_mode |= S_IFREG; in squashfs_read_inode()
210 inode->i_mode |= S_IFREG; in squashfs_read_inode()
239 inode->i_mode |= S_IFDIR; in squashfs_read_inode()
264 inode->i_mode |= S_IFDIR; in squashfs_read_inode()
291 inode->i_mode |= S_IFLNK; in squashfs_read_inode()
325 inode->i_mode |= S_IFCHR; in squashfs_read_inode()
327 inode->i_mode |= S_IFBLK; in squashfs_read_inode()
330 init_special_inode(inode, inode->i_mode, new_decode_dev(rdev)); in squashfs_read_inode()
347 inode->i_mode |= S_IFCHR; in squashfs_read_inode()
[all …]
/fs/
Dgeneric_acl.c75 if (S_ISLNK(inode->i_mode)) in generic_acl_set()
90 error = posix_acl_equiv_mode(acl, &inode->i_mode); in generic_acl_set()
100 if (!S_ISDIR(inode->i_mode)) { in generic_acl_set()
126 if (!S_ISLNK(inode->i_mode)) in generic_acl_init()
129 if (S_ISDIR(inode->i_mode)) in generic_acl_init()
131 error = posix_acl_create(&acl, GFP_KERNEL, &inode->i_mode); in generic_acl_init()
137 inode->i_mode &= ~current_umask(); in generic_acl_init()
157 if (S_ISLNK(inode->i_mode)) in generic_acl_chmod()
161 error = posix_acl_chmod(&acl, GFP_KERNEL, inode->i_mode); in generic_acl_chmod()
Dsync.c282 umode_t i_mode; in SYSCALL_DEFINE() local
324 i_mode = file->f_path.dentry->d_inode->i_mode; in SYSCALL_DEFINE()
326 if (!S_ISREG(i_mode) && !S_ISBLK(i_mode) && !S_ISDIR(i_mode) && in SYSCALL_DEFINE()
327 !S_ISLNK(i_mode)) in SYSCALL_DEFINE()
/fs/jfs/
Dacl.c83 if (S_ISLNK(inode->i_mode)) in jfs_set_acl()
92 if (!S_ISDIR(inode->i_mode)) in jfs_set_acl()
122 if (S_ISLNK(inode->i_mode)) in jfs_init_acl()
130 if (S_ISDIR(inode->i_mode)) { in jfs_init_acl()
135 rc = posix_acl_create(&acl, GFP_KERNEL, &inode->i_mode); in jfs_init_acl()
143 inode->i_mode &= ~current_umask(); in jfs_init_acl()
146 inode->i_mode; in jfs_init_acl()
157 if (S_ISLNK(inode->i_mode)) in jfs_acl_chmod()
164 rc = posix_acl_chmod(&acl, GFP_KERNEL, inode->i_mode); in jfs_acl_chmod()
/fs/hfs/
Dinode.c183 inode->i_mode = mode; in hfs_new_inode()
198 inode->i_mode |= S_IRWXUGO; in hfs_new_inode()
199 inode->i_mode &= ~HFS_SB(inode->i_sb)->s_dir_umask; in hfs_new_inode()
208 inode->i_mode |= S_IRUGO|S_IXUGO; in hfs_new_inode()
210 inode->i_mode |= S_IWUGO; in hfs_new_inode()
211 inode->i_mode &= ~HFS_SB(inode->i_sb)->s_file_umask; in hfs_new_inode()
233 if (S_ISDIR(inode->i_mode)) { in hfs_delete_inode()
244 if (S_ISREG(inode->i_mode)) { in hfs_delete_inode()
336 inode->i_mode = S_IRUGO | S_IXUGO; in hfs_read_inode()
338 inode->i_mode |= S_IWUGO; in hfs_read_inode()
[all …]
/fs/sysv/
Dinode.c170 if (S_ISREG(inode->i_mode)) { in sysv_set_inode()
174 } else if (S_ISDIR(inode->i_mode)) { in sysv_set_inode()
178 } else if (S_ISLNK(inode->i_mode)) { in sysv_set_inode()
188 init_special_inode(inode, inode->i_mode, rdev); in sysv_set_inode()
219 inode->i_mode = fs16_to_cpu(sbi, raw_inode->i_mode); in sysv_iget()
238 if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) in sysv_iget()
273 raw_inode->i_mode = cpu_to_fs16(sbi, inode->i_mode); in __sysv_write_inode()
283 if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) in __sysv_write_inode()
/fs/btrfs/
Dacl.c121 ret = posix_acl_equiv_mode(acl, &inode->i_mode); in btrfs_set_acl()
128 if (!S_ISDIR(inode->i_mode)) in btrfs_set_acl()
205 if (!S_ISLNK(inode->i_mode)) { in btrfs_init_acl()
213 inode->i_mode &= ~current_umask(); in btrfs_init_acl()
217 if (S_ISDIR(inode->i_mode)) { in btrfs_init_acl()
223 ret = posix_acl_create(&acl, GFP_NOFS, &inode->i_mode); in btrfs_init_acl()
243 if (S_ISLNK(inode->i_mode)) in btrfs_acl_chmod()
253 ret = posix_acl_chmod(&acl, GFP_KERNEL, inode->i_mode); in btrfs_acl_chmod()
/fs/jffs2/
Dacl.c225 if (S_ISLNK(inode->i_mode)) in jffs2_set_acl()
232 umode_t mode = inode->i_mode; in jffs2_set_acl()
236 if (inode->i_mode != mode) { in jffs2_set_acl()
252 if (!S_ISDIR(inode->i_mode)) in jffs2_set_acl()
264 int jffs2_init_acl_pre(struct inode *dir_i, struct inode *inode, umode_t *i_mode) in jffs2_init_acl_pre() argument
271 if (S_ISLNK(*i_mode)) in jffs2_init_acl_pre()
279 *i_mode &= ~current_umask(); in jffs2_init_acl_pre()
281 if (S_ISDIR(*i_mode)) in jffs2_init_acl_pre()
284 rc = posix_acl_create(&acl, GFP_KERNEL, i_mode); in jffs2_init_acl_pre()
319 if (S_ISLNK(inode->i_mode)) in jffs2_acl_chmod()
[all …]
Dfs.c51 if (S_ISBLK(inode->i_mode) || S_ISCHR(inode->i_mode)) { in jffs2_do_setattr()
57 } else if (S_ISLNK(inode->i_mode)) { in jffs2_do_setattr()
78 if (S_ISLNK(inode->i_mode)) in jffs2_do_setattr()
87 if (S_ISLNK(inode->i_mode)) in jffs2_do_setattr()
108 ri->mode = cpu_to_jemode(inode->i_mode); in jffs2_do_setattr()
136 if (S_ISLNK(inode->i_mode)) in jffs2_do_setattr()
149 inode->i_mode = jemode_to_cpu(ri->mode); in jffs2_do_setattr()
241 __func__, inode->i_ino, inode->i_mode); in jffs2_evict_inode()
278 inode->i_mode = jemode_to_cpu(latest_node.mode); in jffs2_iget()
290 switch (inode->i_mode & S_IFMT) { in jffs2_iget()
[all …]
/fs/affs/
Dinode.c58 inode->i_mode = 0; in affs_iget()
75 inode->i_mode = sbi->s_mode; in affs_iget()
77 inode->i_mode = prot_to_mode(prot); in affs_iget()
103 if (inode->i_mode & S_IRUSR) in affs_iget()
104 inode->i_mode |= S_IXUSR; in affs_iget()
105 if (inode->i_mode & S_IRGRP) in affs_iget()
106 inode->i_mode |= S_IXGRP; in affs_iget()
107 if (inode->i_mode & S_IROTH) in affs_iget()
108 inode->i_mode |= S_IXOTH; in affs_iget()
109 inode->i_mode |= S_IFDIR; in affs_iget()
[all …]
/fs/xfs/
Dxfs_acl.c174 if (S_ISLNK(inode->i_mode)) in xfs_set_acl()
182 if (!S_ISDIR(inode->i_mode)) in xfs_set_acl()
230 if (mode != inode->i_mode) { in xfs_set_mode()
261 if (!S_ISDIR(inode->i_mode)) in posix_acl_default_exists()
272 umode_t mode = inode->i_mode; in xfs_inherit_acl()
275 if (S_ISDIR(inode->i_mode)) { in xfs_inherit_acl()
311 if (S_ISLNK(inode->i_mode)) in xfs_acl_chmod()
318 error = posix_acl_chmod(&acl, GFP_KERNEL, inode->i_mode); in xfs_acl_chmod()
356 if (type == ACL_TYPE_DEFAULT && !S_ISDIR(inode->i_mode)) in xfs_xattr_acl_set()
386 umode_t mode = inode->i_mode; in xfs_xattr_acl_set()
/fs/minix/
Dinode.c432 if (S_ISREG(inode->i_mode)) { in minix_set_inode()
436 } else if (S_ISDIR(inode->i_mode)) { in minix_set_inode()
440 } else if (S_ISLNK(inode->i_mode)) { in minix_set_inode()
444 init_special_inode(inode, inode->i_mode, rdev); in minix_set_inode()
462 inode->i_mode = raw_inode->i_mode; in V1_minix_iget()
495 inode->i_mode = raw_inode->i_mode; in V2_minix_iget()
547 raw_inode->i_mode = inode->i_mode; in V1_minix_update_inode()
553 if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) in V1_minix_update_inode()
574 raw_inode->i_mode = inode->i_mode; in V2_minix_update_inode()
582 if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) in V2_minix_update_inode()
[all …]
/fs/ocfs2/
Dacl.c210 inode->i_mode = new_mode; in ocfs2_acl_set_mode()
212 di->i_mode = cpu_to_le16(inode->i_mode); in ocfs2_acl_set_mode()
243 if (S_ISLNK(inode->i_mode)) in ocfs2_set_acl()
250 umode_t mode = inode->i_mode; in ocfs2_set_acl()
268 if (!S_ISDIR(inode->i_mode)) in ocfs2_set_acl()
321 if (S_ISLNK(inode->i_mode)) in ocfs2_acl_chmod()
330 ret = posix_acl_chmod(&acl, GFP_KERNEL, inode->i_mode); in ocfs2_acl_chmod()
356 if (!S_ISLNK(inode->i_mode)) { in ocfs2_init_acl()
364 mode = inode->i_mode & ~current_umask(); in ocfs2_init_acl()
373 if (S_ISDIR(inode->i_mode)) { in ocfs2_init_acl()
[all …]
/fs/nfs/
Dinode.c148 int mode = inode->i_mode; in nfs_zap_caches_locked()
285 inode->i_mode = fattr->mode; in nfs_fhget()
295 if (S_ISREG(inode->i_mode)) { in nfs_fhget()
299 } else if (S_ISDIR(inode->i_mode)) { in nfs_fhget()
315 } else if (S_ISLNK(inode->i_mode)) in nfs_fhget()
318 init_special_inode(inode, inode->i_mode, fattr->rdev); in nfs_fhget()
422 if (!S_ISREG(inode->i_mode) || attr->ia_size == i_size_read(inode)) in nfs_setattr()
432 if (S_ISREG(inode->i_mode)) in nfs_setattr()
493 mode |= inode->i_mode & ~S_IALLUGO; in nfs_setattr_update_inode()
494 inode->i_mode = mode; in nfs_setattr_update_inode()
[all …]
/fs/gfs2/
Dacl.c75 if (mode != inode->i_mode) { in gfs2_set_mode()
116 umode_t mode = inode->i_mode; in gfs2_acl_create()
121 if (S_ISLNK(inode->i_mode)) in gfs2_acl_create()
129 if (mode != inode->i_mode) in gfs2_acl_create()
134 if (S_ISDIR(inode->i_mode)) { in gfs2_acl_create()
244 if (type == ACL_TYPE_DEFAULT && !S_ISDIR(inode->i_mode)) in gfs2_xattr_system_set()
248 if (S_ISLNK(inode->i_mode)) in gfs2_xattr_system_set()
276 umode_t mode = inode->i_mode; in gfs2_xattr_system_set()
/fs/ncpfs/
Dinode.c142 inode->i_mode = nwi->nfs.mode; in ncp_update_dates()
161 inode->i_mode = server->m.dir_mode; in ncp_update_attrs()
168 inode->i_mode = server->m.file_mode; in ncp_update_attrs()
179 inode->i_mode = (inode->i_mode & ~S_IFMT) | S_IFLNK; in ncp_update_attrs()
187 inode->i_mode |= S_IRUGO; in ncp_update_attrs()
191 inode->i_mode |= (inode->i_mode >> 2) & S_IXUGO; in ncp_update_attrs()
201 if (nwi->attributes & aRONLY) inode->i_mode &= ~S_IWUGO; in ncp_update_attrs()
227 DDPRINTK("ncp_read_inode: inode->i_mode = %u\n", inode->i_mode); in ncp_set_attr()
266 if (S_ISREG(inode->i_mode)) { in ncp_iget()
269 } else if (S_ISDIR(inode->i_mode)) { in ncp_iget()
[all …]
/fs/ext2/
Dacl.c188 if (S_ISLNK(inode->i_mode)) in ext2_set_acl()
197 error = posix_acl_equiv_mode(acl, &inode->i_mode); in ext2_set_acl()
211 if (!S_ISDIR(inode->i_mode)) in ext2_set_acl()
244 if (!S_ISLNK(inode->i_mode)) { in ext2_init_acl()
251 inode->i_mode &= ~current_umask(); in ext2_init_acl()
254 if (S_ISDIR(inode->i_mode)) { in ext2_init_acl()
259 error = posix_acl_create(&acl, GFP_KERNEL, &inode->i_mode); in ext2_init_acl()
294 if (S_ISLNK(inode->i_mode)) in ext2_acl_chmod()
299 error = posix_acl_chmod(&acl, GFP_KERNEL, inode->i_mode); in ext2_acl_chmod()
Dinode.c48 return (S_ISLNK(inode->i_mode) && in ext2_inode_is_fast_symlink()
518 if (S_ISDIR(inode->i_mode) && IS_DIRSYNC(inode)) in ext2_alloc_branch()
690 if (S_ISREG(inode->i_mode) && (!ei->i_block_alloc_info)) in ext2_get_blocks()
1160 if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || in ext2_truncate_blocks()
1161 S_ISLNK(inode->i_mode))) in ext2_truncate_blocks()
1174 if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || in ext2_setsize()
1175 S_ISLNK(inode->i_mode))) in ext2_setsize()
1312 inode->i_mode = le16_to_cpu(raw_inode->i_mode); in ext2_iget()
1331 if (inode->i_nlink == 0 && (inode->i_mode == 0 || ei->i_dtime)) { in ext2_iget()
1344 if (S_ISREG(inode->i_mode)) in ext2_iget()
[all …]
/fs/adfs/
Dinode.c135 if (S_ISLNK(inode->i_mode)) in adfs_mode2atts()
138 if (S_ISDIR(inode->i_mode)) in adfs_mode2atts()
143 mode = inode->i_mode & asb->s_owner_mask; in adfs_mode2atts()
149 mode = inode->i_mode & asb->s_other_mask; in adfs_mode2atts()
267 inode->i_mode = adfs_atts2mode(sb, inode); in adfs_iget()
272 if (S_ISDIR(inode->i_mode)) { in adfs_iget()
275 } else if (S_ISREG(inode->i_mode)) { in adfs_iget()
332 inode->i_mode = adfs_atts2mode(sb, inode); in adfs_notify_change()
/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()
41 init_special_inode(inode, inode->i_mode, huge_decode_dev(attr->va_rdev)); in coda_fill_inode()
163 inode->i_mode = 0444; in coda_cnode_makectl()
/fs/ext4/
Dacl.c194 if (S_ISLNK(inode->i_mode)) in ext4_set_acl()
201 error = posix_acl_equiv_mode(acl, &inode->i_mode); in ext4_set_acl()
215 if (!S_ISDIR(inode->i_mode)) in ext4_set_acl()
250 if (!S_ISLNK(inode->i_mode)) { in ext4_init_acl()
257 inode->i_mode &= ~current_umask(); in ext4_init_acl()
260 if (S_ISDIR(inode->i_mode)) { in ext4_init_acl()
266 error = posix_acl_create(&acl, GFP_NOFS, &inode->i_mode); in ext4_init_acl()
303 if (S_ISLNK(inode->i_mode)) in ext4_acl_chmod()
310 error = posix_acl_chmod(&acl, GFP_KERNEL, inode->i_mode); in ext4_acl_chmod()
/fs/ext3/
Dacl.c189 if (S_ISLNK(inode->i_mode)) in ext3_set_acl()
196 error = posix_acl_equiv_mode(acl, &inode->i_mode); in ext3_set_acl()
210 if (!S_ISDIR(inode->i_mode)) in ext3_set_acl()
246 if (!S_ISLNK(inode->i_mode)) { in ext3_init_acl()
253 inode->i_mode &= ~current_umask(); in ext3_init_acl()
256 if (S_ISDIR(inode->i_mode)) { in ext3_init_acl()
262 error = posix_acl_create(&acl, GFP_NOFS, &inode->i_mode); in ext3_init_acl()
298 if (S_ISLNK(inode->i_mode)) in ext3_acl_chmod()
305 error = posix_acl_chmod(&acl, GFP_KERNEL, inode->i_mode); in ext3_acl_chmod()
/fs/reiserfs/
Dxattr_acl.c268 if (S_ISLNK(inode->i_mode)) in reiserfs_set_acl()
275 error = posix_acl_equiv_mode(acl, &inode->i_mode); in reiserfs_set_acl()
286 if (!S_ISDIR(inode->i_mode)) in reiserfs_set_acl()
334 if (S_ISLNK(inode->i_mode)) in reiserfs_inherit_default_acl()
356 if (S_ISDIR(inode->i_mode)) { in reiserfs_inherit_default_acl()
365 err = posix_acl_create(&acl, GFP_NOFS, &inode->i_mode); in reiserfs_inherit_default_acl()
377 inode->i_mode &= ~current_umask(); in reiserfs_inherit_default_acl()
432 if (S_ISLNK(inode->i_mode)) in reiserfs_acl_chmod()
447 error = posix_acl_chmod(&acl, GFP_NOFS, inode->i_mode); in reiserfs_acl_chmod()
/fs/udf/
Dinode.c87 inode->i_ino, inode->i_mode, in udf_evict_inode()
763 if (S_ISREG(inode->i_mode)) in inode_getblk()
1118 if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || in udf_setsize()
1119 S_ISLNK(inode->i_mode))) in udf_setsize()
1334 inode->i_mode = sbi->s_fmode; in udf_fill_inode()
1337 inode->i_mode = sbi->s_dmode; in udf_fill_inode()
1339 inode->i_mode = udf_convert_permissions(fe); in udf_fill_inode()
1340 inode->i_mode &= ~sbi->s_umask; in udf_fill_inode()
1399 inode->i_mode |= S_IFDIR; in udf_fill_inode()
1412 inode->i_mode |= S_IFREG; in udf_fill_inode()
[all …]

12345678910>>...12