Home
last modified time | relevance | path

Searched refs:VFS_I (Results 1 – 25 of 52) sorted by relevance

123

/linux/fs/xfs/
H A Dxfs_inode.c149 down_write_nested(&VFS_I(ip)->i_rwsem, in xfs_ilock()
152 down_read_nested(&VFS_I(ip)->i_rwsem, in xfs_ilock()
157 down_write_nested(&VFS_I(ip)->i_mapping->invalidate_lock, in xfs_ilock()
160 down_read_nested(&VFS_I(ip)->i_mapping->invalidate_lock, in xfs_ilock()
192 if (!down_write_trylock(&VFS_I(ip)->i_rwsem)) in xfs_ilock_nowait()
195 if (!down_read_trylock(&VFS_I(ip)->i_rwsem)) in xfs_ilock_nowait()
200 if (!down_write_trylock(&VFS_I(ip)->i_mapping->invalidate_lock)) in xfs_ilock_nowait()
203 if (!down_read_trylock(&VFS_I(ip)->i_mapping->invalidate_lock)) in xfs_ilock_nowait()
218 up_write(&VFS_I(ip)->i_mapping->invalidate_lock); in xfs_ilock_nowait()
220 up_read(&VFS_I(ip)->i_mapping->invalidate_lock); in xfs_ilock_nowait()
[all …]
H A Dxfs_icache.c99 if (inode_init_always(mp->m_super, VFS_I(ip))) { in xfs_inode_alloc()
105 VFS_I(ip)->i_mode = 0; in xfs_inode_alloc()
106 mapping_set_folio_min_order(VFS_I(ip)->i_mapping, in xfs_inode_alloc()
144 switch (VFS_I(ip)->i_mode & S_IFMT) { in xfs_inode_free_callback()
179 call_rcu(&VFS_I(ip)->i_rcu, xfs_inode_free_callback); in __xfs_inode_free()
366 struct inode *inode = VFS_I(ip); in xfs_iget_recycle()
426 if (VFS_I(ip)->i_mode != 0) { in xfs_iget_check_free_state()
429 ip->i_ino, VFS_I(ip)->i_mode); in xfs_iget_check_free_state()
449 if (VFS_I(ip)->i_mode == 0) in xfs_iget_check_free_state()
507 struct inode *inode = VFS_I(ip); in xfs_iget_cache_hit()
[all …]
H A Dxfs_inode.h176 static inline struct inode *VFS_I(struct xfs_inode *ip) in VFS_I() function
194 if (S_ISREG(VFS_I(ip)->i_mode)) in XFS_ISIZE()
195 return i_size_read(VFS_I(ip)); in XFS_ISIZE()
206 xfs_fsize_t i_size = i_size_read(VFS_I(ip)); in xfs_new_eof()
554 (xfs_has_grpid((pip)->i_mount) || (VFS_I(pip)->i_mode & S_ISGID))
614 mapping_set_stable_writes(VFS_I(ip)->i_mapping); in xfs_update_stable_writes()
616 mapping_clear_stable_writes(VFS_I(ip)->i_mapping); in xfs_update_stable_writes()
630 unlock_new_inode(VFS_I(ip)); in xfs_finish_inode_setup()
H A Dxfs_health.c330 fserror_report_file_metadata(VFS_I(ip), -EFSCORRUPTED, GFP_NOFS); in xfs_inode_report_fserror()
354 spin_lock(&VFS_I(ip)->i_lock); in xfs_inode_mark_sick()
355 inode_state_clear(VFS_I(ip), I_DONTCACHE); in xfs_inode_mark_sick()
356 spin_unlock(&VFS_I(ip)->i_lock); in xfs_inode_mark_sick()
386 spin_lock(&VFS_I(ip)->i_lock); in xfs_inode_mark_corrupt()
387 inode_state_clear(VFS_I(ip), I_DONTCACHE); in xfs_inode_mark_corrupt()
388 spin_unlock(&VFS_I(ip)->i_lock); in xfs_inode_mark_corrupt()
H A Dxfs_notify_failure.c107 mapping = VFS_I(ip)->i_mapping; in xfs_dax_failure_fn()
121 fserror_report_data_lost(VFS_I(ip), (u64)pgoff << PAGE_SHIFT, in xfs_dax_failure_fn()
H A Dxfs_reflink.h18 struct inode *inode = VFS_I(ip); in xfs_can_free_cowblocks()
H A Dxfs_zone_alloc.c636 return VFS_I(ip)->i_write_hint; in xfs_inode_write_hint()
656 if (i_size_read(VFS_I(ip)) >= zone_capacity) in xfs_zoned_pack_tight()
659 return !inode_is_open_for_write(VFS_I(ip)) && in xfs_zoned_pack_tight()
794 oz = VFS_I(ip)->i_private; in xfs_get_cached_zone()
829 old_oz = xchg(&VFS_I(ip)->i_private, oz); in xfs_set_cached_zone()
H A Dxfs_trace.h134 __entry->dev = VFS_I(ctx->dp)->i_sb->s_dev;
636 __entry->dev = VFS_I(ctx->dp)->i_sb->s_dev;
690 __entry->dev = VFS_I(ip)->i_sb->s_dev;
1023 __entry->dev = VFS_I(ip)->i_sb->s_dev;
1054 __entry->dev = VFS_I(ip)->i_sb->s_dev;
1130 __entry->dev = VFS_I(ip)->i_sb->s_dev;
1159 __entry->dev = VFS_I(ip)->i_sb->s_dev;
1161 __entry->count = icount_read(VFS_I(ip));
1187 __entry->dev = VFS_I(ip)->i_sb->s_dev;
1274 __entry->dev = VFS_I(dp)->i_sb->s_dev;
[all …]
H A Dxfs_zone_gc.c410 if (!S_ISREG(VFS_I(*ipp)->i_mode) || !XFS_IS_REALTIME_INODE(*ipp)) { in xfs_zone_gc_iter_irec()
816 ihold(VFS_I(chunk->ip)); in xfs_zone_gc_split_write()
897 error = xfs_break_layouts(VFS_I(ip), &iolock, BREAK_UNMAP); in xfs_zone_gc_finish_chunk()
899 inode_dio_wait(VFS_I(ip)); in xfs_zone_gc_finish_chunk()
H A Dxfs_inode_item.c107 struct inode *inode = VFS_I(ip); in xfs_inode_item_precommit()
407 ilf->ilf_u.ilfu_rdev = sysv_encode_dev(VFS_I(ip)->i_rdev); in xfs_inode_item_format_data_fork()
556 struct inode *inode = VFS_I(ip); in xfs_inode_to_log_dinode()
/linux/fs/xfs/scrub/
H A Dparent.c153 expected_nlink = VFS_I(sc->ip)->i_nlink == 0 ? 0 : 1; in xchk_parent_validate()
173 !S_ISDIR(VFS_I(dp)->i_mode)) { in xchk_parent_validate()
327 if (VFS_I(sc->ip)->i_nlink == 0) in xchk_parent_pptr_and_dotdot()
437 if (!S_ISDIR(VFS_I(ip)->i_mode)) { in xchk_parent_iget()
443 if (VFS_I(ip)->i_generation != be32_to_cpu(pptr->p_gen)) { in xchk_parent_iget()
727 if (S_ISDIR(VFS_I(sc->ip)->i_mode)) { in xchk_parent_count_pptrs()
731 if (VFS_I(sc->ip)->i_nlink == 0 && pp->pptrs_found > 0) in xchk_parent_count_pptrs()
733 else if (VFS_I(sc->ip)->i_nlink > 0 && in xchk_parent_count_pptrs()
745 if (VFS_I(sc->ip)->i_nlink != pp->pptrs_found) in xchk_parent_count_pptrs()
812 if (S_ISDIR(VFS_I(sc->ip)->i_mode)) { in xchk_parent_pptr()
[all …]
H A Dorphanage.c58 struct inode *inode = VFS_I(dp); in xrep_chown_orphanage()
127 struct inode *root_inode = VFS_I(sc->mp->m_rootip); in xrep_orphanage_create()
331 if (S_ISDIR(VFS_I(sc->ip)->i_mode)) in xrep_adoption_trans_alloc()
406 xname->type = xfs_mode_to_ftype(VFS_I(sc->ip)->i_mode); in xrep_adoption_compute_name()
440 d_orphanage = d_find_alias(VFS_I(sc->orphanage)); in xrep_adoption_check_dcache()
482 d_orphanage = d_find_alias(VFS_I(sc->orphanage)); in xrep_adoption_zap_dcache()
499 while ((d_child = d_find_alias(VFS_I(sc->ip))) != NULL) { in xrep_adoption_zap_dcache()
531 bool isdir = S_ISDIR(VFS_I(sc->ip)->i_mode); in xrep_adoption_move()
H A Dparent_repair.c445 if (name->type != xfs_mode_to_ftype(VFS_I(sc->ip)->i_mode)) in xrep_parent_scan_dirent()
492 if (S_ISDIR(VFS_I(ip)->i_mode) && xfs_need_iread_extents(&ip->i_df)) { in xrep_parent_scan_ilock()
519 if (S_ISDIR(VFS_I(ip)->i_mode)) { in xrep_parent_scan_file()
777 if (S_ISDIR(VFS_I(sc->ip)->i_mode)) { in xrep_parent_move_to_orphanage()
832 if (S_ISDIR(VFS_I(sc->ip)->i_mode)) in xrep_parent_move_to_orphanage()
844 if (orig_parent == new_parent && VFS_I(sc->ip)->i_nlink > 0) { in xrep_parent_move_to_orphanage()
1384 if (S_ISDIR(VFS_I(sc->ip)->i_mode)) in xrep_parent_rebuild_tree()
1478 if (VFS_I(ip)->i_nlink != rp->parents) { in xrep_parent_set_nondir_nlink()
1484 set_nlink(VFS_I(ip), min_t(unsigned long long, rp->parents, in xrep_parent_set_nondir_nlink()
1611 if (xfs_has_parent(sc->mp) && !S_ISDIR(VFS_I(sc->ip)->i_mode)) { in xrep_parent()
H A Ddir_repair.c428 xname.type = xfs_mode_to_ftype(VFS_I(ip)->i_mode); in xrep_dir_salvage_entry()
702 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xrep_dir_replay_createname()
726 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xrep_dir_replay_removename()
1109 .type = xfs_mode_to_ftype(VFS_I(ip)->i_mode), in xrep_dir_scan_pptr()
1129 parent_gen != VFS_I(sc->ip)->i_generation) in xrep_dir_scan_pptr()
1206 if (S_ISDIR(VFS_I(ip)->i_mode) && xfs_need_iread_extents(&ip->i_df)) { in xrep_dir_scan_ilock()
1249 if (S_ISDIR(VFS_I(ip)->i_mode)) { in xrep_dir_scan_file()
1524 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xrep_dir_replace()
1591 if (VFS_I(dp)->i_nlink != new_nlink) in xrep_dir_set_nlink()
1592 set_nlink(VFS_I(dp), new_nlink); in xrep_dir_set_nlink()
[all …]
H A Dinode_repair.c418 if (S_ISDIR(VFS_I(dp)->i_mode)) in xrep_dinode_find_mode()
1725 if (!uid_valid(VFS_I(sc->ip)->i_uid)) { in xrep_inode_ids()
1726 i_uid_write(VFS_I(sc->ip), 0); in xrep_inode_ids()
1732 if (!gid_valid(VFS_I(sc->ip)->i_gid)) { in xrep_inode_ids()
1733 i_gid_write(VFS_I(sc->ip), 0); in xrep_inode_ids()
1748 VFS_I(sc->ip)->i_mode &= ~(S_ISUID | S_ISGID); in xrep_inode_ids()
1757 *ts = timestamp_truncate(*ts, VFS_I(ip)); in xrep_clamp_timestamp()
1766 struct inode *inode = VFS_I(ip); in xrep_inode_timestamps()
1792 mode = VFS_I(sc->ip)->i_mode; in xrep_inode_flags()
1927 struct inode *inode = VFS_I(ip); in xrep_inode_pptr()
[all …]
H A Ddirtree.c415 if (VFS_I(dp)->i_generation != be32_to_cpu(dl->pptr_rec.p_gen)) { in xchk_dirpath_step_up()
423 if (!S_ISDIR(VFS_I(dp)->i_mode)) { in xchk_dirpath_step_up()
431 if (VFS_I(dp)->i_nlink == 0) { in xchk_dirpath_step_up()
920 if (!S_ISDIR(VFS_I(sc->ip)->i_mode)) in xchk_dirtree()
1005 if (VFS_I(sc->ip)->i_nlink == 0) in xchk_dirtree_parentless()
H A Dnlinks.c434 if (VFS_I(dp)->i_nlink == 0) in xchk_nlinks_collect_dir()
589 if (S_ISDIR(VFS_I(ip)->i_mode)) in xchk_nlinks_collect()
707 if (!xfs_has_ftype(sc->mp) && S_ISDIR(VFS_I(ip)->i_mode)) in xchk_nlinks_compare_inode()
711 actual_nlink = VFS_I(ip)->i_nlink; in xchk_nlinks_compare_inode()
733 if (S_ISDIR(VFS_I(ip)->i_mode) && actual_nlink > 0) { in xchk_nlinks_compare_inode()
/linux/fs/xfs/libxfs/
H A Dxfs_dir2.c206 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_isempty()
246 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_init()
335 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_createname()
437 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_lookup()
502 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_removename()
559 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_replace()
867 if (S_ISDIR(VFS_I(ip)->i_mode)) { in xfs_dir_create_child()
908 ASSERT(!S_ISDIR(VFS_I(ip)->i_mode)); in xfs_dir_add_child()
919 if (VFS_I(ip)->i_nlink == 0) { in xfs_dir_add_child()
975 if (S_ISDIR(VFS_I(ip)->i_mode)) { in xfs_dir_remove_child()
[all …]
H A Dxfs_metafile.c53 VFS_I(ip)->i_mode &= ~0777; in xfs_metafile_set_iflag()
54 VFS_I(ip)->i_uid = GLOBAL_ROOT_UID; in xfs_metafile_set_iflag()
55 VFS_I(ip)->i_gid = GLOBAL_ROOT_GID; in xfs_metafile_set_iflag()
56 if (S_ISDIR(VFS_I(ip)->i_mode)) in xfs_metafile_set_iflag()
76 ASSERT(VFS_I(ip)->i_nlink == 0); in xfs_metafile_clear_iflag()
/linux/fs/ntfs/
H A Dreparse.c340 rp_inode = ntfs_attr_iget(VFS_I(ni), AT_REPARSE_POINT, AT_UNNAMED, 0); in update_reparse_data()
393 vi = ntfs_attr_iget(VFS_I(ni), AT_REPARSE_POINT, AT_UNNAMED, 0); in ntfs_delete_reparse_index()
409 iput(VFS_I(xrni)); in ntfs_delete_reparse_index()
415 iput(VFS_I(xrni)); in ntfs_delete_reparse_index()
490 iput(VFS_I(xrni)); in ntfs_set_ntfs_reparse_data()
H A Dnamei.c769 d_instantiate_new(dentry, VFS_I(ni)); in ntfs_create()
948 if (!S_ISDIR(VFS_I(ni)->i_mode)) in ntfs_delete()
949 drop_nlink(VFS_I(ni)); in ntfs_delete()
963 if (S_ISDIR(VFS_I(ni)->i_mode) && !le16_to_cpu(ni_mrec->link_count)) in ntfs_delete()
964 drop_nlink(VFS_I(ni)); in ntfs_delete()
1090 d_instantiate_new(dentry, VFS_I(ni)); in ntfs_mkdir()
1151 struct inode *vi = VFS_I(ni); in __ntfs_link()
1233 inc_nlink(VFS_I(ni)); in __ntfs_link()
1457 vi = VFS_I(ni); in ntfs_symlink()
1511 d_instantiate_new(dentry, VFS_I(ni)); in ntfs_mknod()
H A Dattrib.c857 attr_vi = ntfs_attr_iget(VFS_I(base_ni), AT_ATTRIBUTE_LIST, AT_UNNAMED, 0); in load_attribute_list()
1768 struct inode *vi = VFS_I(ni); in ntfs_attr_make_non_resident()
2103 struct address_space *mapping = VFS_I(ni)->i_mapping; in ntfs_attr_set()
2116 ntfs_error(VFS_I(ni)->i_sb, "Failed to read a page %lu for attr %#x: %ld", in ntfs_attr_set()
2574 na.mft_no = VFS_I(base_ni)->i_ino; in ntfs_attr_record_rm()
2579 attr_vi = ilookup5(VFS_I(base_ni)->i_sb, VFS_I(base_ni)->i_ino, in ntfs_attr_record_rm()
2784 attr_vi = ntfs_attr_iget(VFS_I(ni), type, name, name_len); in ntfs_attr_add()
3510 VFS_I(base_ni)->i_blocks = ni->itype.compressed.size >> 9; in ntfs_attr_update_meta()
3512 VFS_I(base_ni)->i_blocks = ni->allocated_size >> 9; in ntfs_attr_update_meta()
4114 VFS_I(base_ni)->i_blocks = ni->itype.compressed.size >> 9; in ntfs_non_resident_attr_shrink()
[all …]
H A Dfile.c807 struct inode *vi = VFS_I(ni); in ntfs_allocate_range()
848 struct inode *vi = VFS_I(ni); in ntfs_punch_hole()
922 struct inode *vi = VFS_I(ni); in ntfs_collapse_range()
968 struct inode *vi = VFS_I(ni); in ntfs_insert_range()
H A Dindex.c141 ret = ntfs_inode_attr_pwrite(VFS_I(icx->ia_ni), in ntfs_ib_write()
237 iput(VFS_I(icx->ia_ni)); in ntfs_index_ctx_free()
642 ia_vi = ntfs_index_iget(VFS_I(ni), icx->name, icx->name_len); in ntfs_ia_open()
661 ret = ntfs_inode_attr_pread(VFS_I(icx->ia_ni), pos, icx->block_size, (u8 *)dst); in ntfs_ib_read()
952 bmp_vi = ntfs_attr_iget(VFS_I(icx->idx_ni), AT_BITMAP, icx->name, icx->name_len); in ntfs_ibm_modify()
1292 i_size_write(VFS_I(icx->idx_ni), icx->idx_ni->initialized_size); in ntfs_ir_truncate()
H A Daops.c154 i_size = i_size_read(VFS_I(ni)); in ntfs_bmap()

123