Lines Matching refs:inode

66 		return "inode";
155 return "inode node";
237 void ubifs_dump_inode(struct ubifs_info *c, const struct inode *inode)
240 const struct ubifs_inode *ui = ubifs_inode(inode);
246 pr_err("Dump in-memory inode:");
247 pr_err("\tinode %lu\n", inode->i_ino);
249 (unsigned long long)i_size_read(inode));
250 pr_err("\tnlink %u\n", inode->i_nlink);
251 pr_err("\tuid %u\n", (unsigned int)i_uid_read(inode));
252 pr_err("\tgid %u\n", (unsigned int)i_gid_read(inode));
254 (unsigned int)inode->i_atime.tv_sec,
255 (unsigned int)inode->i_atime.tv_nsec);
257 (unsigned int)inode->i_mtime.tv_sec,
258 (unsigned int)inode->i_mtime.tv_nsec);
260 (unsigned int)inode->i_ctime.tv_sec,
261 (unsigned int)inode->i_ctime.tv_nsec);
279 if (!S_ISDIR(inode->i_mode))
285 lowest_dent_key(c, &key, inode->i_ino);
542 pr_err("\t%d orphan inode numbers:\n", n);
1097 * dbg_check_synced_i_size - check synchronized inode size.
1099 * @inode: inode to check
1101 * If inode is clean, synchronized inode size has to be equivalent to current
1102 * inode size. This function has to be called only for locked inodes (@i_mutex
1103 * has to be locked). Returns %0 if synchronized inode size if correct, and
1106 int dbg_check_synced_i_size(const struct ubifs_info *c, struct inode *inode)
1109 struct ubifs_inode *ui = ubifs_inode(inode);
1113 if (!S_ISREG(inode->i_mode))
1119 ubifs_err(c, "ui_size is %lld, synced_i_size is %lld, but inode is clean",
1121 ubifs_err(c, "i_ino %lu, i_mode %#x, i_size %lld", inode->i_ino,
1122 inode->i_mode, i_size_read(inode));
1132 * dbg_check_dir - check directory inode size and link count.
1144 int dbg_check_dir(struct ubifs_info *c, const struct inode *dir)
1182 ubifs_err(c, "directory inode %lu has size %llu, but calculated size is %llu",
1190 ubifs_err(c, "directory inode %lu has nlink %u, but calculated nlink is %u",
1501 int dbg_check_dir(struct ubifs_info *c, const struct inode *dir)
1815 * struct fsck_inode - information about an inode used when checking the file-system.
1817 * @inum: inode number
1818 * @mode: inode type, permissions, etc
1819 * @nlink: inode link count
1821 * @references: how many directory/xattr entries refer this inode (calculated
1823 * @calc_cnt: for directory inode count of child directories
1824 * @size: inode size (read from on-flash inode)
1826 * inode)
1831 * inode (read from on-flash inode)
1860 * add_inode - add inode information to RB-tree of inodes.
1863 * @ino: raw UBIFS inode to add
1866 * inode @ino to the RB-tree of inodes. Returns inode information pointer in
1876 struct inode *inode;
1892 ubifs_err(c, "too high inode number, max. is %lu",
1901 inode = ilookup(c->vfs_sb, inum);
1905 * If the inode is present in the VFS inode cache, use it instead of
1906 * the on-flash inode which might be out-of-date. E.g., the size might
1911 * inode size in the VFS cache, but on on-flash.
1912 * 3. 'check_leaf()' fails because it hits a data node beyond inode
1915 if (!inode) {
1923 ui = ubifs_inode(inode);
1924 fscki->nlink = inode->i_nlink;
1925 fscki->size = inode->i_size;
1929 fscki->mode = inode->i_mode;
1930 iput(inode);
1945 * search_inode - search inode in the RB-tree of inodes.
1947 * @inum: inode number to search
1949 * This is a helper function for 'check_leaf()' which searches inode @inum in
1950 * the RB-tree of inodes and returns an inode information pointer or %NULL if
1951 * the inode was not found.
1972 * read_add_inode - read inode node and add it to RB-tree of inodes.
1975 * @inum: inode number to read
1977 * This is a helper function for 'check_leaf()' which finds inode node @inum in
1978 * the index, reads it, and adds it to the RB-tree of inodes. Returns inode
1999 ubifs_err(c, "inode %lu not found in index", (unsigned long)inum);
2002 ubifs_err(c, "error %d while looking up inode %lu",
2020 ubifs_err(c, "cannot read inode node at LEB %d:%d, error %d",
2029 ubifs_err(c, "error %ld while adding inode %lu node",
2048 * calculates reference count, size, etc for each inode in order to later
2079 /* If this is an inode node, add it to RB-tree of inodes */
2084 ubifs_err(c, "error %d while adding inode node", err);
2113 * Search the inode node this data node belongs to and insert
2120 ubifs_err(c, "error %d while processing data node and trying to find inode node %lu",
2125 /* Make sure the data node is within inode size */
2130 ubifs_err(c, "data node at LEB %d:%d is not within inode size %lld",
2147 * Search the inode node this entry refers to and the parent
2148 * inode node and insert them to the RB-tree of inodes.
2154 ubifs_err(c, "error %d while processing entry node and trying to find inode node %lu",
2159 /* Count how many direntries or xentries refers this inode */
2166 ubifs_err(c, "error %d while processing entry node and trying to find parent inode node %lu",
2215 * inode nlink, size, etc are correct. Returns zero if inodes are fine,
2235 * cannot have hardlinks), although root inode is an
2240 ubifs_err(c, "directory inode %lu has %d direntries which refer it, but should be 1",
2247 ubifs_err(c, "root inode %lu has non-zero (%d) direntries which refer it",
2253 ubifs_err(c, "directory inode %lu size is %lld, but calculated size is %lld",
2259 ubifs_err(c, "directory inode %lu nlink is %d, but calculated nlink is %d",
2266 ubifs_err(c, "inode %lu nlink is %d, but calculated nlink is %d",
2273 ubifs_err(c, "inode %lu has xattr size %u, but calculated size is %lld",
2279 ubifs_err(c, "inode %lu has %u xattrs, but calculated count is %lld",
2285 ubifs_err(c, "inode %lu has xattr names' size %u, but calculated names' size is %lld",
2295 /* Read the bad inode and dump it */
2299 ubifs_err(c, "inode %lu not found in index",
2303 ubifs_err(c, "error %d while looking up inode %lu",
2315 ubifs_err(c, "cannot read inode node at LEB %d:%d, error %d",
2321 ubifs_msg(c, "dump of the inode %lu sitting in LEB %d:%d",
2334 * o makes sure inode nlink, size, xattr size/count are correct (for all
2473 ubifs_err(c, "non-inode node goes before inode node");
2483 ubifs_err(c, "smaller inode node goes first");
2723 static int dfs_file_open(struct inode *inode, struct file *file)
2725 file->private_data = inode->i_private;
2726 return nonseekable_open(inode, file);