Lines Matching defs:size

448 		       (unsigned long long)le64_to_cpu(ino->size));
505 pr_err("\tsize %u\n", le32_to_cpu(dn->size));
508 pr_err("\tdata size %u\n",
1077 * dbg_check_synced_i_size - check synchronized inode size.
1081 * If inode is clean, synchronized inode size has to be equivalent to current
1082 * inode size. This function has to be called only for locked inodes (@i_mutex
1083 * has to be locked). Returns %0 if synchronized inode size if correct, and
1112 * dbg_check_dir - check directory inode size and link count.
1114 * @dir: the directory to calculate size for
1115 * @size: the result is returned here
1117 * This function makes sure that directory size and link count are correct.
1130 loff_t size = UBIFS_INO_NODE_SZ;
1153 size += CALC_DENT_SIZE(fname_len(&nm));
1162 if (i_size_read(dir) != size) {
1163 ubifs_err(c, "directory inode %lu has size %llu, but calculated size is %llu",
1165 (unsigned long long)size);
1705 * add_size - add znode size to partially calculated index size.
1707 * @znode: znode to add size for
1708 * @priv: partially calculated index size
1711 * every indexing node and adds its size to the 'long long' variable pointed to
1726 * dbg_check_idx_size - check index size.
1728 * @idx_size: size to check
1730 * This function walks the UBIFS index, calculates its size and checks that the
1731 * size is equivalent to @idx_size. Returns zero in case of success and a
1749 ubifs_err(c, "index size check failed: calculated size is %lld, should be %lld",
1768 * @size: inode size (read from on-flash inode)
1769 * @xattr_sz: summary size of all extended attributes (read from on-flash
1771 * @calc_sz: for directories calculated directory size
1773 * @calc_xsz: calculated summary size of all extended attributes
1786 long long size;
1850 * the on-flash inode which might be out-of-date. E.g., the size might
1855 * inode size in the VFS cache, but on on-flash.
1857 * size.
1861 fscki->size = le64_to_cpu(ino->size);
1869 fscki->size = inode->i_size;
1992 * calculates reference count, size, etc for each inode in order to later
2069 /* Make sure the data node is within inode size */
2072 blk_offs += le32_to_cpu(dn->size);
2073 if (blk_offs > fscki->size) {
2074 ubifs_err(c, "data node at LEB %d:%d is not within inode size %lld",
2075 zbr->lnum, zbr->offs, fscki->size);
2119 fscki1->calc_xsz += CALC_XATTR_BYTES(fscki->size);
2159 * inode nlink, size, etc are correct. Returns zero if inodes are fine,
2196 if (fscki->calc_sz != fscki->size) {
2197 ubifs_err(c, "directory inode %lu size is %lld, but calculated size is %lld",
2199 fscki->size, fscki->calc_sz);
2217 ubifs_err(c, "inode %lu has xattr size %u, but calculated size is %lld",
2229 ubifs_err(c, "inode %lu has xattr names' size %u, but calculated names' size is %lld",
2278 * o makes sure inode nlink, size, xattr size/count are correct (for all
2425 /* Inode nodes are sorted in descending size order */
2676 * @count: size of the buffer
2730 * @count: buffer size
2828 /* The array size is too small */