Lines Matching refs:inode
42 * affs fs inode data in memory
46 struct mutex i_link_lock; /* Protects internal inode access. */
47 struct mutex i_ext_lock; /* Protects internal inode access. */
62 struct inode vfs_inode;
65 /* short cut to get to the affs specific inode data */
66 static inline struct affs_inode_info *AFFS_I(struct inode *inode)
68 return container_of(inode, struct affs_inode_info, vfs_inode);
137 extern int affs_insert_hash(struct inode *inode, struct buffer_head *bh);
138 extern int affs_remove_hash(struct inode *dir, struct buffer_head *rem_bh);
144 extern void affs_mode_to_prot(struct inode *inode);
160 extern u32 affs_alloc_block(struct inode *inode, u32 goal);
168 extern struct dentry *affs_lookup(struct inode *dir, struct dentry *dentry, unsigned int);
169 extern int affs_unlink(struct inode *dir, struct dentry *dentry);
170 extern int affs_create(struct mnt_idmap *idmap, struct inode *dir,
172 extern int affs_mkdir(struct mnt_idmap *idmap, struct inode *dir,
174 extern int affs_rmdir(struct inode *dir, struct dentry *dentry);
175 extern int affs_link(struct dentry *olddentry, struct inode *dir,
178 struct inode *dir, struct dentry *dentry,
181 struct inode *old_dir, struct dentry *old_dentry,
182 struct inode *new_dir, struct dentry *new_dentry,
185 /* inode.c */
187 extern struct inode *affs_new_inode(struct inode *dir);
190 extern void affs_evict_inode(struct inode *inode);
191 extern struct inode *affs_iget(struct super_block *sb,
193 extern int affs_write_inode(struct inode *inode,
195 extern int affs_add_entry(struct inode *dir, struct inode *inode,
200 void affs_free_prealloc(struct inode *inode);
201 extern void affs_truncate(struct inode *);
206 extern void affs_dir_truncate(struct inode *);
300 affs_lock_link(struct inode *inode)
302 mutex_lock(&AFFS_I(inode)->i_link_lock);
305 affs_unlock_link(struct inode *inode)
307 mutex_unlock(&AFFS_I(inode)->i_link_lock);
310 affs_lock_dir(struct inode *inode)
312 mutex_lock_nested(&AFFS_I(inode)->i_hash_lock, SINGLE_DEPTH_NESTING);
315 affs_unlock_dir(struct inode *inode)
317 mutex_unlock(&AFFS_I(inode)->i_hash_lock);
320 affs_lock_ext(struct inode *inode)
322 mutex_lock(&AFFS_I(inode)->i_ext_lock);
325 affs_unlock_ext(struct inode *inode)
327 mutex_unlock(&AFFS_I(inode)->i_ext_lock);