/kernel/linux/linux-6.6/fs/xfs/ |
H A 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(i in xfs_ilock_nowait() [all...] |
H A 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(ti in xfs_swap_extents_check_format() [all...] |
H A 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); 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(i in xfs_iget_check_free_state() [all...] |
H A 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()
|
H A 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()
|
H A 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(i in xfs_diflags_to_iflags() [all...] |
H A 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()
|
H A 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()
|
/kernel/linux/linux-5.10/fs/xfs/ |
H A D | xfs_inode.c | 186 down_write_nested(&VFS_I(ip)->i_rwsem, in xfs_ilock() 189 down_read_nested(&VFS_I(ip)->i_rwsem, in xfs_ilock() 237 if (!down_write_trylock(&VFS_I(ip)->i_rwsem)) in xfs_ilock_nowait() 240 if (!down_read_trylock(&VFS_I(ip)->i_rwsem)) in xfs_ilock_nowait() 268 up_write(&VFS_I(ip)->i_rwsem); in xfs_ilock_nowait() 270 up_read(&VFS_I(ip)->i_rwsem); in xfs_ilock_nowait() 307 up_write(&VFS_I(ip)->i_rwsem); in xfs_iunlock() 309 up_read(&VFS_I(ip)->i_rwsem); in xfs_iunlock() 342 downgrade_write(&VFS_I(ip)->i_rwsem); in xfs_ilock_demote() 368 lockdep_is_held_type(&VFS_I(i in xfs_isilocked() [all...] |
H A D | xfs_icache.c | 45 if (inode_init_always(mp->m_super, VFS_I(ip))) { in xfs_inode_alloc() 51 VFS_I(ip)->i_mode = 0; in xfs_inode_alloc() 52 VFS_I(ip)->i_state = 0; in xfs_inode_alloc() 84 switch (VFS_I(ip)->i_mode & S_IFMT) { in xfs_inode_free_callback() 119 call_rcu(&VFS_I(ip)->i_rcu, xfs_inode_free_callback); in __xfs_inode_free() 304 if (VFS_I(ip)->i_mode != 0) { in xfs_iget_check_free_state() 307 ip->i_ino, VFS_I(ip)->i_mode); in xfs_iget_check_free_state() 321 if (VFS_I(ip)->i_mode == 0) in xfs_iget_check_free_state() 338 struct inode *inode = VFS_I(ip); in __releases() 507 VFS_I(i in xfs_iget_cache_miss() [all...] |
H A D | xfs_bmap_util.c | 427 error = filemap_write_and_wait(VFS_I(ip)->i_mapping); in xfs_getbmap() 603 if (!S_ISREG(VFS_I(ip)->i_mode)) in xfs_can_free_eofblocks() 610 if (VFS_I(ip)->i_size == 0 && in xfs_can_free_eofblocks() 611 VFS_I(ip)->i_mapping->nrpages == 0 && in xfs_can_free_eofblocks() 678 inode_dio_wait(VFS_I(ip)); in xfs_free_eofblocks() 908 struct inode *inode = VFS_I(ip); in xfs_flush_unmap_range() 976 error = iomap_zero_range(VFS_I(ip), offset, len, NULL, in xfs_free_file_space() 988 error = filemap_write_and_wait_range(VFS_I(ip)->i_mapping, in xfs_free_file_space() 1223 (!uid_eq(VFS_I(ip)->i_uid, VFS_I(ti in xfs_swap_extents_check_format() [all...] |
H A D | xfs_inode.h | 76 static inline struct inode *VFS_I(struct xfs_inode *ip) in VFS_I() function 88 if (S_ISREG(VFS_I(ip)->i_mode)) in XFS_ISIZE() 89 return i_size_read(VFS_I(ip)); in XFS_ISIZE() 100 xfs_fsize_t i_size = i_size_read(VFS_I(ip)); in xfs_new_eof() 366 (VFS_I(pip)->i_mode & S_ISGID)) 453 unlock_new_inode(VFS_I(ip)); in xfs_finish_inode_setup()
|
H A D | xfs_export.c | 149 if (VFS_I(ip)->i_generation != generation) { in xfs_nfs_get_inode() 154 return VFS_I(ip); in xfs_nfs_get_inode() 216 return d_obtain_alias(VFS_I(cip)); in xfs_fs_get_parent()
|
H A D | xfs_reflink.c | 928 if (newlen <= i_size_read(VFS_I(dest)) && cowextsize == 0) in xfs_reflink_update_dest() 938 if (newlen > i_size_read(VFS_I(dest))) { in xfs_reflink_update_dest() 940 i_size_write(VFS_I(dest), newlen); in xfs_reflink_update_dest() 1135 if (newlen > i_size_read(VFS_I(ip))) { in xfs_reflink_remap_extent() 1137 i_size_write(VFS_I(ip), newlen); in xfs_reflink_remap_extent() 1242 loff_t isize = i_size_read(VFS_I(ip)); in xfs_reflink_zero_posteof() 1248 return iomap_zero_range(VFS_I(ip), isize, pos - isize, NULL, in xfs_reflink_zero_posteof() 1491 struct inode *inode = VFS_I(ip); in xfs_reflink_unshare()
|
H A D | xfs_iops.c | 171 inode = VFS_I(ip); in xfs_generic_create() 269 inode = VFS_I(cip); in xfs_vn_lookup() 307 return d_splice_alias(VFS_I(ip), dentry); in xfs_vn_ci_lookup() 312 dentry = d_add_ci(dentry, VFS_I(ip), &dname); in xfs_vn_ci_lookup() 386 inode = VFS_I(cip); in xfs_vn_symlink() 627 struct inode *inode = VFS_I(ip); in xfs_setattr_nonsize() 810 struct inode *inode = VFS_I(ip); in xfs_setattr_size() 917 error = filemap_write_and_wait_range(VFS_I(ip)->i_mapping, in xfs_setattr_size() 1203 if (!S_ISREG(VFS_I(ip)->i_mode)) in xfs_inode_supports_dax() 1240 struct inode *inode = VFS_I(i in xfs_diflags_to_iflags() [all...] |
H A D | xfs_filestream.c | 112 ASSERT(S_ISDIR(VFS_I(ip)->i_mode)); in xfs_filestream_pick_ag() 245 struct inode *inode = VFS_I(ip), *dir = NULL; in xfs_filestream_get_parent() 280 ASSERT(S_ISREG(VFS_I(ip)->i_mode)); in xfs_filestream_lookup_ag()
|
/kernel/linux/linux-6.6/fs/xfs/scrub/ |
H A 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()
|
H A D | common.c | 825 if (VFS_I(ip)->i_generation != sc->sm->sm_gen) { in xchk_install_handle_inode() 844 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(i in xchk_inode_is_allocated() [all...] |
H A D | symlink.c | 42 if (!S_ISLNK(VFS_I(ip)->i_mode)) in xchk_symlink()
|
/kernel/linux/linux-5.10/fs/xfs/scrub/ |
H A D | parent.c | 156 expected_nlink = VFS_I(sc->ip)->i_nlink == 0 ? 0 : 1; in xchk_parent_validate() 180 if (dp == sc->ip || !S_ISDIR(VFS_I(dp)->i_mode)) { in xchk_parent_validate() 231 expected_nlink = VFS_I(sc->ip)->i_nlink == 0 ? 0 : 1; in xchk_parent_validate() 277 if (!S_ISDIR(VFS_I(sc->ip)->i_mode)) in xchk_parent()
|
H A D | bmap.c | 46 if (S_ISREG(VFS_I(sc->ip)->i_mode) && in xchk_setup_inode_bmap() 48 struct address_space *mapping = VFS_I(sc->ip)->i_mapping; in xchk_setup_inode_bmap() 50 inode_dio_wait(VFS_I(sc->ip)); in xchk_setup_inode_bmap() 302 if (!S_ISDIR(VFS_I(ip)->i_mode) && info->whichfork != XFS_ATTR_FORK) in xchk_bmap_dirattr_extent() 614 zero_size = i_size_read(VFS_I(sc->ip)) == 0; in xchk_bmap_check_rmaps()
|
/kernel/linux/linux-6.6/fs/xfs/libxfs/ |
H A 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()
|
H A 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()
|
/kernel/linux/linux-5.10/fs/xfs/libxfs/ |
H A D | xfs_trans_inode.c | 60 struct inode *inode = VFS_I(ip); in xfs_trans_ichgtime() 98 struct inode *inode = VFS_I(ip); in xfs_trans_log_inode()
|
H A D | xfs_dir2.c | 181 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_isempty() 221 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_init() 254 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_createname() 351 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_lookup() 428 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_removename() 486 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_replace()
|