Home
last modified time | relevance | path

Searched refs:fi (Results 1 – 25 of 42) sorted by relevance

12

/fs/fuse/
Dreaddir.c19 struct fuse_inode *fi = get_fuse_inode(dir); in fuse_use_readdirplus() local
25 if (test_and_clear_bit(FUSE_I_ADVISE_RDPLUS, &fi->state)) in fuse_use_readdirplus()
35 struct fuse_inode *fi = get_fuse_inode(file_inode(file)); in fuse_add_dirent_to_cache() local
44 spin_lock(&fi->rdc.lock); in fuse_add_dirent_to_cache()
49 if (fi->rdc.cached || pos != fi->rdc.pos) { in fuse_add_dirent_to_cache()
50 spin_unlock(&fi->rdc.lock); in fuse_add_dirent_to_cache()
53 version = fi->rdc.version; in fuse_add_dirent_to_cache()
54 size = fi->rdc.size; in fuse_add_dirent_to_cache()
62 spin_unlock(&fi->rdc.lock); in fuse_add_dirent_to_cache()
73 spin_lock(&fi->rdc.lock); in fuse_add_dirent_to_cache()
[all …]
Dinode.c74 struct fuse_inode *fi; in fuse_alloc_inode() local
76 fi = kmem_cache_alloc(fuse_inode_cachep, GFP_KERNEL); in fuse_alloc_inode()
77 if (!fi) in fuse_alloc_inode()
80 fi->i_time = 0; in fuse_alloc_inode()
81 fi->inval_mask = 0; in fuse_alloc_inode()
82 fi->nodeid = 0; in fuse_alloc_inode()
83 fi->nlookup = 0; in fuse_alloc_inode()
84 fi->attr_version = 0; in fuse_alloc_inode()
85 fi->orig_ino = 0; in fuse_alloc_inode()
86 fi->state = 0; in fuse_alloc_inode()
[all …]
Dfile.c179 struct fuse_inode *fi = get_fuse_inode(inode); in fuse_link_write_file() local
185 spin_lock(&fi->lock); in fuse_link_write_file()
187 list_add(&ff->write_entry, &fi->write_files); in fuse_link_write_file()
188 spin_unlock(&fi->lock); in fuse_link_write_file()
202 struct fuse_inode *fi = get_fuse_inode(inode); in fuse_finish_open() local
204 spin_lock(&fi->lock); in fuse_finish_open()
205 fi->attr_version = atomic64_inc_return(&fc->attr_version); in fuse_finish_open()
207 spin_unlock(&fi->lock); in fuse_finish_open()
253 static void fuse_prepare_release(struct fuse_inode *fi, struct fuse_file *ff, in fuse_prepare_release() argument
260 if (likely(fi)) { in fuse_prepare_release()
[all …]
Ddir.c22 struct fuse_inode *fi = get_fuse_inode(dir); in fuse_advise_use_readdirplus() local
24 set_bit(FUSE_I_ADVISE_RDPLUS, &fi->state); in fuse_advise_use_readdirplus()
200 struct fuse_inode *fi; in fuse_dentry_revalidate() local
239 fi = get_fuse_inode(inode); in fuse_dentry_revalidate()
244 spin_lock(&fi->lock); in fuse_dentry_revalidate()
245 fi->nlookup++; in fuse_dentry_revalidate()
246 spin_unlock(&fi->lock); in fuse_dentry_revalidate()
261 fi = get_fuse_inode(inode); in fuse_dentry_revalidate()
263 if (test_bit(FUSE_I_INIT_RDPLUS, &fi->state)) in fuse_dentry_revalidate()
265 } else if (test_and_clear_bit(FUSE_I_INIT_RDPLUS, &fi->state)) { in fuse_dentry_revalidate()
[all …]
/fs/udf/
Ddirectory.c28 struct fileIdentDesc *fi; in udf_fileident_read() local
37 fi = udf_get_fileident(iinfo->i_ext.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 …]
Dnamei.c168 struct fileIdentDesc *fi = NULL; in udf_find_entry() local
194 fi = ERR_PTR(-EIO); in udf_find_entry()
209 fi = ERR_PTR(-EIO); in udf_find_entry()
216 fi = ERR_PTR(-ENOMEM); in udf_find_entry()
221 fi = udf_fileident_read(dir, &f_pos, fibh, cfi, &epos, &eloc, in udf_find_entry()
223 if (!fi) { in udf_find_entry()
224 fi = ERR_PTR(-EIO); in udf_find_entry()
232 nameptr = fi->fileIdent + liu; in udf_find_entry()
247 fi = ERR_PTR(-ENOMEM); in udf_find_entry()
252 memcpy(nameptr, fi->fileIdent + liu, in udf_find_entry()
[all …]
Ddir.c45 struct fileIdentDesc *fi = NULL; in udf_readdir() local
151 fi = udf_fileident_read(dir, &nf_pos, &fibh, &cfi, &epos, &eloc, in udf_readdir()
153 if (!fi) in udf_readdir()
163 nameptr = fi->fileIdent + liu; in udf_readdir()
181 memcpy(nameptr, fi->fileIdent + liu, in udf_readdir()
/fs/f2fs/
Dinode.c202 struct f2fs_inode_info *fi = F2FS_I(inode); in sanity_check_inode() local
238 if (fi->i_extra_isize > F2FS_TOTAL_EXTRA_ATTR_SIZE || in sanity_check_inode()
239 fi->i_extra_isize % sizeof(__le32)) { in sanity_check_inode()
242 __func__, inode->i_ino, fi->i_extra_isize, in sanity_check_inode()
250 (!fi->i_inline_xattr_size || in sanity_check_inode()
251 fi->i_inline_xattr_size > MAX_INLINE_XATTR_SIZE)) { in sanity_check_inode()
254 __func__, inode->i_ino, fi->i_inline_xattr_size, in sanity_check_inode()
291 fi->i_flags & F2FS_COMPR_FL && in sanity_check_inode()
292 F2FS_FITS_IN_INODE(ri, fi->i_extra_isize, in sanity_check_inode()
326 struct f2fs_inode_info *fi = F2FS_I(inode); in do_read_inode() local
[all …]
Dfile.c236 struct f2fs_inode_info *fi = F2FS_I(inode); in try_to_fix_pino() local
239 down_write(&fi->i_sem); in try_to_fix_pino()
245 up_write(&fi->i_sem); in try_to_fix_pino()
803 struct f2fs_inode_info *fi = F2FS_I(inode); in f2fs_getattr() local
809 F2FS_FITS_IN_INODE(ri, fi->i_extra_isize, i_crtime)) { in f2fs_getattr()
811 stat->btime.tv_sec = fi->i_crtime.tv_sec; in f2fs_getattr()
812 stat->btime.tv_nsec = fi->i_crtime.tv_nsec; in f2fs_getattr()
815 flags = fi->i_flags; in f2fs_getattr()
1829 struct f2fs_inode_info *fi = F2FS_I(inode); in f2fs_setflags_common() local
1830 u32 masked_flags = fi->i_flags & mask; in f2fs_setflags_common()
[all …]
Dcompress.c554 struct f2fs_inode_info *fi = F2FS_I(cc->inode); in f2fs_compress_pages() local
556 f2fs_cops[fi->i_compress_algorithm]; in f2fs_compress_pages()
561 cc->cluster_size, fi->i_compress_algorithm); in f2fs_compress_pages()
663 struct f2fs_inode_info *fi= F2FS_I(dic->inode); in f2fs_decompress_pages() local
665 f2fs_cops[fi->i_compress_algorithm]; in f2fs_decompress_pages()
677 dic->cluster_size, fi->i_compress_algorithm); in f2fs_decompress_pages()
1056 struct f2fs_inode_info *fi = F2FS_I(inode); in f2fs_write_compressed_pages() local
1191 spin_lock(&fi->i_size_lock); in f2fs_write_compressed_pages()
1192 if (fi->last_disk_size < psize) in f2fs_write_compressed_pages()
1193 fi->last_disk_size = psize; in f2fs_write_compressed_pages()
[all …]
Dsuper.c347 struct f2fs_inode_info *fi = (struct f2fs_inode_info *) foo; in init_once() local
349 inode_init_once(&fi->vfs_inode); in init_once()
1047 struct f2fs_inode_info *fi; in f2fs_alloc_inode() local
1049 fi = kmem_cache_alloc(f2fs_inode_cachep, GFP_F2FS_ZERO); in f2fs_alloc_inode()
1050 if (!fi) in f2fs_alloc_inode()
1053 init_once((void *) fi); in f2fs_alloc_inode()
1056 atomic_set(&fi->dirty_pages, 0); in f2fs_alloc_inode()
1057 atomic_set(&fi->i_compr_blocks, 0); in f2fs_alloc_inode()
1058 init_rwsem(&fi->i_sem); in f2fs_alloc_inode()
1059 spin_lock_init(&fi->i_size_lock); in f2fs_alloc_inode()
[all …]
Dsegment.c291 struct f2fs_inode_info *fi; in f2fs_drop_inmem_pages_all() local
300 fi = list_first_entry(head, struct f2fs_inode_info, inmem_ilist); in f2fs_drop_inmem_pages_all()
301 inode = igrab(&fi->vfs_inode); in f2fs_drop_inmem_pages_all()
303 list_move_tail(&fi->inmem_ilist, head); in f2fs_drop_inmem_pages_all()
308 if (!fi->i_gc_failures[GC_FAILURE_ATOMIC]) in f2fs_drop_inmem_pages_all()
328 struct f2fs_inode_info *fi = F2FS_I(inode); in f2fs_drop_inmem_pages() local
330 while (!list_empty(&fi->inmem_pages)) { in f2fs_drop_inmem_pages()
331 mutex_lock(&fi->inmem_lock); in f2fs_drop_inmem_pages()
332 __revoke_inmem_pages(inode, &fi->inmem_pages, in f2fs_drop_inmem_pages()
334 mutex_unlock(&fi->inmem_lock); in f2fs_drop_inmem_pages()
[all …]
/fs/iomap/
Dfiemap.c11 struct fiemap_extent_info *fi; member
15 static int iomap_to_fiemap(struct fiemap_extent_info *fi, in iomap_to_fiemap() argument
40 return fiemap_fill_next_extent(fi, iomap->offset, in iomap_to_fiemap()
55 ret = iomap_to_fiemap(ctx->fi, &ctx->prev, 0); in iomap_fiemap_actor()
67 int iomap_fiemap(struct inode *inode, struct fiemap_extent_info *fi, in iomap_fiemap() argument
74 ctx.fi = fi; in iomap_fiemap()
77 ret = fiemap_check_flags(fi, FIEMAP_FLAG_SYNC); in iomap_fiemap()
81 if (fi->fi_flags & FIEMAP_FLAG_SYNC) { in iomap_fiemap()
103 ret = iomap_to_fiemap(fi, &ctx.prev, FIEMAP_EXTENT_LAST); in iomap_fiemap()
/fs/btrfs/
Dfile.c757 struct btrfs_file_extent_item *fi; in __btrfs_drop_extents() local
830 fi = btrfs_item_ptr(leaf, path->slots[0], in __btrfs_drop_extents()
832 extent_type = btrfs_file_extent_type(leaf, fi); in __btrfs_drop_extents()
836 disk_bytenr = btrfs_file_extent_disk_bytenr(leaf, fi); in __btrfs_drop_extents()
837 num_bytes = btrfs_file_extent_disk_num_bytes(leaf, fi); in __btrfs_drop_extents()
838 extent_offset = btrfs_file_extent_offset(leaf, fi); in __btrfs_drop_extents()
840 btrfs_file_extent_num_bytes(leaf, fi); in __btrfs_drop_extents()
843 btrfs_file_extent_ram_bytes(leaf, fi); in __btrfs_drop_extents()
899 fi = btrfs_item_ptr(leaf, path->slots[0] - 1, in __btrfs_drop_extents()
901 btrfs_set_file_extent_num_bytes(leaf, fi, in __btrfs_drop_extents()
[all …]
Dprint-tree.c178 struct btrfs_file_extent_item *fi; in btrfs_print_leaf() local
246 fi = btrfs_item_ptr(l, i, in btrfs_print_leaf()
248 if (btrfs_file_extent_type(l, fi) == in btrfs_print_leaf()
251 btrfs_file_extent_ram_bytes(l, fi)); in btrfs_print_leaf()
255 btrfs_file_extent_disk_bytenr(l, fi), in btrfs_print_leaf()
256 btrfs_file_extent_disk_num_bytes(l, fi)); in btrfs_print_leaf()
258 btrfs_file_extent_offset(l, fi), in btrfs_print_leaf()
259 btrfs_file_extent_num_bytes(l, fi), in btrfs_print_leaf()
260 btrfs_file_extent_ram_bytes(l, fi)); in btrfs_print_leaf()
Dtree-checker.c100 #define CHECK_FE_ALIGNED(leaf, slot, fi, name, alignment) \ argument
102 if (!IS_ALIGNED(btrfs_file_extent_##name((leaf), (fi)), (alignment))) \
105 (#name), btrfs_file_extent_##name((leaf), (fi)), \
107 (!IS_ALIGNED(btrfs_file_extent_##name((leaf), (fi)), (alignment))); \
132 struct btrfs_file_extent_item *fi; in check_extent_data_item() local
144 fi = btrfs_item_ptr(leaf, slot, struct btrfs_file_extent_item); in check_extent_data_item()
146 if (btrfs_file_extent_type(leaf, fi) > BTRFS_FILE_EXTENT_TYPES) { in check_extent_data_item()
149 btrfs_file_extent_type(leaf, fi), in check_extent_data_item()
158 if (btrfs_file_extent_compression(leaf, fi) > BTRFS_COMPRESS_TYPES) { in check_extent_data_item()
161 btrfs_file_extent_compression(leaf, fi), in check_extent_data_item()
[all …]
Dfile-item.c942 struct btrfs_file_extent_item *fi, in btrfs_extent_item_to_extent_map() argument
953 u8 type = btrfs_file_extent_type(leaf, fi); in btrfs_extent_item_to_extent_map()
954 int compress_type = btrfs_file_extent_compression(leaf, fi); in btrfs_extent_item_to_extent_map()
963 btrfs_file_extent_num_bytes(leaf, fi); in btrfs_extent_item_to_extent_map()
966 size = btrfs_file_extent_ram_bytes(leaf, fi); in btrfs_extent_item_to_extent_map()
971 em->ram_bytes = btrfs_file_extent_ram_bytes(leaf, fi); in btrfs_extent_item_to_extent_map()
977 btrfs_file_extent_offset(leaf, fi); in btrfs_extent_item_to_extent_map()
978 em->orig_block_len = btrfs_file_extent_disk_num_bytes(leaf, fi); in btrfs_extent_item_to_extent_map()
979 bytenr = btrfs_file_extent_disk_bytenr(leaf, fi); in btrfs_extent_item_to_extent_map()
990 bytenr += btrfs_file_extent_offset(leaf, fi); in btrfs_extent_item_to_extent_map()
Dbackref.c28 const struct btrfs_file_extent_item *fi, in check_extent_in_eb() argument
37 !btrfs_file_extent_compression(eb, fi) && in check_extent_in_eb()
38 !btrfs_file_extent_encryption(eb, fi) && in check_extent_in_eb()
39 !btrfs_file_extent_other_encoding(eb, fi)) { in check_extent_in_eb()
43 data_offset = btrfs_file_extent_offset(eb, fi); in check_extent_in_eb()
44 data_len = btrfs_file_extent_num_bytes(eb, fi); in check_extent_in_eb()
81 struct btrfs_file_extent_item *fi; in find_extent_in_eb() local
97 fi = btrfs_item_ptr(eb, slot, struct btrfs_file_extent_item); in find_extent_in_eb()
98 extent_type = btrfs_file_extent_type(eb, fi); in find_extent_in_eb()
102 disk_byte = btrfs_file_extent_disk_bytenr(eb, fi); in find_extent_in_eb()
[all …]
Dinode.c1455 struct btrfs_file_extent_item *fi; in run_delalloc_nocow() local
1534 fi = btrfs_item_ptr(leaf, path->slots[0], in run_delalloc_nocow()
1536 extent_type = btrfs_file_extent_type(leaf, fi); in run_delalloc_nocow()
1538 ram_bytes = btrfs_file_extent_ram_bytes(leaf, fi); in run_delalloc_nocow()
1541 disk_bytenr = btrfs_file_extent_disk_bytenr(leaf, fi); in run_delalloc_nocow()
1542 extent_offset = btrfs_file_extent_offset(leaf, fi); in run_delalloc_nocow()
1544 btrfs_file_extent_num_bytes(leaf, fi); in run_delalloc_nocow()
1546 btrfs_file_extent_disk_num_bytes(leaf, fi); in run_delalloc_nocow()
1559 if (btrfs_file_extent_compression(leaf, fi) || in run_delalloc_nocow()
1560 btrfs_file_extent_encryption(leaf, fi) || in run_delalloc_nocow()
[all …]
Drelocation.c1631 struct btrfs_file_extent_item *fi; in get_new_location() local
1650 fi = btrfs_item_ptr(leaf, path->slots[0], in get_new_location()
1653 BUG_ON(btrfs_file_extent_offset(leaf, fi) || in get_new_location()
1654 btrfs_file_extent_compression(leaf, fi) || in get_new_location()
1655 btrfs_file_extent_encryption(leaf, fi) || in get_new_location()
1656 btrfs_file_extent_other_encoding(leaf, fi)); in get_new_location()
1658 if (num_bytes != btrfs_file_extent_disk_num_bytes(leaf, fi)) { in get_new_location()
1663 *new_bytenr = btrfs_file_extent_disk_bytenr(leaf, fi); in get_new_location()
1682 struct btrfs_file_extent_item *fi; in replace_file_extents() local
1712 fi = btrfs_item_ptr(leaf, i, struct btrfs_file_extent_item); in replace_file_extents()
[all …]
/fs/ceph/
Dfile.c206 struct ceph_file_info *fi; in ceph_init_file_info() local
221 fi = &dfi->file_info; in ceph_init_file_info()
225 fi = kmem_cache_zalloc(ceph_file_cachep, GFP_KERNEL); in ceph_init_file_info()
226 if (!fi) { in ceph_init_file_info()
231 file->private_data = fi; in ceph_init_file_info()
234 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_client(inode)->filp_gen); in ceph_init_file_info()
349 struct ceph_file_info *fi = file->private_data; in ceph_open() local
[all …]
Dioctl.c243 struct ceph_file_info *fi = file->private_data; in ceph_ioctl_lazyio() local
247 if ((fi->fmode & CEPH_FILE_MODE_LAZY) == 0) { in ceph_ioctl_lazyio()
249 fi->fmode |= CEPH_FILE_MODE_LAZY; in ceph_ioctl_lazyio()
263 struct ceph_file_info *fi = file->private_data; in ceph_ioctl_syncio() local
265 fi->flags |= CEPH_F_SYNC; in ceph_ioctl_syncio()
Dlocks.c35 struct ceph_file_info *fi = dst->fl_file->private_data; in ceph_fl_copy_lock() local
38 atomic_inc(&fi->num_locks); in ceph_fl_copy_lock()
43 struct ceph_file_info *fi = fl->fl_file->private_data; in ceph_fl_release_lock() local
46 atomic_dec(&fi->num_locks); in ceph_fl_release_lock()
/fs/btrfs/tests/
Dinode-tests.c20 struct btrfs_file_extent_item *fi; in insert_extent() local
38 fi = btrfs_item_ptr(leaf, slot, struct btrfs_file_extent_item); in insert_extent()
39 btrfs_set_file_extent_generation(leaf, fi, 1); in insert_extent()
40 btrfs_set_file_extent_type(leaf, fi, type); in insert_extent()
41 btrfs_set_file_extent_disk_bytenr(leaf, fi, disk_bytenr); in insert_extent()
42 btrfs_set_file_extent_disk_num_bytes(leaf, fi, disk_len); in insert_extent()
43 btrfs_set_file_extent_offset(leaf, fi, offset); in insert_extent()
44 btrfs_set_file_extent_num_bytes(leaf, fi, len); in insert_extent()
45 btrfs_set_file_extent_ram_bytes(leaf, fi, ram_bytes); in insert_extent()
46 btrfs_set_file_extent_compression(leaf, fi, compression); in insert_extent()
[all …]
/fs/nfsd/
Dstate.h653 void put_nfs4_file(struct nfs4_file *fi);
657 static inline void get_nfs4_file(struct nfs4_file *fi) in get_nfs4_file() argument
659 refcount_inc(&fi->fi_ref); in get_nfs4_file()

12