/fs/ntfs/ |
D | inode.c | 46 int ntfs_test_inode(struct inode *vi, void *data) in ntfs_test_inode() argument 51 if (vi->i_ino != na->mft_no) in ntfs_test_inode() 53 ni = NTFS_I(vi); in ntfs_test_inode() 91 static int ntfs_init_locked_inode(struct inode *vi, void *data) in ntfs_init_locked_inode() argument 94 ntfs_inode *ni = NTFS_I(vi); in ntfs_init_locked_inode() 96 vi->i_ino = na->mft_no; in ntfs_init_locked_inode() 136 static int ntfs_read_locked_inode(struct inode *vi); 137 static int ntfs_read_locked_attr_inode(struct inode *base_vi, struct inode *vi); 139 struct inode *vi); 159 struct inode *vi; in ntfs_iget() local [all …]
|
D | bitmap.h | 18 extern int __ntfs_bitmap_set_bits_in_run(struct inode *vi, const s64 start_bit, 33 static inline int ntfs_bitmap_set_bits_in_run(struct inode *vi, in ntfs_bitmap_set_bits_in_run() argument 36 return __ntfs_bitmap_set_bits_in_run(vi, start_bit, count, value, in ntfs_bitmap_set_bits_in_run() 51 static inline int ntfs_bitmap_set_run(struct inode *vi, const s64 start_bit, in ntfs_bitmap_set_run() argument 54 return ntfs_bitmap_set_bits_in_run(vi, start_bit, count, 1); in ntfs_bitmap_set_run() 68 static inline int ntfs_bitmap_clear_run(struct inode *vi, const s64 start_bit, in ntfs_bitmap_clear_run() argument 71 return ntfs_bitmap_set_bits_in_run(vi, start_bit, count, 0); in ntfs_bitmap_clear_run() 83 static inline int ntfs_bitmap_set_bit(struct inode *vi, const s64 bit) in ntfs_bitmap_set_bit() argument 85 return ntfs_bitmap_set_run(vi, bit, 1); in ntfs_bitmap_set_bit() 97 static inline int ntfs_bitmap_clear_bit(struct inode *vi, const s64 bit) in ntfs_bitmap_clear_bit() argument [all …]
|
D | inode.h | 256 extern int ntfs_test_inode(struct inode *vi, void *data); 266 extern void ntfs_evict_big_inode(struct inode *vi); 270 static inline void ntfs_init_big_inode(struct inode *vi) in ntfs_init_big_inode() argument 272 ntfs_inode *ni = NTFS_I(vi); in ntfs_init_big_inode() 275 __ntfs_init_inode(vi->i_sb, ni); in ntfs_init_big_inode() 276 ni->mft_no = vi->i_ino; in ntfs_init_big_inode() 283 extern int ntfs_read_inode_mount(struct inode *vi); 289 extern int ntfs_truncate(struct inode *vi); 290 extern void ntfs_truncate_vfs(struct inode *vi); 295 extern int __ntfs_write_inode(struct inode *vi, int sync); [all …]
|
D | file.c | 48 static int ntfs_file_open(struct inode *vi, struct file *filp) in ntfs_file_open() argument 51 if (i_size_read(vi) > MAX_LFS_FILESIZE) in ntfs_file_open() 54 return generic_file_open(vi, filp); in ntfs_file_open() 101 struct inode *vi = VFS_I(ni); in ntfs_attr_extend_initialized() local 114 old_i_size = i_size_read(vi); in ntfs_attr_extend_initialized() 120 vi->i_ino, (unsigned)le32_to_cpu(ni->type), in ntfs_attr_extend_initialized() 164 i_size_write(vi, new_init_size); in ntfs_attr_extend_initialized() 202 i_size_write(vi, new_init_size); in ntfs_attr_extend_initialized() 208 mapping = vi->i_mapping; in ntfs_attr_extend_initialized() 302 (unsigned long long)new_init_size, i_size_read(vi)); in ntfs_attr_extend_initialized() [all …]
|
D | logfile.c | 38 static bool ntfs_check_restart_page_header(struct inode *vi, in ntfs_check_restart_page_header() argument 57 ntfs_error(vi->i_sb, "$LogFile uses unsupported page size."); in ntfs_check_restart_page_header() 65 ntfs_error(vi->i_sb, "Found restart area in incorrect " in ntfs_check_restart_page_header() 72 ntfs_error(vi->i_sb, "$LogFile version %i.%i is not " in ntfs_check_restart_page_header() 89 ntfs_error(vi->i_sb, "$LogFile restart page specifies " in ntfs_check_restart_page_header() 98 ntfs_error(vi->i_sb, "$LogFile restart page specifies " in ntfs_check_restart_page_header() 113 ntfs_error(vi->i_sb, "$LogFile restart page specifies " in ntfs_check_restart_page_header() 122 ntfs_error(vi->i_sb, "$LogFile restart page is not modified " in ntfs_check_restart_page_header() 144 static bool ntfs_check_restart_area(struct inode *vi, RESTART_PAGE_HEADER *rp) in ntfs_check_restart_area() argument 161 ntfs_error(vi->i_sb, "$LogFile restart area specifies " in ntfs_check_restart_area() [all …]
|
D | bitmap.c | 33 int __ntfs_bitmap_set_bits_in_run(struct inode *vi, const s64 start_bit, in __ntfs_bitmap_set_bits_in_run() argument 44 BUG_ON(!vi); in __ntfs_bitmap_set_bits_in_run() 46 "value %u.%s", vi->i_ino, (unsigned long long)start_bit, in __ntfs_bitmap_set_bits_in_run() 60 mapping = vi->i_mapping; in __ntfs_bitmap_set_bits_in_run() 64 ntfs_error(vi->i_sb, "Failed to map first page (error " in __ntfs_bitmap_set_bits_in_run() 160 pos = __ntfs_bitmap_set_bits_in_run(vi, start_bit, count - cnt, in __ntfs_bitmap_set_bits_in_run() 166 ntfs_error(vi->i_sb, "Failed to map subsequent page (error " in __ntfs_bitmap_set_bits_in_run() 170 ntfs_error(vi->i_sb, "Failed to map subsequent page (error " in __ntfs_bitmap_set_bits_in_run() 174 NVolSetErrors(NTFS_SB(vi->i_sb)); in __ntfs_bitmap_set_bits_in_run()
|
D | aops.c | 50 struct inode *vi; in ntfs_end_buffer_async_read() local 55 vi = page->mapping->host; in ntfs_end_buffer_async_read() 56 ni = NTFS_I(vi); in ntfs_end_buffer_async_read() 68 i_size = i_size_read(vi); in ntfs_end_buffer_async_read() 170 struct inode *vi; in ntfs_read_block() local 181 vi = page->mapping->host; in ntfs_read_block() 182 ni = NTFS_I(vi); in ntfs_read_block() 216 i_size = i_size_read(vi); in ntfs_read_block() 381 struct inode *vi; in ntfs_readpage() local 392 vi = page->mapping->host; in ntfs_readpage() [all …]
|
D | mft.c | 925 struct inode *vi; in ntfs_may_write_mft_record() local 951 vi = igrab(mft_vi); in ntfs_may_write_mft_record() 952 BUG_ON(vi != mft_vi); in ntfs_may_write_mft_record() 961 vi = ilookup5_nowait(sb, mft_no, ntfs_test_inode, &na); in ntfs_may_write_mft_record() 963 if (vi) { in ntfs_may_write_mft_record() 966 ni = NTFS_I(vi); in ntfs_may_write_mft_record() 974 iput(vi); in ntfs_may_write_mft_record() 983 iput(vi); in ntfs_may_write_mft_record() 1019 vi = igrab(mft_vi); in ntfs_may_write_mft_record() 1020 BUG_ON(vi != mft_vi); in ntfs_may_write_mft_record() [all …]
|
D | index.c | 186 le16_to_cpu(ie->data.vi.data_offset) || in ntfs_index_lookup() 187 (u32)le16_to_cpu(ie->data.vi.data_offset) + in ntfs_index_lookup() 188 le16_to_cpu(ie->data.vi.data_length) > in ntfs_index_lookup() 204 le16_to_cpu(ie->data.vi.data_offset); in ntfs_index_lookup() 205 ictx->data_len = le16_to_cpu(ie->data.vi.data_length); in ntfs_index_lookup() 353 le16_to_cpu(ie->data.vi.data_offset) || in ntfs_index_lookup() 354 (u32)le16_to_cpu(ie->data.vi.data_offset) + in ntfs_index_lookup() 355 le16_to_cpu(ie->data.vi.data_length) > in ntfs_index_lookup()
|
D | namei.c | 288 struct inode *vi = d_inode(child_dent); in ntfs_get_parent() local 289 ntfs_inode *ni = NTFS_I(vi); in ntfs_get_parent() 297 ntfs_debug("Entering for inode 0x%lx.", vi->i_ino); in ntfs_get_parent() 315 ntfs_error(vi->i_sb, "Inode 0x%lx does not have a " in ntfs_get_parent() 317 vi->i_ino); in ntfs_get_parent() 334 return d_obtain_alias(ntfs_iget(vi->i_sb, parent_ino)); in ntfs_get_parent()
|
/fs/reiserfs/ |
D | item_ops.c | 61 struct virtual_item *vi, in sd_create_vi() argument 64 vi->vi_index = TYPE_STAT_DATA; in sd_create_vi() 68 static int sd_check_left(struct virtual_item *vi, int free, in sd_check_left() argument 75 static int sd_check_right(struct virtual_item *vi, int free) in sd_check_right() argument 80 static int sd_part_size(struct virtual_item *vi, int first, int count) in sd_part_size() argument 86 static int sd_unit_num(struct virtual_item *vi) in sd_unit_num() argument 88 return vi->vi_item_len - IH_SIZE; in sd_unit_num() 91 static void sd_print_vi(struct virtual_item *vi) in sd_print_vi() argument 95 vi->vi_index, vi->vi_type, vi->vi_ih); in sd_print_vi() 151 struct virtual_item *vi, in direct_create_vi() argument [all …]
|
D | fix_node.c | 94 struct virtual_item *vi = vn->vn_vi + new_num; in create_virtual_node() local 105 vi->vi_item_len += ih_item_len(ih + j) + IH_SIZE; in create_virtual_node() 106 vi->vi_ih = ih + j; in create_virtual_node() 107 vi->vi_item = ih_item_body(Sh, ih + j); in create_virtual_node() 108 vi->vi_uarea = vn->vn_free_ptr; in create_virtual_node() 115 op_create_vi(vn, vi, is_affected, tb->insert_size[0]); in create_virtual_node() 127 vi->vi_new_data = vn->vn_data; in create_virtual_node() 133 struct virtual_item *vi = vn->vn_vi + vn->vn_affected_item_num; in create_virtual_node() local 137 vi->vi_item_len = tb->insert_size[0]; in create_virtual_node() 138 vi->vi_ih = vn->vn_ins_ih; in create_virtual_node() [all …]
|
/fs/erofs/ |
D | zmap.c | 12 struct erofs_inode *const vi = EROFS_I(inode); in z_erofs_fill_inode() local 16 vi->datalayout == EROFS_INODE_FLAT_COMPRESSION_LEGACY) { in z_erofs_fill_inode() 17 vi->z_advise = 0; in z_erofs_fill_inode() 18 vi->z_algorithmtype[0] = 0; in z_erofs_fill_inode() 19 vi->z_algorithmtype[1] = 0; in z_erofs_fill_inode() 20 vi->z_logical_clusterbits = LOG_BLOCK_SIZE; in z_erofs_fill_inode() 21 set_bit(EROFS_I_Z_INITED_BIT, &vi->flags); in z_erofs_fill_inode() 29 struct erofs_inode *const vi = EROFS_I(inode); in z_erofs_fill_inode_lazy() local 37 if (test_bit(EROFS_I_Z_INITED_BIT, &vi->flags)) { in z_erofs_fill_inode_lazy() 46 if (wait_on_bit_lock(&vi->flags, EROFS_I_BL_Z_BIT, TASK_KILLABLE)) in z_erofs_fill_inode_lazy() [all …]
|
D | inode.c | 21 struct erofs_inode *vi = EROFS_I(inode); in erofs_read_inode() local 22 const erofs_off_t inode_loc = iloc(sbi, vi->nid); in erofs_read_inode() 35 __func__, vi->nid, *ofs, blkaddr); in erofs_read_inode() 40 vi->nid, PTR_ERR(page)); in erofs_read_inode() 49 ifmt, vi->nid); in erofs_read_inode() 54 vi->datalayout = erofs_inode_datalayout(ifmt); in erofs_read_inode() 55 if (vi->datalayout >= EROFS_INODE_DATALAYOUT_MAX) { in erofs_read_inode() 57 vi->datalayout, vi->nid); in erofs_read_inode() 64 vi->inode_isize = sizeof(struct erofs_inode_extended); in erofs_read_inode() 66 if (*ofs + vi->inode_isize <= PAGE_SIZE) { in erofs_read_inode() [all …]
|
D | xattr.c | 40 struct erofs_inode *const vi = EROFS_I(inode); in init_inode_xattrs() local 50 if (test_bit(EROFS_I_EA_INITED_BIT, &vi->flags)) { in init_inode_xattrs() 59 if (wait_on_bit_lock(&vi->flags, EROFS_I_BL_XATTR_BIT, TASK_KILLABLE)) in init_inode_xattrs() 63 if (test_bit(EROFS_I_EA_INITED_BIT, &vi->flags)) in init_inode_xattrs() 74 if (vi->xattr_isize == sizeof(struct erofs_xattr_ibody_header)) { in init_inode_xattrs() 77 vi->xattr_isize, vi->nid); in init_inode_xattrs() 80 } else if (vi->xattr_isize < sizeof(struct erofs_xattr_ibody_header)) { in init_inode_xattrs() 81 if (vi->xattr_isize) { in init_inode_xattrs() 83 "bogus xattr ibody @ nid %llu", vi->nid); in init_inode_xattrs() 94 it.blkaddr = erofs_blknr(iloc(sbi, vi->nid) + vi->inode_isize); in init_inode_xattrs() [all …]
|
D | data.c | 32 struct erofs_inode *vi = EROFS_I(inode); in erofs_map_blocks_flatmode() local 33 bool tailendpacking = (vi->datalayout == EROFS_INODE_FLAT_INLINE); in erofs_map_blocks_flatmode() 44 map->m_pa = blknr_to_addr(vi->raw_blkaddr) + map->m_la; in erofs_map_blocks_flatmode() 50 map->m_pa = iloc(sbi, vi->nid) + vi->inode_isize + in erofs_map_blocks_flatmode() 51 vi->xattr_isize + erofs_blkoff(map->m_la); in erofs_map_blocks_flatmode() 58 vi->nid); in erofs_map_blocks_flatmode() 68 vi->nid, inode->i_size, map->m_la); in erofs_map_blocks_flatmode() 84 struct erofs_inode *vi = EROFS_I(inode); in erofs_map_blocks() local 100 if (vi->datalayout != EROFS_INODE_CHUNK_BASED) in erofs_map_blocks() 103 if (vi->chunkformat & EROFS_CHUNK_FORMAT_INDEXES) in erofs_map_blocks() [all …]
|
/fs/verity/ |
D | open.c | 153 struct fsverity_info *vi; in fsverity_create_info() local 156 vi = kmem_cache_zalloc(fsverity_info_cachep, GFP_KERNEL); in fsverity_create_info() 157 if (!vi) in fsverity_create_info() 159 vi->inode = inode; in fsverity_create_info() 161 err = fsverity_init_merkle_tree_params(&vi->tree_params, inode, in fsverity_create_info() 172 memcpy(vi->root_hash, desc->root_hash, vi->tree_params.digest_size); in fsverity_create_info() 174 err = compute_file_digest(vi->tree_params.hash_alg, desc, in fsverity_create_info() 175 vi->file_digest); in fsverity_create_info() 181 vi->tree_params.hash_alg->name, in fsverity_create_info() 182 vi->tree_params.digest_size, vi->file_digest); in fsverity_create_info() [all …]
|
D | verify.c | 52 static inline int cmp_hashes(const struct fsverity_info *vi, in cmp_hashes() argument 56 const unsigned int hsize = vi->tree_params.digest_size; in cmp_hashes() 61 fsverity_err(vi->inode, in cmp_hashes() 64 vi->tree_params.hash_alg->name, hsize, want_hash, in cmp_hashes() 65 vi->tree_params.hash_alg->name, hsize, real_hash); in cmp_hashes() 86 static bool verify_page(struct inode *inode, const struct fsverity_info *vi, in verify_page() argument 90 const struct merkle_tree_params *params = &vi->tree_params; in verify_page() 145 want_hash = vi->root_hash; in verify_page() 157 err = cmp_hashes(vi, want_hash, real_hash, index, level - 1); in verify_page() 172 err = cmp_hashes(vi, want_hash, real_hash, index, -1); in verify_page() [all …]
|
D | measure.c | 27 const struct fsverity_info *vi; in fsverity_ioctl_measure() local 31 vi = fsverity_get_info(inode); in fsverity_ioctl_measure() 32 if (!vi) in fsverity_ioctl_measure() 34 hash_alg = vi->tree_params.hash_alg; in fsverity_ioctl_measure() 54 if (copy_to_user(uarg->digest, vi->file_digest, hash_alg->digest_size)) in fsverity_ioctl_measure()
|
D | read_metadata.c | 16 const struct fsverity_info *vi, in fsverity_read_merkle_tree() argument 26 end_offset = min(offset + length, vi->tree_params.tree_size); in fsverity_read_merkle_tree() 155 const struct fsverity_info *vi; in fsverity_ioctl_read_metadata() local 160 vi = fsverity_get_info(inode); in fsverity_ioctl_read_metadata() 161 if (!vi) in fsverity_ioctl_read_metadata() 185 return fsverity_read_merkle_tree(inode, vi, buf, arg.offset, in fsverity_ioctl_read_metadata()
|
D | enable.c | 206 struct fsverity_info *vi; in enable_verity() local 284 vi = fsverity_create_info(inode, desc, desc_size); in enable_verity() 285 if (IS_ERR(vi)) { in enable_verity() 286 err = PTR_ERR(vi); in enable_verity() 304 fsverity_free_info(vi); in enable_verity() 307 fsverity_free_info(vi); in enable_verity() 316 fsverity_set_info(inode, vi); in enable_verity()
|
D | fsverity_private.h | 128 void fsverity_set_info(struct inode *inode, struct fsverity_info *vi); 130 void fsverity_free_info(struct fsverity_info *vi); 142 int fsverity_verify_signature(const struct fsverity_info *vi, 148 fsverity_verify_signature(const struct fsverity_info *vi, in fsverity_verify_signature() argument
|
D | signature.c | 40 int fsverity_verify_signature(const struct fsverity_info *vi, in fsverity_verify_signature() argument 44 vi->tree_params.hash_alg - fsverity_hash_algs; in fsverity_verify_signature() 46 return __fsverity_verify_signature(vi->inode, signature, sig_size, in fsverity_verify_signature() 47 vi->file_digest, digest_algorithm); in fsverity_verify_signature()
|
/fs/ubifs/ |
D | misc.c | 17 c->vi.ubi_num, c->vi.vol_id, &vaf); in ubifs_msg() 34 c->vi.ubi_num, c->vi.vol_id, current->pid, in ubifs_err() 53 c->vi.ubi_num, c->vi.vol_id, current->pid, in ubifs_warn()
|
/fs/freevxfs/ |
D | vxfs_super.c | 126 struct vxfs_inode_info *vi; in vxfs_alloc_inode() local 128 vi = kmem_cache_alloc(vxfs_inode_cachep, GFP_KERNEL); in vxfs_alloc_inode() 129 if (!vi) in vxfs_alloc_inode() 131 inode_init_once(&vi->vfs_inode); in vxfs_alloc_inode() 132 return &vi->vfs_inode; in vxfs_alloc_inode()
|