| /linux/fs/xfs/scrub/ |
| H A D | parent.c | 153 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 D | orphanage.c | 58 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 D | parent_repair.c | 445 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 D | dir_repair.c | 428 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 D | inode_repair.c | 418 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 D | dirtree.c | 415 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 D | nlinks.c | 434 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()
|
| H A D | bmap_repair.c | 880 switch (VFS_I(sc->ip)->i_mode & S_IFMT) { in xrep_bmap_check_inputs() 908 if (!S_ISREG(VFS_I(sc->ip)->i_mode)) in xrep_bmap_init_reflink_scan()
|
| /linux/fs/xfs/libxfs/ |
| H A D | xfs_dir2.c | 206 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 D | xfs_metafile.c | 53 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()
|
| H A D | xfs_inode_buf.c | 182 struct inode *inode = VFS_I(ip); in xfs_inode_from_disk() 326 struct inode *inode = VFS_I(ip); in xfs_inode_to_disk()
|
| /linux/fs/xfs/ |
| H A D | xfs_icache.c | 99 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 D | xfs_inode.h | 176 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 D | xfs_health.c | 330 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 D | xfs_ioctl.c | 544 if (IS_DAX(VFS_I(ip)) && in xfs_ioctl_setattr_xflags() 572 if (rtflag != XFS_IS_REALTIME_INODE(ip) && S_ISREG(VFS_I(ip)->i_mode)) in xfs_ioctl_setattr_xflags() 587 struct inode *inode = VFS_I(ip); in xfs_ioctl_setattr_prepare_dax() 653 if (S_ISREG(VFS_I(ip)->i_mode) && xfs_inode_has_filedata(ip) && in xfs_ioctl_setattr_check_extsize() 679 VFS_I(ip)->i_mode, new_diflags); in xfs_ioctl_setattr_check_extsize() 704 VFS_I(ip)->i_mode, new_diflags, new_diflags2); in xfs_ioctl_setattr_check_cowextsize() 758 error = xfs_qm_vop_dqalloc(ip, VFS_I(ip)->i_uid, in xfs_fileattr_set() 759 VFS_I(ip)->i_gid, fa->fsx_projid, in xfs_fileattr_set() 795 if ((VFS_I(ip)->i_mode & (S_ISUID|S_ISGID)) && in xfs_fileattr_set() 796 !capable_wrt_inode_uidgid(idmap, VFS_I(ip), CAP_FSETID)) in xfs_fileattr_set() [all …]
|
| H A D | xfs_notify_failure.c | 107 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 D | xfs_zone_alloc.c | 634 return VFS_I(ip)->i_write_hint; in xfs_inode_write_hint() 654 if (i_size_read(VFS_I(ip)) >= zone_capacity) in xfs_zoned_pack_tight() 657 return !inode_is_open_for_write(VFS_I(ip)) && in xfs_zoned_pack_tight() 791 oz = VFS_I(ip)->i_private; in xfs_get_cached_zone() 826 old_oz = xchg(&VFS_I(ip)->i_private, oz); in xfs_set_cached_zone()
|
| H A D | xfs_reflink.h | 18 struct inode *inode = VFS_I(ip); in xfs_can_free_cowblocks()
|
| H A D | xfs_zone_gc.c | 400 if (!S_ISREG(VFS_I(*ipp)->i_mode) || !XFS_IS_REALTIME_INODE(*ipp)) { in xfs_zone_gc_iter_next() 778 ihold(VFS_I(chunk->ip)); in xfs_zone_gc_split_write() 859 error = xfs_break_layouts(VFS_I(ip), &iolock, BREAK_UNMAP); in xfs_zone_gc_finish_chunk() 861 inode_dio_wait(VFS_I(ip)); in xfs_zone_gc_finish_chunk()
|
| H A D | xfs_file.c | 405 isize = i_size_read(VFS_I(ip)); in xfs_file_write_zero_eof() 435 inode_dio_wait(VFS_I(ip)); in xfs_file_write_zero_eof() 857 size_t isize = i_size_read(VFS_I(ip)); in xfs_file_dio_write_unaligned() 901 inode_dio_wait(VFS_I(ip)); in xfs_file_dio_write_unaligned()
|
| H A D | xfs_filestream.c | 173 struct inode *inode = VFS_I(ip), *dir = NULL; in xfs_filestream_get_parent()
|
| H A D | xfs_rtalloc.c | 997 i_size_write(VFS_I(rbmip), rbmip->i_disk_size); in xfs_growfs_rt_bmblock() 1006 i_size_write(VFS_I(rsumip), rsumip->i_disk_size); in xfs_growfs_rt_bmblock() 1760 ts = inode_get_atime(VFS_I(rbmip)); in xfs_rtpick_extent() 1778 inode_set_atime_to_ts(VFS_I(rbmip), ts); in xfs_rtpick_extent()
|
| H A D | xfs_verify_media.c | 79 fserror_report_data_lost(VFS_I(ip), XFS_FSB_TO_B(mp, fileoff), in xfs_verify_report_data_lost()
|
| H A D | xfs_healthmon.c | 537 .gen = VFS_I(ip)->i_generation, in xfs_healthmon_report_inode() 650 .fgen = VFS_I(ip)->i_generation, in xfs_healthmon_report_file_ioerror()
|
| H A D | xfs_attr_item.c | 390 attrp->alfi_igen = VFS_I(args->dp)->i_generation; in xfs_attr_log_item() 396 attrp->alfi_igen = VFS_I(args->dp)->i_generation; in xfs_attr_log_item()
|