Lines Matching defs:inode
64 * Currently we do not support inode number overlapping and re-using, so this
65 * watermark defines dangerous inode number level. This should be fixed later,
67 * 64-bit inode numbers, but this means more overhead.
81 /* Maximum possible inode number (only 32-bit inodes are supported now) */
109 * inode.
113 /* How much an extended attribute adds to the host inode */
159 * Lockdep classes for UBIFS inode @ui_mutex.
344 * struct ubifs_inode - UBIFS in-memory inode description.
345 * @vfs_inode: VFS inode description object
347 * @del_cmtno: commit number corresponding to the time the inode was deleted,
350 * @xattr_cnt: count of extended attributes this inode has
352 * this inode
353 * @dirty: non-zero if the inode is dirty
354 * @xattr: non-zero if this is an extended attribute inode
356 * @ui_mutex: serializes inode write-back with the rest of VFS operations,
361 * @synced_i_size: synchronized size of inode, i.e. the value of inode size
364 * @ui_size: inode size used by UBIFS when writing to flash
365 * @flags: inode flags (@UBIFS_COMPR_FL, etc)
366 * @compr_type: default compression type used for this inode
369 * @data_len: length of the data attached to the inode
370 * @data: inode's data
374 * operation. This way UBIFS makes sure the inode fields are consistent. For
379 * operation is going to mark an inode dirty, it has to allocate budget for
381 * be enough flash space to write the inode back later. This means UBIFS has
382 * to have full control over inode "clean <-> dirty" transitions (and pages
386 * So UBIFS has its own inode dirty flag and its own mutex to serialize
390 * beyond last synchronized inode size. See 'ubifs_writepage()' for more
393 * The @ui_size is a "shadow" variable for @inode->i_size and UBIFS uses
394 * @ui_size instead of @inode->i_size. The reason for this is that UBIFS cannot
395 * make sure @inode->i_size is always changed under @ui_mutex, because it
397 * deadlock with 'ubifs_writepage()' (see file.c). All the other inode fields
402 struct inode vfs_inode;
670 * @next_ino: points to the next position of the following inode number
671 * @inodes: stores the inode numbers of the nodes which are in wbuf
862 * @new_ino: non-zero if the operation adds a new inode
863 * @new_ino_d: how much data newly created inode contains
865 * @dirtied_ino_d: how much data dirtied inode contains
876 * An inode may contain 4KiB of data at max., thus the widths of @new_ino_d
881 * make sure the amount of inode data which contribute to @new_ino_d and
913 * struct ubifs_orphan - stores the inode number of an orphan.
914 * @rb: rb-tree node of rb-tree of orphans sorted by inode number
921 * @inum: inode number
975 * @inode_budget: budget for an inode (constant, never changed after mount)
1001 * @highest_inum: highest used inode number
1128 * @max_inode_sz: maximum possible inode size in bytes
1142 * @orph_tree: rb-tree of orphan inode numbers
1143 * @orph_list: list of orphan inode numbers in order added
1144 * @orph_new: list of orphan inode numbers added since last commit
1250 * @size_tree: inode size information for recovery
1742 int ubifs_sync_wbufs_by_inode(struct ubifs_info *c, struct inode *inode);
1771 int ubifs_jnl_update(struct ubifs_info *c, const struct inode *dir,
1772 const struct fscrypt_name *nm, const struct inode *inode,
1774 int ubifs_jnl_write_data(struct ubifs_info *c, const struct inode *inode,
1776 int ubifs_jnl_write_inode(struct ubifs_info *c, const struct inode *inode);
1777 int ubifs_jnl_delete_inode(struct ubifs_info *c, const struct inode *inode);
1778 int ubifs_jnl_xrename(struct ubifs_info *c, const struct inode *fst_dir,
1779 const struct inode *fst_inode,
1781 const struct inode *snd_dir,
1782 const struct inode *snd_inode,
1784 int ubifs_jnl_rename(struct ubifs_info *c, const struct inode *old_dir,
1785 const struct inode *old_inode,
1787 const struct inode *new_dir,
1788 const struct inode *new_inode,
1790 const struct inode *whiteout, int sync);
1791 int ubifs_jnl_truncate(struct ubifs_info *c, const struct inode *inode,
1793 int ubifs_jnl_delete_xattr(struct ubifs_info *c, const struct inode *host,
1794 const struct inode *inode, const struct fscrypt_name *nm);
1795 int ubifs_jnl_change_xattr(struct ubifs_info *c, const struct inode *inode1,
1796 const struct inode *inode2);
1803 int ubifs_budget_inode_op(struct ubifs_info *c, struct inode *inode,
1805 void ubifs_release_ino_dirty(struct ubifs_info *c, struct inode *inode,
1807 void ubifs_cancel_ino_op(struct ubifs_info *c, struct inode *inode,
2000 int ubifs_update_time(struct inode *inode, struct timespec64 *time, int flags);
2003 struct inode *ubifs_new_inode(struct ubifs_info *c, struct inode *dir,
2007 int ubifs_check_dir_empty(struct inode *dir);
2012 int ubifs_xattr_set(struct inode *host, const char *name, const void *value,
2014 ssize_t ubifs_xattr_get(struct inode *host, const char *name, void *buf,
2019 int ubifs_purge_xattrs(struct inode *host);
2023 static inline int ubifs_purge_xattrs(struct inode *host)
2030 extern int ubifs_init_security(struct inode *dentry, struct inode *inode,
2033 static inline int ubifs_init_security(struct inode *dentry,
2034 struct inode *inode, const struct qstr *qstr)
2042 struct inode *ubifs_iget(struct super_block *sb, unsigned long inum);
2061 void ubifs_set_inode_flags(struct inode *inode);
2079 static inline int ubifs_encrypt(const struct inode *inode,
2084 struct ubifs_info *c = inode->i_sb->s_fs_info;
2088 static inline int ubifs_decrypt(const struct inode *inode,
2092 struct ubifs_info *c = inode->i_sb->s_fs_info;
2098 int ubifs_encrypt(const struct inode *inode, struct ubifs_data_node *dn,
2100 int ubifs_decrypt(const struct inode *inode, struct ubifs_data_node *dn,