/fs/fuse/ |
D | readdir.c | 19 struct fuse_inode *fi = get_fuse_inode(dir); in fuse_use_readdirplus() local 23 if (fi->nodeid == 0) in fuse_use_readdirplus() 27 if (test_and_clear_bit(FUSE_I_ADVISE_RDPLUS, &fi->state)) in fuse_use_readdirplus() 37 struct fuse_inode *fi = get_fuse_inode(file_inode(file)); in fuse_add_dirent_to_cache() local 46 spin_lock(&fi->rdc.lock); in fuse_add_dirent_to_cache() 51 if (fi->rdc.cached || pos != fi->rdc.pos) { in fuse_add_dirent_to_cache() 52 spin_unlock(&fi->rdc.lock); in fuse_add_dirent_to_cache() 55 version = fi->rdc.version; in fuse_add_dirent_to_cache() 56 size = fi->rdc.size; in fuse_add_dirent_to_cache() 64 spin_unlock(&fi->rdc.lock); in fuse_add_dirent_to_cache() [all …]
|
D | inode.c | 92 struct fuse_inode *fi; in fuse_alloc_inode() local 94 fi = alloc_inode_sb(sb, fuse_inode_cachep, GFP_KERNEL); in fuse_alloc_inode() 95 if (!fi) in fuse_alloc_inode() 98 fi->i_time = 0; in fuse_alloc_inode() 99 fi->inval_mask = ~0; in fuse_alloc_inode() 101 fi->backing_inode = NULL; in fuse_alloc_inode() 102 fi->bpf = NULL; in fuse_alloc_inode() 105 fi->nodeid = 0; in fuse_alloc_inode() 106 fi->nlookup = 0; in fuse_alloc_inode() 107 fi->attr_version = 0; in fuse_alloc_inode() [all …]
|
D | dax.c | 188 struct fuse_inode *fi = get_fuse_inode(inode); in fuse_setup_one_mapping() local 206 args.nodeid = fi->nodeid; in fuse_setup_one_mapping() 223 interval_tree_insert(&dmap->itn, &fi->dax->tree); in fuse_setup_one_mapping() 224 fi->dax->nr++; in fuse_setup_one_mapping() 237 struct fuse_inode *fi = get_fuse_inode(inode); in fuse_send_removemapping() local 242 args.nodeid = fi->nodeid; in fuse_send_removemapping() 313 struct fuse_inode *fi = get_fuse_inode(inode); in inode_reclaim_dmap_range() local 322 node = interval_tree_iter_first(&fi->dax->tree, start_idx, in inode_reclaim_dmap_range() 329 interval_tree_remove(&dmap->itn, &fi->dax->tree); in inode_reclaim_dmap_range() 338 WARN_ON(fi->dax->nr < num); in inode_reclaim_dmap_range() [all …]
|
D | file.c | 201 struct fuse_inode *fi = get_fuse_inode(inode); in fuse_link_write_file() local 207 spin_lock(&fi->lock); in fuse_link_write_file() 209 list_add(&ff->write_entry, &fi->write_files); in fuse_link_write_file() 210 spin_unlock(&fi->lock); in fuse_link_write_file() 224 struct fuse_inode *fi = get_fuse_inode(inode); in fuse_finish_open() local 226 spin_lock(&fi->lock); in fuse_finish_open() 227 fi->attr_version = atomic64_inc_return(&fc->attr_version); in fuse_finish_open() 229 spin_unlock(&fi->lock); in fuse_finish_open() 305 static void fuse_prepare_release(struct fuse_inode *fi, struct fuse_file *ff, in fuse_prepare_release() argument 312 if (likely(fi)) { in fuse_prepare_release() [all …]
|
D | dir.c | 36 struct fuse_inode *fi = get_fuse_inode(dir); in fuse_advise_use_readdirplus() local 38 set_bit(FUSE_I_ADVISE_RDPLUS, &fi->state); in fuse_advise_use_readdirplus() 181 static bool backing_data_changed(struct fuse_inode *fi, struct dentry *entry, in backing_data_changed() argument 190 if (!entry || !fi->backing_inode) { in backing_data_changed() 196 new_backing_inode = fi->backing_inode; in backing_data_changed() 208 ret = (bpf != fi->bpf || fi->backing_inode != new_backing_inode || in backing_data_changed() 237 struct fuse_inode *fi; in fuse_dentry_revalidate() local 303 fi = get_fuse_inode(inode); in fuse_dentry_revalidate() 307 backing_data_changed(fi, entry, &bpf_arg)) || in fuse_dentry_revalidate() 314 spin_lock(&fi->lock); in fuse_dentry_revalidate() [all …]
|
/fs/f2fs/ |
D | inode.c | 268 struct f2fs_inode_info *fi = F2FS_I(inode); in sanity_check_inode() local 292 if (fi->i_extra_isize > F2FS_TOTAL_EXTRA_ATTR_SIZE || in sanity_check_inode() 293 fi->i_extra_isize < F2FS_MIN_EXTRA_ATTR_SIZE || in sanity_check_inode() 294 fi->i_extra_isize % sizeof(__le32)) { in sanity_check_inode() 296 __func__, inode->i_ino, fi->i_extra_isize, in sanity_check_inode() 302 (!fi->i_inline_xattr_size || in sanity_check_inode() 303 fi->i_inline_xattr_size > MAX_INLINE_XATTR_SIZE)) { in sanity_check_inode() 305 __func__, inode->i_ino, fi->i_inline_xattr_size, in sanity_check_inode() 310 fi->i_flags & F2FS_COMPR_FL && in sanity_check_inode() 311 F2FS_FITS_IN_INODE(ri, fi->i_extra_isize, in sanity_check_inode() [all …]
|
D | file.c | 241 struct f2fs_inode_info *fi = F2FS_I(inode); in try_to_fix_pino() local 244 f2fs_down_write(&fi->i_sem); in try_to_fix_pino() 250 f2fs_up_write(&fi->i_sem); in try_to_fix_pino() 896 struct f2fs_inode_info *fi = F2FS_I(inode); in f2fs_getattr() local 902 F2FS_FITS_IN_INODE(ri, fi->i_extra_isize, i_crtime)) { in f2fs_getattr() 904 stat->btime.tv_sec = fi->i_crtime.tv_sec; in f2fs_getattr() 905 stat->btime.tv_nsec = fi->i_crtime.tv_nsec; in f2fs_getattr() 926 flags = fi->i_flags; in f2fs_getattr() 989 struct f2fs_inode_info *fi = F2FS_I(inode); in f2fs_setattr() local 1008 F2FS_BLK_TO_BYTES(fi->i_cluster_size))) in f2fs_setattr() [all …]
|
D | f2fs.h | 80 #define IS_FAULT_SET(fi, type) ((fi)->inject_type & BIT(type)) argument 2508 struct f2fs_inode_info *fi = F2FS_I(inode); in inc_atomic_write_cnt() local 2511 fi->atomic_write_cnt++; in inc_atomic_write_cnt() 2521 struct f2fs_inode_info *fi = F2FS_I(inode); in release_atomic_write_cnt() local 2523 atomic64_sub(fi->atomic_write_cnt, &sbi->current_atomic_write); in release_atomic_write_cnt() 2524 fi->atomic_write_cnt = 0; in release_atomic_write_cnt() 3155 struct f2fs_inode_info *fi = F2FS_I(inode); in get_inline_info() local 3158 set_bit(FI_INLINE_XATTR, fi->flags); in get_inline_info() 3160 set_bit(FI_INLINE_DATA, fi->flags); in get_inline_info() 3162 set_bit(FI_INLINE_DENTRY, fi->flags); in get_inline_info() [all …]
|
/fs/udf/ |
D | directory.c | 23 if (iter->fi.descTag.tagIdent != cpu_to_le16(TAG_IDENT_FID)) { in udf_verify_fi() 27 le16_to_cpu(iter->fi.descTag.tagIdent)); in udf_verify_fi() 30 len = udf_dir_entry_len(&iter->fi); in udf_verify_fi() 31 if (le16_to_cpu(iter->fi.lengthOfImpUse) & 3) { in udf_verify_fi() 54 if (udf_dir_entry_len(&iter->fi) != in udf_verify_fi() 55 sizeof(struct tag) + le16_to_cpu(iter->fi.descTag.descCRCLength)) { in udf_verify_fi() 59 (unsigned)le16_to_cpu(iter->fi.descTag.descCRCLength), in udf_verify_fi() 60 (unsigned)(udf_dir_entry_len(&iter->fi) - in udf_verify_fi() 86 memcpy(&iter->fi, iinfo->i_data + iinfo->i_lenEAttr + iter->pos, in udf_copy_fi() 93 le16_to_cpu(iter->fi.lengthOfImpUse); in udf_copy_fi() [all …]
|
D | namei.c | 69 if (iter->fi.fileCharacteristics & FID_FILE_CHAR_DELETED) { in udf_fiiter_find_entry() 74 if (iter->fi.fileCharacteristics & FID_FILE_CHAR_HIDDEN) { in udf_fiiter_find_entry() 79 if ((iter->fi.fileCharacteristics & FID_FILE_CHAR_PARENT) && in udf_fiiter_find_entry() 83 if (!iter->fi.lengthFileIdent) in udf_fiiter_find_entry() 87 iter->fi.lengthFileIdent, fname, UDF_NAME_LEN); in udf_fiiter_find_entry() 124 loc = lelb_to_cpu(iter.fi.icb.extLocation); in udf_lookup() 203 iter.fi.descTag.tagLocation = cpu_to_le32(*block); in udf_expand_dir_adinicb() 204 if (iter.fi.lengthOfImpUse != cpu_to_le16(0)) in udf_expand_dir_adinicb() 246 if (iter->fi.fileCharacteristics & FID_FILE_CHAR_DELETED) { in udf_fiiter_add_entry() 247 if (udf_dir_entry_len(&iter->fi) == nfidlen) { in udf_fiiter_add_entry() [all …]
|
D | dir.c | 90 if (iter.fi.fileCharacteristics & FID_FILE_CHAR_DELETED) { in udf_readdir() 95 if (iter.fi.fileCharacteristics & FID_FILE_CHAR_HIDDEN) { in udf_readdir() 100 if (iter.fi.fileCharacteristics & FID_FILE_CHAR_PARENT) { in udf_readdir() 107 iter.fi.lengthFileIdent, fname, UDF_NAME_LEN); in udf_readdir() 111 tloc = lelb_to_cpu(iter.fi.icb.extLocation); in udf_readdir()
|
/fs/iomap/ |
D | fiemap.c | 12 static int iomap_to_fiemap(struct fiemap_extent_info *fi, in iomap_to_fiemap() argument 37 return fiemap_fill_next_extent(fi, iomap->offset, in iomap_to_fiemap() 43 struct fiemap_extent_info *fi, struct iomap *prev) in iomap_fiemap_iter() argument 50 ret = iomap_to_fiemap(fi, prev, 0); in iomap_fiemap_iter() 62 int iomap_fiemap(struct inode *inode, struct fiemap_extent_info *fi, in iomap_fiemap() argument 76 ret = fiemap_prep(inode, fi, start, &iter.len, 0); in iomap_fiemap() 81 iter.processed = iomap_fiemap_iter(&iter, fi, &prev); in iomap_fiemap() 84 ret = iomap_to_fiemap(fi, &prev, FIEMAP_EXTENT_LAST); in iomap_fiemap()
|
/fs/btrfs/ |
D | inode-item.c | 429 struct btrfs_file_extent_item *fi, in btrfs_trace_truncate() argument 435 trace_btrfs_truncate_show_fi_inline(inode, leaf, fi, slot, in btrfs_trace_truncate() 438 trace_btrfs_truncate_show_fi_regular(inode, leaf, fi, offset); in btrfs_trace_truncate() 466 struct btrfs_file_extent_item *fi; in btrfs_truncate_inode_items() local 532 fi = NULL; in btrfs_truncate_inode_items() 545 fi = btrfs_item_ptr(leaf, path->slots[0], in btrfs_truncate_inode_items() 547 extent_type = btrfs_file_extent_type(leaf, fi); in btrfs_truncate_inode_items() 550 btrfs_file_extent_num_bytes(leaf, fi); in btrfs_truncate_inode_items() 552 item_end += btrfs_file_extent_ram_bytes(leaf, fi); in btrfs_truncate_inode_items() 554 btrfs_trace_truncate(control->inode, leaf, fi, in btrfs_truncate_inode_items() [all …]
|
D | file.c | 206 struct btrfs_file_extent_item *fi; in btrfs_drop_extents() local 290 fi = btrfs_item_ptr(leaf, path->slots[0], in btrfs_drop_extents() 292 extent_type = btrfs_file_extent_type(leaf, fi); in btrfs_drop_extents() 296 disk_bytenr = btrfs_file_extent_disk_bytenr(leaf, fi); in btrfs_drop_extents() 297 num_bytes = btrfs_file_extent_disk_num_bytes(leaf, fi); in btrfs_drop_extents() 298 extent_offset = btrfs_file_extent_offset(leaf, fi); in btrfs_drop_extents() 300 btrfs_file_extent_num_bytes(leaf, fi); in btrfs_drop_extents() 303 btrfs_file_extent_ram_bytes(leaf, fi); in btrfs_drop_extents() 359 fi = btrfs_item_ptr(leaf, path->slots[0] - 1, in btrfs_drop_extents() 361 btrfs_set_file_extent_num_bytes(leaf, fi, in btrfs_drop_extents() [all …]
|
D | print-tree.c | 213 struct btrfs_file_extent_item *fi; in btrfs_print_leaf() local 280 fi = btrfs_item_ptr(l, i, in btrfs_print_leaf() 282 if (btrfs_file_extent_type(l, fi) == in btrfs_print_leaf() 285 btrfs_file_extent_ram_bytes(l, fi)); in btrfs_print_leaf() 289 btrfs_file_extent_disk_bytenr(l, fi), in btrfs_print_leaf() 290 btrfs_file_extent_disk_num_bytes(l, fi)); in btrfs_print_leaf() 292 btrfs_file_extent_offset(l, fi), in btrfs_print_leaf() 293 btrfs_file_extent_num_bytes(l, fi), in btrfs_print_leaf() 294 btrfs_file_extent_ram_bytes(l, fi)); in btrfs_print_leaf()
|
D | tree-checker.c | 107 #define CHECK_FE_ALIGNED(leaf, slot, fi, name, alignment) \ argument 109 if (unlikely(!IS_ALIGNED(btrfs_file_extent_##name((leaf), (fi)), \ 113 (#name), btrfs_file_extent_##name((leaf), (fi)), \ 115 (!IS_ALIGNED(btrfs_file_extent_##name((leaf), (fi)), (alignment))); \ 208 struct btrfs_file_extent_item *fi; in check_extent_data_item() local 229 fi = btrfs_item_ptr(leaf, slot, struct btrfs_file_extent_item); in check_extent_data_item() 242 if (unlikely(btrfs_file_extent_type(leaf, fi) >= in check_extent_data_item() 246 btrfs_file_extent_type(leaf, fi), in check_extent_data_item() 255 if (unlikely(btrfs_file_extent_compression(leaf, fi) >= in check_extent_data_item() 259 btrfs_file_extent_compression(leaf, fi), in check_extent_data_item() [all …]
|
D | file-item.c | 1266 struct btrfs_file_extent_item *fi, in btrfs_extent_item_to_extent_map() argument 1276 u8 type = btrfs_file_extent_type(leaf, fi); in btrfs_extent_item_to_extent_map() 1277 int compress_type = btrfs_file_extent_compression(leaf, fi); in btrfs_extent_item_to_extent_map() 1282 em->ram_bytes = btrfs_file_extent_ram_bytes(leaf, fi); in btrfs_extent_item_to_extent_map() 1283 em->generation = btrfs_file_extent_generation(leaf, fi); in btrfs_extent_item_to_extent_map() 1289 btrfs_file_extent_offset(leaf, fi); in btrfs_extent_item_to_extent_map() 1290 em->orig_block_len = btrfs_file_extent_disk_num_bytes(leaf, fi); in btrfs_extent_item_to_extent_map() 1291 bytenr = btrfs_file_extent_disk_bytenr(leaf, fi); in btrfs_extent_item_to_extent_map() 1302 bytenr += btrfs_file_extent_offset(leaf, fi); in btrfs_extent_item_to_extent_map() 1338 struct btrfs_file_extent_item *fi; in btrfs_file_extent_end() local [all …]
|
/fs/ |
D | mpage.c | 49 struct folio_iter fi; in mpage_read_end_io() local 52 bio_for_each_folio_all(fi, bio) { in mpage_read_end_io() 54 folio_set_error(fi.folio); in mpage_read_end_io() 56 folio_mark_uptodate(fi.folio); in mpage_read_end_io() 57 folio_unlock(fi.folio); in mpage_read_end_io() 65 struct folio_iter fi; in mpage_write_end_io() local 68 bio_for_each_folio_all(fi, bio) { in mpage_write_end_io() 70 folio_set_error(fi.folio); in mpage_write_end_io() 71 mapping_set_error(fi.folio->mapping, err); in mpage_write_end_io() 73 folio_end_writeback(fi.folio); in mpage_write_end_io()
|
/fs/crypto/ |
D | bio.c | 33 struct folio_iter fi; in fscrypt_decrypt_bio() local 35 bio_for_each_folio_all(fi, bio) { in fscrypt_decrypt_bio() 36 int err = fscrypt_decrypt_pagecache_blocks(fi.folio, fi.length, in fscrypt_decrypt_bio() 37 fi.offset); in fscrypt_decrypt_bio()
|
/fs/smb/client/ |
D | reparse.h | 105 struct smb2_file_all_info *fi = &data->fi; in cifs_open_data_reparse() local 106 u32 attrs = le32_to_cpu(fi->Attributes); in cifs_open_data_reparse() 112 fi->Attributes = cpu_to_le32(attrs); in cifs_open_data_reparse()
|
D | smb1ops.c | 552 FILE_ALL_INFO fi = {}; in cifs_query_path_info() local 558 rc = CIFSSMBQPathInfo(xid, tcon, full_path, &fi, 0 /* not legacy */, cifs_sb->local_nls, in cifs_query_path_info() 566 rc = SMBQueryInformation(xid, tcon, full_path, &fi, cifs_sb->local_nls, in cifs_query_path_info() 577 move_cifs_info_to_smb2(&data->fi, &fi); in cifs_query_path_info() 579 if (!(le32_to_cpu(fi.Attributes) & ATTR_REPARSE)) in cifs_query_path_info() 627 FILE_ALL_INFO fi = {}; in cifs_query_file_info() local 635 rc = CIFSSMBQFileInfo(xid, tcon, cfile->fid.netfid, &fi); in cifs_query_file_info() 637 move_cifs_info_to_smb2(&data->fi, &fi); in cifs_query_file_info() 727 FILE_ALL_INFO fi = {}; in cifs_open_file() local 735 &oparms->fid->netfid, oplock, &fi, in cifs_open_file() [all …]
|
/fs/ceph/ |
D | file.c | 204 struct ceph_file_info *fi; in ceph_init_file_info() local 218 fi = &dfi->file_info; in ceph_init_file_info() 222 fi = kmem_cache_zalloc(ceph_file_cachep, GFP_KERNEL); in ceph_init_file_info() 223 if (!fi) in ceph_init_file_info() 227 fi->flags |= CEPH_F_SYNC; in ceph_init_file_info() 229 file->private_data = fi; in ceph_init_file_info() 233 fi->fmode = fmode; in ceph_init_file_info() 235 spin_lock_init(&fi->rw_contexts_lock); in ceph_init_file_info() 236 INIT_LIST_HEAD(&fi->rw_contexts); in ceph_init_file_info() 237 fi->filp_gen = READ_ONCE(ceph_inode_to_fs_client(inode)->filp_gen); in ceph_init_file_info() [all …]
|
D | ioctl.c | 244 struct ceph_file_info *fi = file->private_data; in ceph_ioctl_lazyio() local 249 if ((fi->fmode & CEPH_FILE_MODE_LAZY) == 0) { in ceph_ioctl_lazyio() 251 fi->fmode |= CEPH_FILE_MODE_LAZY; in ceph_ioctl_lazyio() 253 __ceph_touch_fmode(ci, mdsc, fi->fmode); in ceph_ioctl_lazyio() 266 struct ceph_file_info *fi = file->private_data; in ceph_ioctl_syncio() local 268 fi->flags |= CEPH_F_SYNC; in ceph_ioctl_syncio()
|
/fs/verity/ |
D | verify.c | 413 struct folio_iter fi; in fsverity_verify_bio() local 431 bio_for_each_folio_all(fi, bio) { in fsverity_verify_bio() 432 if (!fsverity_add_data_blocks(&ctx, fi.folio, fi.length, in fsverity_verify_bio() 433 fi.offset)) in fsverity_verify_bio()
|
/fs/btrfs/tests/ |
D | inode-tests.c | 21 struct btrfs_file_extent_item *fi; in insert_extent() local 42 fi = btrfs_item_ptr(leaf, slot, struct btrfs_file_extent_item); in insert_extent() 43 btrfs_set_file_extent_generation(leaf, fi, 1); in insert_extent() 44 btrfs_set_file_extent_type(leaf, fi, type); in insert_extent() 45 btrfs_set_file_extent_disk_bytenr(leaf, fi, disk_bytenr); in insert_extent() 46 btrfs_set_file_extent_disk_num_bytes(leaf, fi, disk_len); in insert_extent() 47 btrfs_set_file_extent_offset(leaf, fi, offset); in insert_extent() 48 btrfs_set_file_extent_num_bytes(leaf, fi, len); in insert_extent() 49 btrfs_set_file_extent_ram_bytes(leaf, fi, ram_bytes); in insert_extent() 50 btrfs_set_file_extent_compression(leaf, fi, compression); in insert_extent() [all …]
|