Lines Matching defs:inode
23 struct inode *inode = file_inode(filp);
24 struct ext2_inode_info *ei = EXT2_I(inode);
42 if (!inode_owner_or_capable(inode)) {
52 flags = ext2_mask_flags(inode->i_mode, flags);
54 inode_lock(inode);
56 if (IS_NOQUOTA(inode)) {
57 inode_unlock(inode);
63 ret = vfs_ioc_setflags_prepare(inode, oldflags, flags);
65 inode_unlock(inode);
73 ext2_set_inode_flags(inode);
74 inode->i_ctime = current_time(inode);
75 inode_unlock(inode);
77 mark_inode_dirty(inode);
83 return put_user(inode->i_generation, (int __user *) arg);
87 if (!inode_owner_or_capable(inode))
97 inode_lock(inode);
98 inode->i_ctime = current_time(inode);
99 inode->i_generation = generation;
100 inode_unlock(inode);
102 mark_inode_dirty(inode);
108 if (test_opt(inode->i_sb, RESERVATION)
109 && S_ISREG(inode->i_mode)
117 if (!test_opt(inode->i_sb, RESERVATION) ||!S_ISREG(inode->i_mode))
120 if (!inode_owner_or_capable(inode))
134 * need to allocate reservation structure for this inode
143 ext2_init_block_alloc_info(inode);