Home
last modified time | relevance | path

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

12

/fs/ceph/
Ddir.c117 struct ceph_file_info *fi = filp->private_data; in __dcache_readdir() local
126 last = fi->dentry; in __dcache_readdir()
127 fi->dentry = NULL; in __dcache_readdir()
153 fi->flags |= CEPH_F_ATEND; in __dcache_readdir()
187 fi->dentry = last; in __dcache_readdir()
188 fi->next_offset = di->offset; in __dcache_readdir()
225 static int note_last_dentry(struct ceph_file_info *fi, const char *name, in note_last_dentry() argument
228 kfree(fi->last_name); in note_last_dentry()
229 fi->last_name = kmalloc(len+1, GFP_NOFS); in note_last_dentry()
230 if (!fi->last_name) in note_last_dentry()
[all …]
Dioctl.c235 struct ceph_file_info *fi = file->private_data; in ceph_ioctl_lazyio() local
239 if ((fi->fmode & CEPH_FILE_MODE_LAZY) == 0) { in ceph_ioctl_lazyio()
241 ci->i_nr_by_mode[fi->fmode]--; in ceph_ioctl_lazyio()
242 fi->fmode |= CEPH_FILE_MODE_LAZY; in ceph_ioctl_lazyio()
243 ci->i_nr_by_mode[fi->fmode]++; in ceph_ioctl_lazyio()
256 struct ceph_file_info *fi = file->private_data; in ceph_ioctl_syncio() local
258 fi->flags |= CEPH_F_SYNC; in ceph_ioctl_syncio()
Dfile.c636 struct ceph_file_info *fi = filp->private_data; in ceph_aio_read() local
649 if (fi->fmode & CEPH_FILE_MODE_LAZY) in ceph_aio_read()
663 (fi->flags & CEPH_F_SYNC)) in ceph_aio_read()
707 struct ceph_file_info *fi = file->private_data; in ceph_aio_write() local
753 if (fi->fmode & CEPH_FILE_MODE_LAZY) in ceph_aio_write()
768 (fi->flags & CEPH_F_SYNC)) { in ceph_aio_write()
/fs/udf/
Ddirectory.c28 struct fileIdentDesc *fi; in udf_fileident_read() local
36 fi = udf_get_fileident(iinfo->i_ext.i_data - in udf_fileident_read()
42 if (!fi) in udf_fileident_read()
47 memcpy((uint8_t *)cfi, (uint8_t *)fi, in udf_fileident_read()
50 return fi; in udf_fileident_read()
101 fi = udf_get_fileident(fibh->sbh->b_data, dir->i_sb->s_blocksize, in udf_fileident_read()
104 if (!fi) in udf_fileident_read()
110 memcpy((uint8_t *)cfi, (uint8_t *)fi, in udf_fileident_read()
138 memcpy((uint8_t *)cfi, (uint8_t *)fi, -fibh->soffset); in udf_fileident_read()
150 memcpy((uint8_t *)cfi, (uint8_t *)fi, in udf_fileident_read()
[all …]
Dnamei.c147 struct fileIdentDesc *fi = NULL; in udf_find_entry() local
191 fi = udf_fileident_read(dir, &f_pos, fibh, cfi, &epos, &eloc, in udf_find_entry()
193 if (!fi) in udf_find_entry()
200 nameptr = fi->fileIdent + liu; in udf_find_entry()
212 memcpy(nameptr, fi->fileIdent + liu, in udf_find_entry()
243 fi = NULL; in udf_find_entry()
251 return fi; in udf_find_entry()
303 struct fileIdentDesc *fi = NULL; in udf_add_entry() local
373 fi = udf_fileident_read(dir, &f_pos, fibh, cfi, &epos, &eloc, in udf_add_entry()
376 if (!fi) { in udf_add_entry()
[all …]
Ddir.c42 struct fileIdentDesc *fi = NULL; in do_udf_readdir() local
121 fi = udf_fileident_read(dir, &nf_pos, &fibh, &cfi, &epos, &eloc, in do_udf_readdir()
123 if (!fi) in do_udf_readdir()
130 nameptr = fi->fileIdent + liu; in do_udf_readdir()
140 memcpy(nameptr, fi->fileIdent + liu, in do_udf_readdir()
/fs/f2fs/
Ddata.c70 struct f2fs_inode_info *fi = F2FS_I(inode); in check_extent_cache() local
75 read_lock(&fi->ext.ext_lock); in check_extent_cache()
76 if (fi->ext.len == 0) { in check_extent_cache()
77 read_unlock(&fi->ext.ext_lock); in check_extent_cache()
82 start_fofs = fi->ext.fofs; in check_extent_cache()
83 end_fofs = fi->ext.fofs + fi->ext.len - 1; in check_extent_cache()
84 start_blkaddr = fi->ext.blk_addr; in check_extent_cache()
100 read_unlock(&fi->ext.ext_lock); in check_extent_cache()
103 read_unlock(&fi->ext.ext_lock); in check_extent_cache()
109 struct f2fs_inode_info *fi = F2FS_I(dn->inode); in update_extent_cache() local
[all …]
Dxattr.c206 struct f2fs_inode_info *fi = F2FS_I(inode); in f2fs_getxattr() local
217 if (!fi->i_xattr_nid) in f2fs_getxattr()
220 page = get_node_page(sbi, fi->i_xattr_nid); in f2fs_getxattr()
260 struct f2fs_inode_info *fi = F2FS_I(inode); in f2fs_listxattr() local
267 if (!fi->i_xattr_nid) in f2fs_listxattr()
270 page = get_node_page(sbi, fi->i_xattr_nid); in f2fs_listxattr()
302 struct f2fs_inode_info *fi = F2FS_I(inode); in f2fs_setxattr() local
327 if (!fi->i_xattr_nid) { in f2fs_setxattr()
331 if (!alloc_nid(sbi, &fi->i_xattr_nid)) { in f2fs_setxattr()
335 set_new_dnode(&dn, inode, NULL, NULL, fi->i_xattr_nid); in f2fs_setxattr()
[all …]
Dinode.c43 struct f2fs_inode_info *fi = F2FS_I(inode); in do_read_inode() local
81 fi->i_current_depth = le32_to_cpu(ri->i_current_depth); in do_read_inode()
82 fi->i_xattr_nid = le32_to_cpu(ri->i_xattr_nid); in do_read_inode()
83 fi->i_flags = le32_to_cpu(ri->i_flags); in do_read_inode()
84 fi->flags = 0; in do_read_inode()
85 fi->i_advise = ri->i_advise; in do_read_inode()
86 fi->i_pino = le32_to_cpu(ri->i_pino); in do_read_inode()
87 get_extent_info(&fi->ext, ri->i_ext); in do_read_inode()
Dsuper.c74 struct f2fs_inode_info *fi = (struct f2fs_inode_info *) foo; in init_once() local
76 inode_init_once(&fi->vfs_inode); in init_once()
81 struct f2fs_inode_info *fi; in f2fs_alloc_inode() local
83 fi = kmem_cache_alloc(f2fs_inode_cachep, GFP_NOFS | __GFP_ZERO); in f2fs_alloc_inode()
84 if (!fi) in f2fs_alloc_inode()
87 init_once((void *) fi); in f2fs_alloc_inode()
90 fi->vfs_inode.i_version = 1; in f2fs_alloc_inode()
91 atomic_set(&fi->dirty_dents, 0); in f2fs_alloc_inode()
92 fi->i_current_depth = 1; in f2fs_alloc_inode()
93 fi->i_advise = 0; in f2fs_alloc_inode()
[all …]
Dfile.c306 struct f2fs_inode_info *fi = F2FS_I(inode); in __setattr_copy() local
327 set_acl_inode(fi, mode); in __setattr_copy()
337 struct f2fs_inode_info *fi = F2FS_I(inode); in f2fs_setattr() local
355 if (err || is_inode_flag_set(fi, FI_ACL_MODE)) { in f2fs_setattr()
356 inode->i_mode = fi->i_acl_mode; in f2fs_setattr()
357 clear_inode_flag(fi, FI_ACL_MODE); in f2fs_setattr()
573 struct f2fs_inode_info *fi = F2FS_I(inode); in f2fs_ioctl() local
579 flags = fi->i_flags & FS_FL_USER_VISIBLE; in f2fs_ioctl()
603 oldflags = fi->i_flags; in f2fs_ioctl()
615 fi->i_flags = flags; in f2fs_ioctl()
Df2fs.h851 static inline void set_inode_flag(struct f2fs_inode_info *fi, int flag) in set_inode_flag() argument
853 set_bit(flag, &fi->flags); in set_inode_flag()
856 static inline int is_inode_flag_set(struct f2fs_inode_info *fi, int flag) in is_inode_flag_set() argument
858 return test_bit(flag, &fi->flags); in is_inode_flag_set()
861 static inline void clear_inode_flag(struct f2fs_inode_info *fi, int flag) in clear_inode_flag() argument
863 clear_bit(flag, &fi->flags); in clear_inode_flag()
866 static inline void set_acl_inode(struct f2fs_inode_info *fi, umode_t mode) in set_acl_inode() argument
868 fi->i_acl_mode = mode; in set_acl_inode()
869 set_inode_flag(fi, FI_ACL_MODE); in set_acl_inode()
872 static inline int cond_clear_inode_flag(struct f2fs_inode_info *fi, int flag) in cond_clear_inode_flag() argument
[all …]
Dacl.c211 struct f2fs_inode_info *fi = F2FS_I(inode); in f2fs_set_acl() local
229 set_acl_inode(fi, inode->i_mode); in f2fs_set_acl()
246 cond_clear_inode_flag(fi, FI_ACL_MODE); in f2fs_set_acl()
257 cond_clear_inode_flag(fi, FI_ACL_MODE); in f2fs_set_acl()
/fs/btrfs/
Dfile.c685 struct btrfs_file_extent_item *fi; in __btrfs_drop_extents() local
743 fi = btrfs_item_ptr(leaf, path->slots[0], in __btrfs_drop_extents()
745 extent_type = btrfs_file_extent_type(leaf, fi); in __btrfs_drop_extents()
749 disk_bytenr = btrfs_file_extent_disk_bytenr(leaf, fi); in __btrfs_drop_extents()
750 num_bytes = btrfs_file_extent_disk_num_bytes(leaf, fi); in __btrfs_drop_extents()
751 extent_offset = btrfs_file_extent_offset(leaf, fi); in __btrfs_drop_extents()
753 btrfs_file_extent_num_bytes(leaf, fi); in __btrfs_drop_extents()
756 btrfs_file_extent_inline_len(leaf, fi); in __btrfs_drop_extents()
795 fi = btrfs_item_ptr(leaf, path->slots[0] - 1, in __btrfs_drop_extents()
797 btrfs_set_file_extent_num_bytes(leaf, fi, in __btrfs_drop_extents()
[all …]
Dprint-tree.c167 struct btrfs_file_extent_item *fi; in btrfs_print_leaf() local
237 fi = btrfs_item_ptr(l, i, in btrfs_print_leaf()
239 if (btrfs_file_extent_type(l, fi) == in btrfs_print_leaf()
243 btrfs_file_extent_inline_len(l, fi)); in btrfs_print_leaf()
249 btrfs_file_extent_disk_bytenr(l, fi), in btrfs_print_leaf()
251 btrfs_file_extent_disk_num_bytes(l, fi)); in btrfs_print_leaf()
255 btrfs_file_extent_offset(l, fi), in btrfs_print_leaf()
257 btrfs_file_extent_num_bytes(l, fi), in btrfs_print_leaf()
259 btrfs_file_extent_ram_bytes(l, fi)); in btrfs_print_leaf()
Dbackref.c35 struct btrfs_file_extent_item *fi, in check_extent_in_eb() argument
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()
68 struct btrfs_file_extent_item *fi; in find_extent_in_eb() local
84 fi = btrfs_item_ptr(eb, slot, struct btrfs_file_extent_item); in find_extent_in_eb()
85 extent_type = btrfs_file_extent_type(eb, fi); in find_extent_in_eb()
89 disk_byte = btrfs_file_extent_disk_bytenr(eb, fi); in find_extent_in_eb()
93 ret = check_extent_in_eb(&key, eb, fi, extent_item_pos, eie); in find_extent_in_eb()
191 struct btrfs_file_extent_item *fi; in add_all_parents() local
221 fi = btrfs_item_ptr(eb, slot, struct btrfs_file_extent_item); in add_all_parents()
[all …]
Dinode.c1198 struct btrfs_file_extent_item *fi; in run_delalloc_nocow() local
1300 fi = btrfs_item_ptr(leaf, path->slots[0], in run_delalloc_nocow()
1302 extent_type = btrfs_file_extent_type(leaf, fi); in run_delalloc_nocow()
1304 ram_bytes = btrfs_file_extent_ram_bytes(leaf, fi); in run_delalloc_nocow()
1307 disk_bytenr = btrfs_file_extent_disk_bytenr(leaf, fi); in run_delalloc_nocow()
1308 extent_offset = btrfs_file_extent_offset(leaf, fi); in run_delalloc_nocow()
1310 btrfs_file_extent_num_bytes(leaf, fi); in run_delalloc_nocow()
1312 btrfs_file_extent_disk_num_bytes(leaf, fi); in run_delalloc_nocow()
1319 if (btrfs_file_extent_compression(leaf, fi) || in run_delalloc_nocow()
1320 btrfs_file_extent_encryption(leaf, fi) || in run_delalloc_nocow()
[all …]
Dtree-log.c3272 struct btrfs_file_extent_item *fi; in log_one_extent() local
3299 ret = btrfs_insert_empty_item(trans, log, path, &key, sizeof(*fi)); in log_one_extent()
3303 fi = btrfs_item_ptr(leaf, path->slots[0], in log_one_extent()
3306 btrfs_set_token_file_extent_generation(leaf, fi, em->generation, in log_one_extent()
3310 btrfs_set_token_file_extent_type(leaf, fi, in log_one_extent()
3314 btrfs_set_token_file_extent_type(leaf, fi, in log_one_extent()
3323 btrfs_set_token_file_extent_disk_bytenr(leaf, fi, in log_one_extent()
3326 btrfs_set_token_file_extent_disk_num_bytes(leaf, fi, block_len, in log_one_extent()
3329 btrfs_set_token_file_extent_disk_bytenr(leaf, fi, in log_one_extent()
3332 btrfs_set_token_file_extent_disk_num_bytes(leaf, fi, block_len, in log_one_extent()
[all …]
Drelocation.c1511 struct btrfs_file_extent_item *fi; local
1530 fi = btrfs_item_ptr(leaf, path->slots[0],
1533 BUG_ON(btrfs_file_extent_offset(leaf, fi) ||
1534 btrfs_file_extent_compression(leaf, fi) ||
1535 btrfs_file_extent_encryption(leaf, fi) ||
1536 btrfs_file_extent_other_encoding(leaf, fi));
1538 if (num_bytes != btrfs_file_extent_disk_num_bytes(leaf, fi)) {
1543 *new_bytenr = btrfs_file_extent_disk_bytenr(leaf, fi);
1561 struct btrfs_file_extent_item *fi; local
1589 fi = btrfs_item_ptr(leaf, i, struct btrfs_file_extent_item);
[all …]
Dctree.c4132 struct btrfs_file_extent_item *fi; in setup_leaf_for_split() local
4148 fi = btrfs_item_ptr(leaf, path->slots[0], in setup_leaf_for_split()
4150 extent_len = btrfs_file_extent_num_bytes(leaf, fi); in setup_leaf_for_split()
4172 fi = btrfs_item_ptr(leaf, path->slots[0], in setup_leaf_for_split()
4174 if (extent_len != btrfs_file_extent_num_bytes(leaf, fi)) in setup_leaf_for_split()
4394 struct btrfs_file_extent_item *fi; in btrfs_truncate_item() local
4396 fi = btrfs_item_ptr(leaf, slot, in btrfs_truncate_item()
4398 fi = (struct btrfs_file_extent_item *)( in btrfs_truncate_item()
4399 (unsigned long)fi - size_diff); in btrfs_truncate_item()
4401 if (btrfs_file_extent_type(leaf, fi) == in btrfs_truncate_item()
[all …]
/fs/fuse/
Dinode.c82 struct fuse_inode *fi; in fuse_alloc_inode() local
88 fi = get_fuse_inode(inode); in fuse_alloc_inode()
89 fi->i_time = 0; in fuse_alloc_inode()
90 fi->nodeid = 0; in fuse_alloc_inode()
91 fi->nlookup = 0; in fuse_alloc_inode()
92 fi->attr_version = 0; in fuse_alloc_inode()
93 fi->writectr = 0; in fuse_alloc_inode()
94 fi->orig_ino = 0; in fuse_alloc_inode()
95 fi->state = 0; in fuse_alloc_inode()
96 INIT_LIST_HEAD(&fi->write_files); in fuse_alloc_inode()
[all …]
Ddir.c20 struct fuse_inode *fi = get_fuse_inode(dir); in fuse_use_readdirplus() local
26 if (test_and_clear_bit(FUSE_I_ADVISE_RDPLUS, &fi->state)) in fuse_use_readdirplus()
35 struct fuse_inode *fi = get_fuse_inode(dir); in fuse_advise_use_readdirplus() local
37 set_bit(FUSE_I_ADVISE_RDPLUS, &fi->state); in fuse_advise_use_readdirplus()
227 struct fuse_inode *fi = get_fuse_inode(inode); in fuse_dentry_revalidate() local
233 fi->nlookup++; in fuse_dentry_revalidate()
757 struct fuse_inode *fi = get_fuse_inode(inode); in fuse_unlink() local
760 fi->attr_version = ++fc->attr_version; in fuse_unlink()
882 struct fuse_inode *fi = get_fuse_inode(inode); in fuse_link() local
885 fi->attr_version = ++fc->attr_version; in fuse_link()
[all …]
Dfile.c186 struct fuse_inode *fi = get_fuse_inode(inode); in fuse_finish_open() local
189 fi->attr_version = ++fc->attr_version; in fuse_finish_open()
327 struct fuse_inode *fi = get_fuse_inode(inode); in fuse_page_is_writeback() local
332 list_for_each_entry(req, &fi->writepages, writepages_entry) { in fuse_page_is_writeback()
355 struct fuse_inode *fi = get_fuse_inode(inode); in fuse_wait_on_page_writeback() local
357 wait_event(fi->page_waitq, !fuse_page_is_writeback(inode, index)); in fuse_wait_on_page_writeback()
554 struct fuse_inode *fi = get_fuse_inode(inode); in fuse_aio_complete() local
557 fi->attr_version = ++fc->attr_version; in fuse_aio_complete()
630 struct fuse_inode *fi = get_fuse_inode(inode); in fuse_read_update_size() local
633 if (attr_ver == fi->attr_version && size < inode->i_size) { in fuse_read_update_size()
[all …]
/fs/ocfs2/
Dioctl.c323 struct ocfs2_info_freeinode *fi, u32 slot) in ocfs2_info_scan_inode_alloc() argument
333 if (o2info_coherent(&fi->ifi_req)) { in ocfs2_info_scan_inode_alloc()
350 fi->ifi_stat[slot].lfi_total = in ocfs2_info_scan_inode_alloc()
352 fi->ifi_stat[slot].lfi_free = in ocfs2_info_scan_inode_alloc()
/fs/xfs/
Dxfs_dir2_node.c567 int fi; /* free entry index */ in xfs_dir2_leafn_lookup_for_addname() local
660 fi = xfs_dir2_db_to_fdindex(mp, curdb); in xfs_dir2_leafn_lookup_for_addname()
665 if (unlikely(bests[fi] == cpu_to_be16(NULLDATAOFF))) { in xfs_dir2_leafn_lookup_for_addname()
673 if (be16_to_cpu(bests[fi]) >= length) in xfs_dir2_leafn_lookup_for_addname()
678 fi = -1; in xfs_dir2_leafn_lookup_for_addname()
685 state->extrablk.index = fi; in xfs_dir2_leafn_lookup_for_addname()

12