/fs/xfs/ |
D | xfs_inode.c | 195 down_write_nested(&VFS_I(ip)->i_rwsem, in xfs_ilock() 198 down_read_nested(&VFS_I(ip)->i_rwsem, in xfs_ilock() 203 down_write_nested(&VFS_I(ip)->i_mapping->invalidate_lock, in xfs_ilock() 206 down_read_nested(&VFS_I(ip)->i_mapping->invalidate_lock, in xfs_ilock() 238 if (!down_write_trylock(&VFS_I(ip)->i_rwsem)) in xfs_ilock_nowait() 241 if (!down_read_trylock(&VFS_I(ip)->i_rwsem)) in xfs_ilock_nowait() 246 if (!down_write_trylock(&VFS_I(ip)->i_mapping->invalidate_lock)) in xfs_ilock_nowait() 249 if (!down_read_trylock(&VFS_I(ip)->i_mapping->invalidate_lock)) in xfs_ilock_nowait() 264 up_write(&VFS_I(ip)->i_mapping->invalidate_lock); in xfs_ilock_nowait() 266 up_read(&VFS_I(ip)->i_mapping->invalidate_lock); in xfs_ilock_nowait() [all …]
|
D | xfs_bmap_util.c | 466 error = filemap_write_and_wait(VFS_I(ip)->i_mapping); in xfs_getbmap() 659 (VFS_I(ip)->i_state & I_FREEING)); in xfs_can_free_eofblocks() 662 if (!S_ISREG(VFS_I(ip)->i_mode)) in xfs_can_free_eofblocks() 669 if (VFS_I(ip)->i_size == 0 && in xfs_can_free_eofblocks() 670 VFS_I(ip)->i_mapping->nrpages == 0 && in xfs_can_free_eofblocks() 735 inode_dio_wait(VFS_I(ip)); in xfs_free_eofblocks() 954 struct inode *inode = VFS_I(ip); in xfs_flush_unmap_range() 1033 error = filemap_write_and_wait_range(VFS_I(ip)->i_mapping, in xfs_free_file_space() 1275 (!uid_eq(VFS_I(ip)->i_uid, VFS_I(tip)->i_uid) || in xfs_swap_extents_check_format() 1276 !gid_eq(VFS_I(ip)->i_gid, VFS_I(tip)->i_gid) || in xfs_swap_extents_check_format() [all …]
|
D | xfs_icache.c | 83 if (inode_init_always(mp->m_super, VFS_I(ip))) { in xfs_inode_alloc() 89 VFS_I(ip)->i_mode = 0; in xfs_inode_alloc() 90 VFS_I(ip)->i_state = 0; in xfs_inode_alloc() 91 mapping_set_large_folios(VFS_I(ip)->i_mapping); in xfs_inode_alloc() 128 switch (VFS_I(ip)->i_mode & S_IFMT) { in xfs_inode_free_callback() 161 call_rcu(&VFS_I(ip)->i_rcu, xfs_inode_free_callback); in __xfs_inode_free() 340 struct inode *inode = VFS_I(ip); in xfs_iget_recycle() 414 if (VFS_I(ip)->i_mode != 0) { in xfs_iget_check_free_state() 417 ip->i_ino, VFS_I(ip)->i_mode); in xfs_iget_check_free_state() 431 if (VFS_I(ip)->i_mode == 0) in xfs_iget_check_free_state() [all …]
|
D | xfs_inode.h | 169 static inline struct inode *VFS_I(struct xfs_inode *ip) in VFS_I() function 181 if (S_ISREG(VFS_I(ip)->i_mode)) in XFS_ISIZE() 182 return i_size_read(VFS_I(ip)); in XFS_ISIZE() 193 xfs_fsize_t i_size = i_size_read(VFS_I(ip)); in xfs_new_eof() 499 (xfs_has_grpid((pip)->i_mount) || (VFS_I(pip)->i_mode & S_ISGID)) 575 mapping_set_stable_writes(VFS_I(ip)->i_mapping); in xfs_update_stable_writes() 577 mapping_clear_stable_writes(VFS_I(ip)->i_mapping); in xfs_update_stable_writes() 591 unlock_new_inode(VFS_I(ip)); in xfs_finish_inode_setup() 620 return VFS_I(ip)->i_nlink == 0 && !xfs_inode_on_unlinked_list(ip); in xfs_inode_unlinked_incomplete()
|
D | xfs_export.c | 163 if (VFS_I(ip)->i_generation != generation) { in xfs_nfs_get_inode() 168 return VFS_I(ip); in xfs_nfs_get_inode() 230 return d_obtain_alias(VFS_I(cip)); in xfs_fs_get_parent()
|
D | xfs_iops.c | 208 inode = VFS_I(ip); in xfs_generic_create() 305 inode = VFS_I(cip); in xfs_vn_lookup() 343 return d_splice_alias(VFS_I(ip), dentry); in xfs_vn_ci_lookup() 348 dentry = d_add_ci(dentry, VFS_I(ip), &dname); in xfs_vn_ci_lookup() 423 inode = VFS_I(cip); in xfs_vn_symlink() 663 struct inode *inode = VFS_I(ip); in xfs_setattr_nonsize() 792 struct inode *inode = VFS_I(ip); in xfs_setattr_size() 898 error = filemap_write_and_wait_range(VFS_I(ip)->i_mapping, in xfs_setattr_size() 1196 if (!S_ISREG(VFS_I(ip)->i_mode)) in xfs_inode_supports_dax() 1229 struct inode *inode = VFS_I(ip); in xfs_diflags_to_iflags()
|
D | xfs_pnfs.c | 97 VFS_I(ip)->i_mode &= ~S_ISUID; in xfs_fs_map_update_inode() 98 if (VFS_I(ip)->i_mode & S_IXGRP) in xfs_fs_map_update_inode() 99 VFS_I(ip)->i_mode &= ~S_ISGID; in xfs_fs_map_update_inode()
|
D | xfs_health.c | 238 spin_lock(&VFS_I(ip)->i_lock); in xfs_inode_mark_sick() 239 VFS_I(ip)->i_state &= ~I_DONTCACHE; in xfs_inode_mark_sick() 240 spin_unlock(&VFS_I(ip)->i_lock); in xfs_inode_mark_sick()
|
D | xfs_ioctl.c | 1079 if (S_ISDIR(VFS_I(ip)->i_mode)) { in xfs_flags2diflags() 1088 } else if (S_ISREG(VFS_I(ip)->i_mode)) { in xfs_flags2diflags() 1157 if (rtflag != XFS_IS_REALTIME_INODE(ip) && S_ISREG(VFS_I(ip)->i_mode)) in xfs_ioctl_setattr_xflags() 1172 struct inode *inode = VFS_I(ip); in xfs_ioctl_setattr_prepare_dax() 1238 if (S_ISREG(VFS_I(ip)->i_mode) && ip->i_df.if_nextents && in xfs_ioctl_setattr_check_extsize() 1264 VFS_I(ip)->i_mode, new_diflags); in xfs_ioctl_setattr_check_extsize() 1289 VFS_I(ip)->i_mode, new_diflags, new_diflags2); in xfs_ioctl_setattr_check_cowextsize() 1346 error = xfs_qm_vop_dqalloc(ip, VFS_I(ip)->i_uid, in xfs_fileattr_set() 1347 VFS_I(ip)->i_gid, fa->fsx_projid, in xfs_fileattr_set() 1383 if ((VFS_I(ip)->i_mode & (S_ISUID|S_ISGID)) && in xfs_fileattr_set() [all …]
|
D | xfs_reflink.c | 1089 if (newlen <= i_size_read(VFS_I(dest)) && cowextsize == 0) in xfs_reflink_update_dest() 1099 if (newlen > i_size_read(VFS_I(dest))) { in xfs_reflink_update_dest() 1101 i_size_write(VFS_I(dest), newlen); in xfs_reflink_update_dest() 1328 if (newlen > i_size_read(VFS_I(ip))) { in xfs_reflink_remap_extent() 1330 i_size_write(VFS_I(ip), newlen); in xfs_reflink_remap_extent() 1435 loff_t isize = i_size_read(VFS_I(ip)); in xfs_reflink_zero_posteof() 1692 struct inode *inode = VFS_I(ip); in xfs_reflink_unshare()
|
D | xfs_trace.h | 104 __entry->dev = VFS_I(ctx->dp)->i_sb->s_dev; 328 __entry->dev = VFS_I(ctx->dp)->i_sb->s_dev; 382 __entry->dev = VFS_I(ip)->i_sb->s_dev; 715 __entry->dev = VFS_I(ip)->i_sb->s_dev; 746 __entry->dev = VFS_I(ip)->i_sb->s_dev; 821 __entry->dev = VFS_I(ip)->i_sb->s_dev; 844 __entry->dev = VFS_I(ip)->i_sb->s_dev; 846 __entry->count = atomic_read(&VFS_I(ip)->i_count); 870 __entry->dev = VFS_I(ip)->i_sb->s_dev; 954 __entry->dev = VFS_I(dp)->i_sb->s_dev; [all …]
|
D | xfs_symlink.c | 312 i_size_write(VFS_I(ip), ip->i_disk_size); in xfs_symlink() 413 VFS_I(ip)->i_mode = (VFS_I(ip)->i_mode & ~S_IFMT) | S_IFREG; in xfs_inactive_symlink_rmt()
|
D | xfs_inode_item.c | 76 struct inode *inode = VFS_I(ip); in xfs_inode_item_precommit() 369 ilf->ilf_u.ilfu_rdev = sysv_encode_dev(VFS_I(ip)->i_rdev); in xfs_inode_item_format_data_fork() 519 struct inode *inode = VFS_I(ip); in xfs_inode_to_log_dinode()
|
D | xfs_notify_failure.c | 95 error = mf_dax_kill_procs(VFS_I(ip)->i_mapping, in xfs_dax_failure_fn()
|
/fs/xfs/scrub/ |
D | common.c | 827 if (VFS_I(ip)->i_generation != sc->sm->sm_gen) { in xchk_install_handle_inode() 846 if (!igrab(VFS_I(ip))) { in xchk_install_live_inode() 994 spin_lock(&VFS_I(ip)->i_lock); in xchk_irele() 995 VFS_I(ip)->i_state &= ~I_DONTCACHE; in xchk_irele() 996 spin_unlock(&VFS_I(ip)->i_lock); in xchk_irele() 997 } else if (atomic_read(&VFS_I(ip)->i_count) == 1) { in xchk_irele() 1002 d_mark_dontcache(VFS_I(ip)); in xchk_irele() 1314 ASSERT(VFS_I(ip)->i_mode != 0); in xchk_inode_is_allocated() 1330 ASSERT(VFS_I(ip)->i_mode != 0); in xchk_inode_is_allocated() 1340 ASSERT(VFS_I(ip)->i_mode != 0); in xchk_inode_is_allocated() [all …]
|
D | parent.c | 127 expected_nlink = VFS_I(sc->ip)->i_nlink == 0 ? 0 : 1; in xchk_parent_validate() 146 if (dp == sc->ip || !S_ISDIR(VFS_I(dp)->i_mode)) { in xchk_parent_validate() 191 if (!S_ISDIR(VFS_I(sc->ip)->i_mode)) in xchk_parent()
|
D | bmap.c | 48 if (S_ISREG(VFS_I(sc->ip)->i_mode) && in xchk_setup_inode_bmap() 50 struct address_space *mapping = VFS_I(sc->ip)->i_mapping; in xchk_setup_inode_bmap() 54 inode_dio_wait(VFS_I(sc->ip)); in xchk_setup_inode_bmap() 375 if (!S_ISDIR(VFS_I(ip)->i_mode) && info->whichfork != XFS_ATTR_FORK) in xchk_bmap_dirattr_extent() 668 i_size_read(VFS_I(sc->ip)) == 0) in xchk_bmap_want_check_rmaps()
|
D | symlink.c | 42 if (!S_ISLNK(VFS_I(ip)->i_mode)) in xchk_symlink()
|
D | readdir.c | 285 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xchk_dir_walk() 336 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xchk_dir_lookup()
|
/fs/xfs/libxfs/ |
D | xfs_dir2.c | 194 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_isempty() 234 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_init() 267 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_createname() 364 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_lookup() 441 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_removename() 499 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_replace()
|
D | xfs_trans_inode.c | 59 struct inode *inode = VFS_I(ip); in xfs_trans_ichgtime() 90 struct inode *inode = VFS_I(ip); in xfs_trans_log_inode()
|
D | xfs_inode_fork.c | 48 zero_terminate = S_ISLNK(VFS_I(ip)->i_mode); in xfs_init_local_fork() 225 struct inode *inode = VFS_I(ip); in xfs_iformat_data_fork() 659 linux_to_xfs_dev_t(VFS_I(ip)->i_rdev)); in xfs_iflush_fork() 704 switch (VFS_I(ip)->i_mode & S_IFMT) { in xfs_ifork_verify_local_data()
|
D | xfs_inode_buf.c | 175 struct inode *inode = VFS_I(ip); in xfs_inode_from_disk() 307 struct inode *inode = VFS_I(ip); in xfs_inode_to_disk()
|
/fs/ntfs/ |
D | inode.c | 316 return VFS_I(ni); in ntfs_alloc_big_inode() 2224 if (!is_bad_inode(VFS_I(ni->ext.base_ntfs_ino))) in ntfs_clear_extent_inode() 2283 iput(VFS_I(ni->ext.base_ntfs_ino)); in ntfs_evict_big_inode() 2805 if (!IS_NOCMTIME(VFS_I(base_ni)) && !IS_RDONLY(VFS_I(base_ni))) { in ntfs_truncate() 2806 struct timespec64 now = current_time(VFS_I(base_ni)); in ntfs_truncate() 2807 struct timespec64 ctime = inode_get_ctime(VFS_I(base_ni)); in ntfs_truncate() 2810 if (!timespec64_equal(&VFS_I(base_ni)->i_mtime, &now) || in ntfs_truncate() 2813 inode_set_ctime_to_ts(VFS_I(base_ni), now); in ntfs_truncate() 2814 VFS_I(base_ni)->i_mtime = now; in ntfs_truncate() 2817 mark_inode_dirty_sync(VFS_I(base_ni)); in ntfs_truncate()
|
D | inode.h | 231 static inline struct inode *VFS_I(ntfs_inode *ni) in VFS_I() function
|