Lines Matching defs:inode

66  * Currently we do not support inode number overlapping and re-using, so this
67 * watermark defines dangerous inode number level. This should be fixed later,
69 * 64-bit inode numbers, but this means more overhead.
83 /* Maximum possible inode number (only 32-bit inodes are supported now) */
111 * inode.
115 /* How much an extended attribute adds to the host inode */
168 * Lockdep classes for UBIFS inode @ui_mutex.
353 * struct ubifs_inode - UBIFS in-memory inode description.
354 * @vfs_inode: VFS inode description object
356 * @del_cmtno: commit number corresponding to the time the inode was deleted,
359 * @xattr_cnt: count of extended attributes this inode has
361 * this inode
362 * @dirty: non-zero if the inode is dirty
363 * @xattr: non-zero if this is an extended attribute inode
365 * @ui_mutex: serializes inode write-back with the rest of VFS operations,
370 * @synced_i_size: synchronized size of inode, i.e. the value of inode size
373 * @ui_size: inode size used by UBIFS when writing to flash
374 * @flags: inode flags (@UBIFS_COMPR_FL, etc)
375 * @compr_type: default compression type used for this inode
378 * @data_len: length of the data attached to the inode
379 * @data: inode's data
383 * operation. This way UBIFS makes sure the inode fields are consistent. For
388 * operation is going to mark an inode dirty, it has to allocate budget for
390 * be enough flash space to write the inode back later. This means UBIFS has
391 * to have full control over inode "clean <-> dirty" transitions (and pages
395 * So UBIFS has its own inode dirty flag and its own mutex to serialize
399 * beyond last synchronized inode size. See 'ubifs_writepage()' for more
402 * The @ui_size is a "shadow" variable for @inode->i_size and UBIFS uses
403 * @ui_size instead of @inode->i_size. The reason for this is that UBIFS cannot
404 * make sure @inode->i_size is always changed under @ui_mutex, because it
406 * deadlock with 'ubifs_writepage()' (see file.c). All the other inode fields
411 struct inode vfs_inode;
679 * @next_ino: points to the next position of the following inode number
680 * @inodes: stores the inode numbers of the nodes which are in wbuf
871 * @new_ino: non-zero if the operation adds a new inode
872 * @new_ino_d: how much data newly created inode contains
874 * @dirtied_ino_d: how much data dirtied inode contains
885 * An inode may contain 4KiB of data at max., thus the widths of @new_ino_d
890 * make sure the amount of inode data which contribute to @new_ino_d and
922 * struct ubifs_orphan - stores the inode number of an orphan.
923 * @rb: rb-tree node of rb-tree of orphans sorted by inode number
930 * @inum: inode number
984 * @inode_budget: budget for an inode (constant, never changed after mount)
1022 * @highest_inum: highest used inode number
1149 * @max_inode_sz: maximum possible inode size in bytes
1163 * @orph_tree: rb-tree of orphan inode numbers
1164 * @orph_list: list of orphan inode numbers in order added
1165 * @orph_new: list of orphan inode numbers added since last commit
1271 * @size_tree: inode size information for recovery
1771 int ubifs_sync_wbufs_by_inode(struct ubifs_info *c, struct inode *inode);
1800 int ubifs_jnl_update(struct ubifs_info *c, const struct inode *dir,
1801 const struct fscrypt_name *nm, const struct inode *inode,
1803 int ubifs_jnl_write_data(struct ubifs_info *c, const struct inode *inode,
1805 int ubifs_jnl_write_inode(struct ubifs_info *c, const struct inode *inode);
1806 int ubifs_jnl_delete_inode(struct ubifs_info *c, const struct inode *inode);
1807 int ubifs_jnl_xrename(struct ubifs_info *c, const struct inode *fst_dir,
1808 const struct inode *fst_inode,
1810 const struct inode *snd_dir,
1811 const struct inode *snd_inode,
1813 int ubifs_jnl_rename(struct ubifs_info *c, const struct inode *old_dir,
1814 const struct inode *old_inode,
1816 const struct inode *new_dir,
1817 const struct inode *new_inode,
1819 const struct inode *whiteout, int sync);
1820 int ubifs_jnl_truncate(struct ubifs_info *c, const struct inode *inode,
1822 int ubifs_jnl_delete_xattr(struct ubifs_info *c, const struct inode *host,
1823 const struct inode *inode, const struct fscrypt_name *nm);
1824 int ubifs_jnl_change_xattr(struct ubifs_info *c, const struct inode *inode1,
1825 const struct inode *inode2);
1832 int ubifs_budget_inode_op(struct ubifs_info *c, struct inode *inode,
1834 void ubifs_release_ino_dirty(struct ubifs_info *c, struct inode *inode,
1836 void ubifs_cancel_ino_op(struct ubifs_info *c, struct inode *inode,
2030 int ubifs_update_time(struct inode *inode, int flags);
2033 struct inode *ubifs_new_inode(struct ubifs_info *c, struct inode *dir,
2037 int ubifs_check_dir_empty(struct inode *dir);
2040 int ubifs_xattr_set(struct inode *host, const char *name, const void *value,
2042 ssize_t ubifs_xattr_get(struct inode *host, const char *name, void *buf,
2049 int ubifs_purge_xattrs(struct inode *host);
2055 static inline int ubifs_purge_xattrs(struct inode *host)
2062 extern int ubifs_init_security(struct inode *dentry, struct inode *inode,
2065 static inline int ubifs_init_security(struct inode *dentry,
2066 struct inode *inode, const struct qstr *qstr)
2074 struct inode *ubifs_iget(struct super_block *sb, unsigned long inum);
2096 void ubifs_set_inode_flags(struct inode *inode);
2120 static inline int ubifs_encrypt(const struct inode *inode,
2125 struct ubifs_info *c = inode->i_sb->s_fs_info;
2129 static inline int ubifs_decrypt(const struct inode *inode,
2133 struct ubifs_info *c = inode->i_sb->s_fs_info;
2139 int ubifs_encrypt(const struct inode *inode, struct ubifs_data_node *dn,
2141 int ubifs_decrypt(const struct inode *inode, struct ubifs_data_node *dn,