Home
last modified time | relevance | path

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

12

/Linux-v6.1/fs/xfs/
Dxfs_inode.c195 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 …]
Dxfs_bmap_util.c468 error = filemap_write_and_wait(VFS_I(ip)->i_mapping); in xfs_getbmap()
657 (VFS_I(ip)->i_state & I_FREEING)); in xfs_can_free_eofblocks()
660 if (!S_ISREG(VFS_I(ip)->i_mode)) in xfs_can_free_eofblocks()
667 if (VFS_I(ip)->i_size == 0 && in xfs_can_free_eofblocks()
668 VFS_I(ip)->i_mapping->nrpages == 0 && in xfs_can_free_eofblocks()
733 inode_dio_wait(VFS_I(ip)); in xfs_free_eofblocks()
950 struct inode *inode = VFS_I(ip); in xfs_flush_unmap_range()
1029 error = filemap_write_and_wait_range(VFS_I(ip)->i_mapping, in xfs_free_file_space()
1271 (!uid_eq(VFS_I(ip)->i_uid, VFS_I(tip)->i_uid) || in xfs_swap_extents_check_format()
1272 !gid_eq(VFS_I(ip)->i_gid, VFS_I(tip)->i_gid) || in xfs_swap_extents_check_format()
[all …]
Dxfs_icache.c83 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()
410 if (VFS_I(ip)->i_mode != 0) { in xfs_iget_check_free_state()
413 ip->i_ino, VFS_I(ip)->i_mode); in xfs_iget_check_free_state()
427 if (VFS_I(ip)->i_mode == 0) in xfs_iget_check_free_state()
[all …]
Dxfs_inode.h151 static inline struct inode *VFS_I(struct xfs_inode *ip) in VFS_I() function
163 if (S_ISREG(VFS_I(ip)->i_mode)) in XFS_ISIZE()
164 return i_size_read(VFS_I(ip)); in XFS_ISIZE()
175 xfs_fsize_t i_size = i_size_read(VFS_I(ip)); in xfs_new_eof()
470 (xfs_has_grpid((pip)->i_mount) || (VFS_I(pip)->i_mode & S_ISGID))
554 unlock_new_inode(VFS_I(ip)); in xfs_finish_inode_setup()
Dxfs_export.c149 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()
Dxfs_iops.c208 inode = VFS_I(ip); in xfs_generic_create()
306 inode = VFS_I(cip); in xfs_vn_lookup()
344 return d_splice_alias(VFS_I(ip), dentry); in xfs_vn_ci_lookup()
349 dentry = d_add_ci(dentry, VFS_I(ip), &dname); in xfs_vn_ci_lookup()
424 inode = VFS_I(cip); in xfs_vn_symlink()
658 struct inode *inode = VFS_I(ip); in xfs_setattr_nonsize()
786 struct inode *inode = VFS_I(ip); in xfs_setattr_size()
892 error = filemap_write_and_wait_range(VFS_I(ip)->i_mapping, in xfs_setattr_size()
1185 if (!S_ISREG(VFS_I(ip)->i_mode)) in xfs_inode_supports_dax()
1222 struct inode *inode = VFS_I(ip); in xfs_diflags_to_iflags()
Dxfs_pnfs.c97 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()
Dxfs_filestream.c112 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()
Dxfs_health.c238 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()
Dxfs_ioctl.c1079 if (S_ISDIR(VFS_I(ip)->i_mode)) { in xfs_flags2diflags()
1088 } else if (S_ISREG(VFS_I(ip)->i_mode)) { in xfs_flags2diflags()
1166 struct inode *inode = VFS_I(ip); in xfs_ioctl_setattr_prepare_dax()
1232 if (S_ISREG(VFS_I(ip)->i_mode) && ip->i_df.if_nextents && in xfs_ioctl_setattr_check_extsize()
1258 VFS_I(ip)->i_mode, new_diflags); in xfs_ioctl_setattr_check_extsize()
1283 VFS_I(ip)->i_mode, new_diflags, new_diflags2); in xfs_ioctl_setattr_check_cowextsize()
1340 error = xfs_qm_vop_dqalloc(ip, VFS_I(ip)->i_uid, in xfs_fileattr_set()
1341 VFS_I(ip)->i_gid, fa->fsx_projid, in xfs_fileattr_set()
1377 if ((VFS_I(ip)->i_mode & (S_ISUID|S_ISGID)) && in xfs_fileattr_set()
1378 !capable_wrt_inode_uidgid(mnt_userns, VFS_I(ip), CAP_FSETID)) in xfs_fileattr_set()
[all …]
Dxfs_reflink.c1087 if (newlen <= i_size_read(VFS_I(dest)) && cowextsize == 0) in xfs_reflink_update_dest()
1097 if (newlen > i_size_read(VFS_I(dest))) { in xfs_reflink_update_dest()
1099 i_size_write(VFS_I(dest), newlen); in xfs_reflink_update_dest()
1326 if (newlen > i_size_read(VFS_I(ip))) { in xfs_reflink_remap_extent()
1328 i_size_write(VFS_I(ip), newlen); in xfs_reflink_remap_extent()
1433 loff_t isize = i_size_read(VFS_I(ip)); in xfs_reflink_zero_posteof()
1686 struct inode *inode = VFS_I(ip); in xfs_reflink_unshare()
Dxfs_trace.h100 __entry->dev = VFS_I(ctx->dp)->i_sb->s_dev;
319 __entry->dev = VFS_I(ctx->dp)->i_sb->s_dev;
373 __entry->dev = VFS_I(ip)->i_sb->s_dev;
678 __entry->dev = VFS_I(ip)->i_sb->s_dev;
705 __entry->dev = VFS_I(ip)->i_sb->s_dev;
736 __entry->dev = VFS_I(ip)->i_sb->s_dev;
816 __entry->dev = VFS_I(ip)->i_sb->s_dev;
842 __entry->dev = VFS_I(ip)->i_sb->s_dev;
844 __entry->count = atomic_read(&VFS_I(ip)->i_count);
868 __entry->dev = VFS_I(ip)->i_sb->s_dev;
[all …]
Dxfs_symlink.c312 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()
Dxfs_notify_failure.c95 error = mf_dax_kill_procs(VFS_I(ip)->i_mapping, in xfs_dax_failure_fn()
Dxfs_iomap.c515 struct inode *inode = VFS_I(ip); in xfs_iomap_write_unwritten()
1170 truncate_pagecache_range(VFS_I(ip), XFS_FSB_TO_B(mp, start_fsb), in xfs_buffered_write_iomap_end()
1369 struct inode *inode = VFS_I(ip); in xfs_zero_range()
1384 struct inode *inode = VFS_I(ip); in xfs_truncate_page()
Dxfs_rtalloc.c1068 i_size_write(VFS_I(mp->m_rbmip), mp->m_rbmip->i_disk_size); in xfs_growfs_rt()
1081 i_size_write(VFS_I(mp->m_rsumip), mp->m_rsumip->i_disk_size); in xfs_growfs_rt()
1388 seqp = (uint64_t *)&VFS_I(mp->m_rbmip)->i_atime; in xfs_rtpick_extent()
/Linux-v6.1/fs/xfs/scrub/
Dparent.c155 expected_nlink = VFS_I(sc->ip)->i_nlink == 0 ? 0 : 1; in xchk_parent_validate()
179 if (dp == sc->ip || !S_ISDIR(VFS_I(dp)->i_mode)) { in xchk_parent_validate()
230 expected_nlink = VFS_I(sc->ip)->i_nlink == 0 ? 0 : 1; in xchk_parent_validate()
276 if (!S_ISDIR(VFS_I(sc->ip)->i_mode)) in xchk_parent()
Dbmap.c46 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()
287 if (!S_ISDIR(VFS_I(ip)->i_mode) && info->whichfork != XFS_ATTR_FORK) in xchk_bmap_dirattr_extent()
592 zero_size = i_size_read(VFS_I(sc->ip)) == 0; in xchk_bmap_check_rmaps()
Dsymlink.c42 if (!S_ISLNK(VFS_I(ip)->i_mode)) in xchk_symlink()
/Linux-v6.1/fs/xfs/libxfs/
Dxfs_dir2.c193 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_isempty()
233 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_init()
266 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_createname()
363 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_lookup()
440 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_removename()
498 ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); in xfs_dir_replace()
Dxfs_trans_inode.c60 struct inode *inode = VFS_I(ip); in xfs_trans_ichgtime()
98 struct inode *inode = VFS_I(ip); in xfs_trans_log_inode()
Dxfs_inode_fork.c48 zero_terminate = S_ISLNK(VFS_I(ip)->i_mode); in xfs_init_local_fork()
224 struct inode *inode = VFS_I(ip); in xfs_iformat_data_fork()
644 linux_to_xfs_dev_t(VFS_I(ip)->i_rdev)); in xfs_iflush_fork()
689 switch (VFS_I(ip)->i_mode & S_IFMT) { in xfs_ifork_verify_local_data()
Dxfs_inode_buf.c175 struct inode *inode = VFS_I(ip); in xfs_inode_from_disk()
306 struct inode *inode = VFS_I(ip); in xfs_inode_to_disk()
/Linux-v6.1/fs/ntfs/
Dinode.c316 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()
2809 if (!timespec64_equal(&VFS_I(base_ni)->i_mtime, &now) || in ntfs_truncate()
2810 !timespec64_equal(&VFS_I(base_ni)->i_ctime, &now)) in ntfs_truncate()
2812 VFS_I(base_ni)->i_mtime = now; in ntfs_truncate()
2813 VFS_I(base_ni)->i_ctime = now; in ntfs_truncate()
2816 mark_inode_dirty_sync(VFS_I(base_ni)); in ntfs_truncate()
Dinode.h231 static inline struct inode *VFS_I(ntfs_inode *ni) in VFS_I() function

12