Home
last modified time | relevance | path

Searched refs:i_flags (Results 1 – 25 of 98) sorted by relevance

1234

/fs/jfs/
Djfs_inode.c33 inode->i_flags &= ~(S_IMMUTABLE | S_APPEND | in jfs_set_inode_flags()
37 inode->i_flags |= S_IMMUTABLE; in jfs_set_inode_flags()
39 inode->i_flags |= S_APPEND; in jfs_set_inode_flags()
41 inode->i_flags |= S_NOATIME; in jfs_set_inode_flags()
43 inode->i_flags |= S_DIRSYNC; in jfs_set_inode_flags()
45 inode->i_flags |= S_SYNC; in jfs_set_inode_flags()
50 unsigned int flags = jfs_ip->vfs_inode.i_flags; in jfs_get_inode_flags()
158 inode->i_flags |= S_NOQUOTA; in ialloc()
/fs/hfsplus/
Dioctl.c65 if (inode->i_flags & S_IMMUTABLE) in hfsplus_ioctl_getflags()
67 if (inode->i_flags & S_APPEND) in hfsplus_ioctl_getflags()
99 inode->i_flags & (S_IMMUTABLE|S_APPEND)) { in hfsplus_ioctl_setflags()
113 inode->i_flags |= S_IMMUTABLE; in hfsplus_ioctl_setflags()
115 inode->i_flags &= ~S_IMMUTABLE; in hfsplus_ioctl_setflags()
118 inode->i_flags |= S_APPEND; in hfsplus_ioctl_setflags()
120 inode->i_flags &= ~S_APPEND; in hfsplus_ioctl_setflags()
/fs/ubifs/
Dioctl.c41 inode->i_flags &= ~(S_SYNC | S_APPEND | S_IMMUTABLE | S_DIRSYNC); in ubifs_set_inode_flags()
43 inode->i_flags |= S_SYNC; in ubifs_set_inode_flags()
45 inode->i_flags |= S_APPEND; in ubifs_set_inode_flags()
47 inode->i_flags |= S_IMMUTABLE; in ubifs_set_inode_flags()
49 inode->i_flags |= S_DIRSYNC; in ubifs_set_inode_flags()
156 dbg_gen("get flags: %#x, i_flags %#x", flags, inode->i_flags); in ubifs_ioctl()
179 dbg_gen("set flags: %#x, i_flags %#x", flags, inode->i_flags); in ubifs_ioctl()
/fs/f2fs/
Dinode.c23 unsigned int flags = F2FS_I(inode)->i_flags; in f2fs_set_inode_flags()
25 inode->i_flags &= ~(S_SYNC | S_APPEND | S_IMMUTABLE | in f2fs_set_inode_flags()
29 inode->i_flags |= S_SYNC; in f2fs_set_inode_flags()
31 inode->i_flags |= S_APPEND; in f2fs_set_inode_flags()
33 inode->i_flags |= S_IMMUTABLE; in f2fs_set_inode_flags()
35 inode->i_flags |= S_NOATIME; in f2fs_set_inode_flags()
37 inode->i_flags |= S_DIRSYNC; in f2fs_set_inode_flags()
83 fi->i_flags = le32_to_cpu(ri->i_flags); in do_read_inode()
183 ri->i_flags = cpu_to_le32(F2FS_I(inode)->i_flags); in update_inode()
/fs/ocfs2/
Dinode.c81 inode->i_flags &= ~(S_IMMUTABLE | in ocfs2_set_inode_flags()
85 inode->i_flags |= S_IMMUTABLE; in ocfs2_set_inode_flags()
88 inode->i_flags |= S_SYNC; in ocfs2_set_inode_flags()
90 inode->i_flags |= S_APPEND; in ocfs2_set_inode_flags()
92 inode->i_flags |= S_NOATIME; in ocfs2_set_inode_flags()
94 inode->i_flags |= S_DIRSYNC; in ocfs2_set_inode_flags()
100 unsigned int flags = oi->vfs_inode.i_flags; in ocfs2_get_inode_flags()
260 BUG_ON(!(fe->i_flags & cpu_to_le32(OCFS2_VALID_FL))); in ocfs2_populate_inode()
299 le32_to_cpu(fe->i_flags)); in ocfs2_populate_inode()
300 if (fe->i_flags & cpu_to_le32(OCFS2_SYSTEM_FL)) { in ocfs2_populate_inode()
[all …]
/fs/xfs/
Dxfs_inode.h269 unsigned long i_flags; /* see defined flags below */ member
322 ip->i_flags |= flags; in __xfs_iflags_set()
337 ip->i_flags &= ~flags; in xfs_iflags_clear()
344 return (ip->i_flags & flags); in __xfs_iflags_test()
363 ret = ip->i_flags & flags; in xfs_iflags_test_and_clear()
365 ip->i_flags &= ~flags; in xfs_iflags_test_and_clear()
376 ret = ip->i_flags & flags; in xfs_iflags_test_and_set()
378 ip->i_flags |= flags; in xfs_iflags_test_and_set()
449 wake_up_bit(&ip->i_flags, __XFS_IFLOCK_BIT); in xfs_ifunlock()
Dxfs_icache.c83 ip->i_flags = 0; in xfs_inode_alloc()
133 ip->i_flags = XFS_IRECLAIM; in xfs_inode_free()
181 if (ip->i_flags & (XFS_INEW|XFS_IRECLAIM)) { in xfs_iget_cache_hit()
200 if (ip->i_flags & XFS_IRECLAIMABLE) { in xfs_iget_cache_hit()
209 ip->i_flags |= XFS_IRECLAIM; in xfs_iget_cache_hit()
223 ip->i_flags &= ~(XFS_INEW | XFS_IRECLAIM); in xfs_iget_cache_hit()
224 ASSERT(ip->i_flags & XFS_IRECLAIMABLE); in xfs_iget_cache_hit()
237 ip->i_flags &= ~XFS_IRECLAIM_RESET_FLAGS; in xfs_iget_cache_hit()
238 ip->i_flags |= XFS_INEW; in xfs_iget_cache_hit()
Dxfs_iops.c1131 inode->i_flags |= S_IMMUTABLE; in xfs_diflags_to_iflags()
1133 inode->i_flags &= ~S_IMMUTABLE; in xfs_diflags_to_iflags()
1135 inode->i_flags |= S_APPEND; in xfs_diflags_to_iflags()
1137 inode->i_flags &= ~S_APPEND; in xfs_diflags_to_iflags()
1139 inode->i_flags |= S_SYNC; in xfs_diflags_to_iflags()
1141 inode->i_flags &= ~S_SYNC; in xfs_diflags_to_iflags()
1143 inode->i_flags |= S_NOATIME; in xfs_diflags_to_iflags()
1145 inode->i_flags &= ~S_NOATIME; in xfs_diflags_to_iflags()
Dxfs_ioctl.c633 if (inode->i_flags & (S_IMMUTABLE|S_APPEND)) in xfs_ioc_space()
899 inode->i_flags |= S_IMMUTABLE; in xfs_diflags_to_linux()
901 inode->i_flags &= ~S_IMMUTABLE; in xfs_diflags_to_linux()
903 inode->i_flags |= S_APPEND; in xfs_diflags_to_linux()
905 inode->i_flags &= ~S_APPEND; in xfs_diflags_to_linux()
907 inode->i_flags |= S_SYNC; in xfs_diflags_to_linux()
909 inode->i_flags &= ~S_SYNC; in xfs_diflags_to_linux()
911 inode->i_flags |= S_NOATIME; in xfs_diflags_to_linux()
913 inode->i_flags &= ~S_NOATIME; in xfs_diflags_to_linux()
/fs/exofs/
Dexofs.h88 unsigned long i_flags; /* various atomic flags */ member
109 return test_bit(OBJ_2BCREATED, &oi->i_flags); in obj_2bcreated()
114 set_bit(OBJ_2BCREATED, &oi->i_flags); in set_obj_2bcreated()
119 return test_bit(OBJ_CREATED, &oi->i_flags); in obj_created()
124 set_bit(OBJ_CREATED, &oi->i_flags); in set_obj_created()
/fs/reiserfs/
Dioctl.c178 REISERFS_I(inode)->i_flags |= i_nopack_mask; in reiserfs_unpack()
182 if (REISERFS_I(inode)->i_flags & i_nopack_mask) { in reiserfs_unpack()
194 REISERFS_I(inode)->i_flags |= i_nopack_mask; in reiserfs_unpack()
216 REISERFS_I(inode)->i_flags |= i_nopack_mask; in reiserfs_unpack()
Dinode.c494 if (REISERFS_I(inode)->i_flags & i_pack_on_close_mask) { in reiserfs_get_blocks_direct_io()
500 REISERFS_I(inode)->i_flags &= ~i_pack_on_close_mask; in reiserfs_get_blocks_direct_io()
663 REISERFS_I(inode)->i_flags |= i_pack_on_close_mask; in reiserfs_get_block()
1143 REISERFS_I(inode)->i_flags = 0; in init_inode()
1196 REISERFS_I(inode)->i_flags &= ~i_nopack_mask; in init_inode()
1846 inode->i_flags &= ~(S_IMMUTABLE | S_APPEND); in reiserfs_new_inode()
1856 REISERFS_I(inode)->i_flags = 0; in reiserfs_new_inode()
1956 inode->i_flags |= S_PRIVATE; in reiserfs_new_inode()
1993 inode->i_flags |= S_NOQUOTA; in reiserfs_new_inode()
2749 REISERFS_I(inode)->i_flags &= ~i_pack_on_close_mask; in reiserfs_write_end()
[all …]
Dxattr.h21 #define has_xattr_dir(inode) (REISERFS_I(inode)->i_flags & i_has_xattr_dir)
79 if ((REISERFS_I(inode)->i_flags & i_has_xattr_dir) == 0) { in reiserfs_xattr_jcreate_nblocks()
/fs/ext2/
Dinode.c1272 unsigned int flags = EXT2_I(inode)->i_flags; in ext2_set_inode_flags()
1274 inode->i_flags &= ~(S_SYNC|S_APPEND|S_IMMUTABLE|S_NOATIME|S_DIRSYNC); in ext2_set_inode_flags()
1276 inode->i_flags |= S_SYNC; in ext2_set_inode_flags()
1278 inode->i_flags |= S_APPEND; in ext2_set_inode_flags()
1280 inode->i_flags |= S_IMMUTABLE; in ext2_set_inode_flags()
1282 inode->i_flags |= S_NOATIME; in ext2_set_inode_flags()
1284 inode->i_flags |= S_DIRSYNC; in ext2_set_inode_flags()
1290 unsigned int flags = ei->vfs_inode.i_flags; in ext2_get_inode_flags()
1292 ei->i_flags &= ~(EXT2_SYNC_FL|EXT2_APPEND_FL| in ext2_get_inode_flags()
1295 ei->i_flags |= EXT2_SYNC_FL; in ext2_get_inode_flags()
[all …]
Dioctl.c33 flags = ei->i_flags & EXT2_FL_USER_VISIBLE; in ext2_ioctl()
61 oldflags = ei->i_flags; in ext2_ioctl()
79 ei->i_flags = flags; in ext2_ioctl()
Dialloc.c282 (EXT2_I(parent)->i_flags & EXT2_TOPDIR_FL)) { in find_group_orlov()
556 ei->i_flags = in ext2_new_inode()
557 ext2_mask_flags(mode, EXT2_I(dir)->i_flags & EXT2_FL_INHERITED); in ext2_new_inode()
603 inode->i_flags |= S_NOQUOTA; in ext2_new_inode()
/fs/ext4/
Dioctl.c68 memswap(&inode1->i_flags, &inode2->i_flags, sizeof(inode1->i_flags)); in swap_inode_data()
78 memswap(&ei1->i_flags, &ei2->i_flags, sizeof(ei1->i_flags)); in swap_inode_data()
149 inode_bl->i_flags = 0; in swap_inode_boot_loader()
150 ei_bl->i_flags = 0; in swap_inode_boot_loader()
224 flags = ei->i_flags & EXT4_FL_USER_VISIBLE; in ext4_ioctl()
251 oldflags = ei->i_flags; in ext4_ioctl()
/fs/nilfs2/
Dinode.c386 ii->i_flags = nilfs_mask_flags( in nilfs_new_inode()
387 mode, NILFS_I(dir)->i_flags & NILFS_FL_INHERITED); in nilfs_new_inode()
423 unsigned int flags = NILFS_I(inode)->i_flags; in nilfs_set_inode_flags()
425 inode->i_flags &= ~(S_SYNC | S_APPEND | S_IMMUTABLE | S_NOATIME | in nilfs_set_inode_flags()
428 inode->i_flags |= S_SYNC; in nilfs_set_inode_flags()
430 inode->i_flags |= S_APPEND; in nilfs_set_inode_flags()
432 inode->i_flags |= S_IMMUTABLE; in nilfs_set_inode_flags()
434 inode->i_flags |= S_NOATIME; in nilfs_set_inode_flags()
436 inode->i_flags |= S_DIRSYNC; in nilfs_set_inode_flags()
462 ii->i_flags = le32_to_cpu(raw_inode->i_flags); in nilfs_read_inode_common()
[all …]
/fs/
Dstack.c73 dest->i_flags = src->i_flags; in fsstack_copy_attr_all()
/fs/gfs2/
Dlog.h55 if (!test_bit(GIF_ORDERED, &ip->i_flags)) { in gfs2_ordered_add_inode()
57 if (!test_and_set_bit(GIF_ORDERED, &ip->i_flags)) in gfs2_ordered_add_inode()
Dglops.c195 if (ip && test_and_clear_bit(GIF_SW_PAGED, &ip->i_flags)) in inode_go_sync()
242 set_bit(GIF_INVALID, &ip->i_flags); in inode_go_inval()
384 clear_bit(GIF_INVALID, &ip->i_flags); in gfs2_inode_refresh()
407 if (test_bit(GIF_INVALID, &ip->i_flags)) { in inode_go_lock()
443 IF2DT(ip->i_inode.i_mode), ip->i_flags, in inode_go_dump()
/fs/ext3/
Dinode.c2855 unsigned int flags = EXT3_I(inode)->i_flags; in ext3_set_inode_flags()
2857 inode->i_flags &= ~(S_SYNC|S_APPEND|S_IMMUTABLE|S_NOATIME|S_DIRSYNC); in ext3_set_inode_flags()
2859 inode->i_flags |= S_SYNC; in ext3_set_inode_flags()
2861 inode->i_flags |= S_APPEND; in ext3_set_inode_flags()
2863 inode->i_flags |= S_IMMUTABLE; in ext3_set_inode_flags()
2865 inode->i_flags |= S_NOATIME; in ext3_set_inode_flags()
2867 inode->i_flags |= S_DIRSYNC; in ext3_set_inode_flags()
2873 unsigned int flags = ei->vfs_inode.i_flags; in ext3_get_inode_flags()
2875 ei->i_flags &= ~(EXT3_SYNC_FL|EXT3_APPEND_FL| in ext3_get_inode_flags()
2878 ei->i_flags |= EXT3_SYNC_FL; in ext3_get_inode_flags()
[all …]
Dioctl.c27 flags = ei->i_flags & EXT3_FL_USER_VISIBLE; in ext3_ioctl()
55 oldflags = ei->i_flags; in ext3_ioctl()
93 ei->i_flags = flags; in ext3_ioctl()
Dext3.h269 __le32 i_flags; /* File flags */ member
540 __u32 i_flags; member
901 (EXT3_I(dir)->i_flags & EXT3_INDEX_FL))
1299 if (EXT3_I(inode)->i_flags & EXT3_JOURNAL_DATA_FL) in ext3_should_journal_data()
1308 if (EXT3_I(inode)->i_flags & EXT3_JOURNAL_DATA_FL) in ext3_should_order_data()
1319 if (EXT3_I(inode)->i_flags & EXT3_JOURNAL_DATA_FL) in ext3_should_writeback_data()
/fs/jbd2/
Dcommit.c227 set_bit(__JI_COMMIT_RUNNING, &jinode->i_flags); in journal_submit_data_buffers()
241 clear_bit(__JI_COMMIT_RUNNING, &jinode->i_flags); in journal_submit_data_buffers()
243 wake_up_bit(&jinode->i_flags, __JI_COMMIT_RUNNING); in journal_submit_data_buffers()
263 set_bit(__JI_COMMIT_RUNNING, &jinode->i_flags); in journal_finish_inode_data_buffers()
279 clear_bit(__JI_COMMIT_RUNNING, &jinode->i_flags); in journal_finish_inode_data_buffers()
281 wake_up_bit(&jinode->i_flags, __JI_COMMIT_RUNNING); in journal_finish_inode_data_buffers()

1234