/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 | 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 | inode.c | 91 struct fuse_inode *fi; in fuse_alloc_inode() local 93 fi = kmem_cache_alloc(fuse_inode_cachep, GFP_KERNEL); in fuse_alloc_inode() 94 if (!fi) in fuse_alloc_inode() 97 fi->i_time = 0; in fuse_alloc_inode() 98 fi->inval_mask = 0; in fuse_alloc_inode() 100 fi->backing_inode = NULL; in fuse_alloc_inode() 101 fi->bpf = NULL; in fuse_alloc_inode() 103 fi->nodeid = 0; in fuse_alloc_inode() 104 fi->nlookup = 0; in fuse_alloc_inode() 105 fi->attr_version = 0; in fuse_alloc_inode() [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() 307 static void fuse_prepare_release(struct fuse_inode *fi, struct fuse_file *ff, in fuse_prepare_release() argument 314 if (likely(fi)) { in fuse_prepare_release() [all …]
|
D | dir.c | 31 struct fuse_inode *fi = get_fuse_inode(dir); in fuse_advise_use_readdirplus() local 33 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 | 206 struct f2fs_inode_info *fi = F2FS_I(inode); in sanity_check_inode() local 242 if (fi->i_extra_isize > F2FS_TOTAL_EXTRA_ATTR_SIZE || in sanity_check_inode() 243 fi->i_extra_isize % sizeof(__le32)) { in sanity_check_inode() 246 __func__, inode->i_ino, fi->i_extra_isize, in sanity_check_inode() 254 (!fi->i_inline_xattr_size || in sanity_check_inode() 255 fi->i_inline_xattr_size > MAX_INLINE_XATTR_SIZE)) { in sanity_check_inode() 258 __func__, inode->i_ino, fi->i_inline_xattr_size, in sanity_check_inode() 263 if (fi->extent_tree) { in sanity_check_inode() 264 struct extent_info *ei = &fi->extent_tree->largest; in sanity_check_inode() 293 if ((fi->i_flags & F2FS_CASEFOLD_FL) && !f2fs_sb_has_casefold(sbi)) { in sanity_check_inode() [all …]
|
D | file.c | 239 struct f2fs_inode_info *fi = F2FS_I(inode); in try_to_fix_pino() local 242 f2fs_down_write(&fi->i_sem); in try_to_fix_pino() 248 f2fs_up_write(&fi->i_sem); in try_to_fix_pino() 816 struct f2fs_inode_info *fi = F2FS_I(inode); in f2fs_getattr() local 822 F2FS_FITS_IN_INODE(ri, fi->i_extra_isize, i_crtime)) { in f2fs_getattr() 824 stat->btime.tv_sec = fi->i_crtime.tv_sec; in f2fs_getattr() 825 stat->btime.tv_nsec = fi->i_crtime.tv_nsec; in f2fs_getattr() 828 flags = fi->i_flags; in f2fs_getattr() 1851 struct f2fs_inode_info *fi = F2FS_I(inode); in f2fs_setflags_common() local 1852 u32 masked_flags = fi->i_flags & mask; in f2fs_setflags_common() [all …]
|
D | compress.c | 618 struct f2fs_inode_info *fi = F2FS_I(cc->inode); in f2fs_compress_pages() local 620 f2fs_cops[fi->i_compress_algorithm]; in f2fs_compress_pages() 626 cc->cluster_size, fi->i_compress_algorithm); in f2fs_compress_pages() 677 if (fi->i_compress_flag & 1 << COMPRESS_CHKSUM) in f2fs_compress_pages() 739 struct f2fs_inode_info *fi = F2FS_I(dic->inode); in f2fs_decompress_cluster() local 741 f2fs_cops[fi->i_compress_algorithm]; in f2fs_decompress_cluster() 746 dic->cluster_size, fi->i_compress_algorithm); in f2fs_decompress_cluster() 769 if (!ret && (fi->i_compress_flag & 1 << COMPRESS_CHKSUM)) { in f2fs_decompress_cluster() 1204 struct f2fs_inode_info *fi = F2FS_I(inode); in f2fs_write_compressed_pages() local 1361 spin_lock(&fi->i_size_lock); in f2fs_write_compressed_pages() [all …]
|
D | f2fs.h | 73 #define IS_FAULT_SET(fi, type) ((fi)->inject_type & (1 << (type))) argument 2444 struct f2fs_inode_info *fi = F2FS_I(inode); in inc_atomic_write_cnt() local 2447 fi->atomic_write_cnt++; in inc_atomic_write_cnt() 2457 struct f2fs_inode_info *fi = F2FS_I(inode); in release_atomic_write_cnt() local 2459 atomic64_sub(fi->atomic_write_cnt, &sbi->current_atomic_write); in release_atomic_write_cnt() 2460 fi->atomic_write_cnt = 0; in release_atomic_write_cnt() 3113 struct f2fs_inode_info *fi = F2FS_I(inode); in get_inline_info() local 3116 set_bit(FI_INLINE_XATTR, fi->flags); in get_inline_info() 3118 set_bit(FI_INLINE_DATA, fi->flags); in get_inline_info() 3120 set_bit(FI_INLINE_DENTRY, fi->flags); in get_inline_info() [all …]
|
/fs/udf/ |
D | directory.c | 28 struct fileIdentDesc *fi; in udf_fileident_read() local 37 fi = udf_get_fileident(iinfo->i_data - in udf_fileident_read() 43 if (!fi) in udf_fileident_read() 48 memcpy((uint8_t *)cfi, (uint8_t *)fi, in udf_fileident_read() 51 return fi; in udf_fileident_read() 102 fi = udf_get_fileident(fibh->sbh->b_data, dir->i_sb->s_blocksize, in udf_fileident_read() 105 if (!fi) in udf_fileident_read() 111 memcpy((uint8_t *)cfi, (uint8_t *)fi, in udf_fileident_read() 139 memcpy((uint8_t *)cfi, (uint8_t *)fi, -fibh->soffset); in udf_fileident_read() 148 memcpy((uint8_t *)cfi, (uint8_t *)fi, in udf_fileident_read() [all …]
|
D | namei.c | 167 struct fileIdentDesc *fi = NULL; in udf_find_entry() local 193 fi = ERR_PTR(-EIO); in udf_find_entry() 208 fi = ERR_PTR(-EIO); in udf_find_entry() 215 fi = ERR_PTR(-ENOMEM); in udf_find_entry() 220 fi = udf_fileident_read(dir, &f_pos, fibh, cfi, &epos, &eloc, in udf_find_entry() 222 if (!fi) { in udf_find_entry() 223 fi = ERR_PTR(-EIO); in udf_find_entry() 231 nameptr = udf_get_fi_ident(fi); in udf_find_entry() 246 fi = ERR_PTR(-ENOMEM); in udf_find_entry() 251 memcpy(nameptr, udf_get_fi_ident(fi), in udf_find_entry() [all …]
|
D | dir.c | 44 struct fileIdentDesc *fi = NULL; in udf_readdir() local 150 fi = udf_fileident_read(dir, &nf_pos, &fibh, &cfi, &epos, &eloc, in udf_readdir() 152 if (!fi) in udf_readdir() 162 nameptr = udf_get_fi_ident(fi); in udf_readdir() 180 memcpy(nameptr, udf_get_fi_ident(fi), in udf_readdir()
|
D | udfdecl.h | 133 static inline uint8_t *udf_get_fi_ident(struct fileIdentDesc *fi) in udf_get_fi_ident() argument 135 return ((uint8_t *)(fi + 1)) + le16_to_cpu(fi->lengthOfImpUse); in udf_get_fi_ident()
|
/fs/iomap/ |
D | fiemap.c | 11 static int iomap_to_fiemap(struct fiemap_extent_info *fi, in iomap_to_fiemap() argument 36 return fiemap_fill_next_extent(fi, iomap->offset, in iomap_to_fiemap() 42 struct fiemap_extent_info *fi, struct iomap *prev) in iomap_fiemap_iter() argument 49 ret = iomap_to_fiemap(fi, prev, 0); in iomap_fiemap_iter() 61 int iomap_fiemap(struct inode *inode, struct fiemap_extent_info *fi, in iomap_fiemap() argument 75 ret = fiemap_prep(inode, fi, start, &iter.len, 0); in iomap_fiemap() 80 iter.processed = iomap_fiemap_iter(&iter, fi, &prev); in iomap_fiemap() 83 ret = iomap_to_fiemap(fi, &prev, FIEMAP_EXTENT_LAST); in iomap_fiemap()
|
/fs/btrfs/ |
D | file.c | 695 struct btrfs_file_extent_item *fi; in btrfs_drop_extents() local 782 fi = btrfs_item_ptr(leaf, path->slots[0], in btrfs_drop_extents() 784 extent_type = btrfs_file_extent_type(leaf, fi); in btrfs_drop_extents() 788 disk_bytenr = btrfs_file_extent_disk_bytenr(leaf, fi); in btrfs_drop_extents() 789 num_bytes = btrfs_file_extent_disk_num_bytes(leaf, fi); in btrfs_drop_extents() 790 extent_offset = btrfs_file_extent_offset(leaf, fi); in btrfs_drop_extents() 792 btrfs_file_extent_num_bytes(leaf, fi); in btrfs_drop_extents() 795 btrfs_file_extent_ram_bytes(leaf, fi); in btrfs_drop_extents() 851 fi = btrfs_item_ptr(leaf, path->slots[0] - 1, in btrfs_drop_extents() 853 btrfs_set_file_extent_num_bytes(leaf, fi, in btrfs_drop_extents() [all …]
|
D | print-tree.c | 208 struct btrfs_file_extent_item *fi; in btrfs_print_leaf() local 276 fi = btrfs_item_ptr(l, i, in btrfs_print_leaf() 278 if (btrfs_file_extent_type(l, fi) == in btrfs_print_leaf() 281 btrfs_file_extent_ram_bytes(l, fi)); in btrfs_print_leaf() 285 btrfs_file_extent_disk_bytenr(l, fi), in btrfs_print_leaf() 286 btrfs_file_extent_disk_num_bytes(l, fi)); in btrfs_print_leaf() 288 btrfs_file_extent_offset(l, fi), in btrfs_print_leaf() 289 btrfs_file_extent_num_bytes(l, fi), in btrfs_print_leaf() 290 btrfs_file_extent_ram_bytes(l, fi)); in btrfs_print_leaf()
|
D | tree-checker.c | 102 #define CHECK_FE_ALIGNED(leaf, slot, fi, name, alignment) \ argument 104 if (unlikely(!IS_ALIGNED(btrfs_file_extent_##name((leaf), (fi)), \ 108 (#name), btrfs_file_extent_##name((leaf), (fi)), \ 110 (!IS_ALIGNED(btrfs_file_extent_##name((leaf), (fi)), (alignment))); \ 203 struct btrfs_file_extent_item *fi; in check_extent_data_item() local 224 fi = btrfs_item_ptr(leaf, slot, struct btrfs_file_extent_item); in check_extent_data_item() 237 if (unlikely(btrfs_file_extent_type(leaf, fi) >= in check_extent_data_item() 241 btrfs_file_extent_type(leaf, fi), in check_extent_data_item() 250 if (unlikely(btrfs_file_extent_compression(leaf, fi) >= in check_extent_data_item() 254 btrfs_file_extent_compression(leaf, fi), in check_extent_data_item() [all …]
|
D | file-item.c | 1197 struct btrfs_file_extent_item *fi, in btrfs_extent_item_to_extent_map() argument 1208 u8 type = btrfs_file_extent_type(leaf, fi); in btrfs_extent_item_to_extent_map() 1209 int compress_type = btrfs_file_extent_compression(leaf, fi); in btrfs_extent_item_to_extent_map() 1214 em->ram_bytes = btrfs_file_extent_ram_bytes(leaf, fi); in btrfs_extent_item_to_extent_map() 1220 btrfs_file_extent_offset(leaf, fi); in btrfs_extent_item_to_extent_map() 1221 em->orig_block_len = btrfs_file_extent_disk_num_bytes(leaf, fi); in btrfs_extent_item_to_extent_map() 1222 bytenr = btrfs_file_extent_disk_bytenr(leaf, fi); in btrfs_extent_item_to_extent_map() 1233 bytenr += btrfs_file_extent_offset(leaf, fi); in btrfs_extent_item_to_extent_map() 1270 struct btrfs_file_extent_item *fi; in btrfs_file_extent_end() local 1276 fi = btrfs_item_ptr(leaf, slot, struct btrfs_file_extent_item); in btrfs_file_extent_end() [all …]
|
D | backref.c | 30 const struct btrfs_file_extent_item *fi, in check_extent_in_eb() argument 39 !btrfs_file_extent_compression(eb, fi) && in check_extent_in_eb() 40 !btrfs_file_extent_encryption(eb, fi) && in check_extent_in_eb() 41 !btrfs_file_extent_other_encoding(eb, fi)) { in check_extent_in_eb() 45 data_offset = btrfs_file_extent_offset(eb, fi); in check_extent_in_eb() 46 data_len = btrfs_file_extent_num_bytes(eb, fi); in check_extent_in_eb() 83 struct btrfs_file_extent_item *fi; in find_extent_in_eb() local 99 fi = btrfs_item_ptr(eb, slot, struct btrfs_file_extent_item); in find_extent_in_eb() 100 extent_type = btrfs_file_extent_type(eb, fi); in find_extent_in_eb() 104 disk_byte = btrfs_file_extent_disk_bytenr(eb, fi); in find_extent_in_eb() [all …]
|
D | inode.c | 1659 struct btrfs_file_extent_item *fi; in run_delalloc_nocow() local 1738 fi = btrfs_item_ptr(leaf, path->slots[0], in run_delalloc_nocow() 1740 extent_type = btrfs_file_extent_type(leaf, fi); in run_delalloc_nocow() 1742 ram_bytes = btrfs_file_extent_ram_bytes(leaf, fi); in run_delalloc_nocow() 1745 disk_bytenr = btrfs_file_extent_disk_bytenr(leaf, fi); in run_delalloc_nocow() 1746 extent_offset = btrfs_file_extent_offset(leaf, fi); in run_delalloc_nocow() 1748 btrfs_file_extent_num_bytes(leaf, fi); in run_delalloc_nocow() 1750 btrfs_file_extent_disk_num_bytes(leaf, fi); in run_delalloc_nocow() 1763 if (btrfs_file_extent_compression(leaf, fi) || in run_delalloc_nocow() 1764 btrfs_file_extent_encryption(leaf, fi) || in run_delalloc_nocow() [all …]
|
/fs/ceph/ |
D | ioctl.c | 243 struct ceph_file_info *fi = file->private_data; in ceph_ioctl_lazyio() local 248 if ((fi->fmode & CEPH_FILE_MODE_LAZY) == 0) { in ceph_ioctl_lazyio() 250 fi->fmode |= CEPH_FILE_MODE_LAZY; in ceph_ioctl_lazyio() 252 __ceph_touch_fmode(ci, mdsc, fi->fmode); in ceph_ioctl_lazyio() 265 struct ceph_file_info *fi = file->private_data; in ceph_ioctl_syncio() local 267 fi->flags |= CEPH_F_SYNC; in ceph_ioctl_syncio()
|
D | file.c | 207 struct ceph_file_info *fi; in ceph_init_file_info() local 220 fi = &dfi->file_info; in ceph_init_file_info() 224 fi = kmem_cache_zalloc(ceph_file_cachep, GFP_KERNEL); in ceph_init_file_info() 225 if (!fi) in ceph_init_file_info() 228 file->private_data = fi; in ceph_init_file_info() 232 fi->fmode = fmode; in ceph_init_file_info() 234 spin_lock_init(&fi->rw_contexts_lock); in ceph_init_file_info() 235 INIT_LIST_HEAD(&fi->rw_contexts); in ceph_init_file_info() 236 fi->filp_gen = READ_ONCE(ceph_inode_to_client(inode)->filp_gen); in ceph_init_file_info() 344 struct ceph_file_info *fi = file->private_data; in ceph_open() local [all …]
|
/fs/btrfs/tests/ |
D | inode-tests.c | 20 struct btrfs_file_extent_item *fi; in insert_extent() local 37 fi = btrfs_item_ptr(leaf, slot, struct btrfs_file_extent_item); in insert_extent() 38 btrfs_set_file_extent_generation(leaf, fi, 1); in insert_extent() 39 btrfs_set_file_extent_type(leaf, fi, type); in insert_extent() 40 btrfs_set_file_extent_disk_bytenr(leaf, fi, disk_bytenr); in insert_extent() 41 btrfs_set_file_extent_disk_num_bytes(leaf, fi, disk_len); in insert_extent() 42 btrfs_set_file_extent_offset(leaf, fi, offset); in insert_extent() 43 btrfs_set_file_extent_num_bytes(leaf, fi, len); in insert_extent() 44 btrfs_set_file_extent_ram_bytes(leaf, fi, ram_bytes); in insert_extent() 45 btrfs_set_file_extent_compression(leaf, fi, compression); in insert_extent() [all …]
|
/fs/cifs/ |
D | readdir.c | 285 const FILE_DIRECTORY_INFO *fi = info; in __dir_info_to_fattr() local 288 fattr->cf_cifsattrs = le32_to_cpu(fi->ExtFileAttributes); in __dir_info_to_fattr() 289 fattr->cf_eof = le64_to_cpu(fi->EndOfFile); in __dir_info_to_fattr() 290 fattr->cf_bytes = le64_to_cpu(fi->AllocationSize); in __dir_info_to_fattr() 291 fattr->cf_createtime = le64_to_cpu(fi->CreationTime); in __dir_info_to_fattr() 292 fattr->cf_atime = cifs_NTtimeToUnix(fi->LastAccessTime); in __dir_info_to_fattr() 293 fattr->cf_ctime = cifs_NTtimeToUnix(fi->ChangeTime); in __dir_info_to_fattr() 294 fattr->cf_mtime = cifs_NTtimeToUnix(fi->LastWriteTime); in __dir_info_to_fattr()
|
/fs/nfsd/ |
D | state.h | 674 void put_nfs4_file(struct nfs4_file *fi); 683 static inline void get_nfs4_file(struct nfs4_file *fi) in get_nfs4_file() argument 685 refcount_inc(&fi->fi_ref); in get_nfs4_file()
|