Home
last modified time | relevance | path

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

12

/fs/xfs/
Dxfs_inode.c184 down_write_nested(&VFS_I(ip)->i_rwsem, in xfs_ilock()
187 down_read_nested(&VFS_I(ip)->i_rwsem, in xfs_ilock()
192 down_write_nested(&VFS_I(ip)->i_mapping->invalidate_lock, in xfs_ilock()
195 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.c469 error = filemap_write_and_wait(VFS_I(ip)->i_mapping); in xfs_getbmap()
656 (VFS_I(ip)->i_state & I_FREEING)); in xfs_can_free_eofblocks()
659 if (!S_ISREG(VFS_I(ip)->i_mode)) in xfs_can_free_eofblocks()
666 if (VFS_I(ip)->i_size == 0 && in xfs_can_free_eofblocks()
667 VFS_I(ip)->i_mapping->nrpages == 0 && in xfs_can_free_eofblocks()
730 inode_dio_wait(VFS_I(ip)); in xfs_free_eofblocks()
941 struct inode *inode = VFS_I(ip); in xfs_flush_unmap_range()
1009 error = iomap_zero_range(VFS_I(ip), offset, len, NULL, in xfs_free_file_space()
1021 error = filemap_write_and_wait_range(VFS_I(ip)->i_mapping, in xfs_free_file_space()
1261 (!uid_eq(VFS_I(ip)->i_uid, VFS_I(tip)->i_uid) || in xfs_swap_extents_check_format()
[all …]
Dxfs_icache.c82 if (inode_init_always(mp->m_super, VFS_I(ip))) { in xfs_inode_alloc()
88 VFS_I(ip)->i_mode = 0; in xfs_inode_alloc()
89 VFS_I(ip)->i_state = 0; in xfs_inode_alloc()
123 switch (VFS_I(ip)->i_mode & S_IFMT) { in xfs_inode_free_callback()
158 call_rcu(&VFS_I(ip)->i_rcu, xfs_inode_free_callback); in __xfs_inode_free()
352 struct inode *inode = VFS_I(ip); in xfs_iget_recycle()
427 if (VFS_I(ip)->i_mode != 0) { in xfs_iget_check_free_state()
430 ip->i_ino, VFS_I(ip)->i_mode); in xfs_iget_check_free_state()
444 if (VFS_I(ip)->i_mode == 0) in xfs_iget_check_free_state()
481 struct inode *inode = VFS_I(ip); in xfs_iget_cache_hit()
[all …]
Dxfs_inode.h87 static inline struct inode *VFS_I(struct xfs_inode *ip) in VFS_I() function
99 if (S_ISREG(VFS_I(ip)->i_mode)) in XFS_ISIZE()
100 return i_size_read(VFS_I(ip)); in XFS_ISIZE()
111 xfs_fsize_t i_size = i_size_read(VFS_I(ip)); in xfs_new_eof()
402 (xfs_has_grpid((pip)->i_mount) || (VFS_I(pip)->i_mode & S_ISGID))
494 unlock_new_inode(VFS_I(ip)); in xfs_finish_inode_setup()
Dxfs_iops.c206 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()
646 struct inode *inode = VFS_I(ip); in xfs_setattr_nonsize()
792 struct inode *inode = VFS_I(ip); in xfs_setattr_size()
899 error = filemap_write_and_wait_range(VFS_I(ip)->i_mapping, in xfs_setattr_size()
1190 if (!S_ISREG(VFS_I(ip)->i_mode)) in xfs_inode_supports_dax()
1227 struct inode *inode = VFS_I(ip); in xfs_diflags_to_iflags()
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_reflink.c1057 if (newlen <= i_size_read(VFS_I(dest)) && cowextsize == 0) in xfs_reflink_update_dest()
1067 if (newlen > i_size_read(VFS_I(dest))) { in xfs_reflink_update_dest()
1069 i_size_write(VFS_I(dest), newlen); in xfs_reflink_update_dest()
1293 if (newlen > i_size_read(VFS_I(ip))) { in xfs_reflink_remap_extent()
1295 i_size_write(VFS_I(ip), newlen); in xfs_reflink_remap_extent()
1400 loff_t isize = i_size_read(VFS_I(ip)); in xfs_reflink_zero_posteof()
1406 return iomap_zero_range(VFS_I(ip), isize, pos - isize, NULL, in xfs_reflink_zero_posteof()
1647 struct inode *inode = VFS_I(ip); in xfs_reflink_unshare()
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.c1150 if (S_ISDIR(VFS_I(ip)->i_mode)) { in xfs_flags2diflags()
1159 } else if (S_ISREG(VFS_I(ip)->i_mode)) { in xfs_flags2diflags()
1236 struct inode *inode = VFS_I(ip); in xfs_ioctl_setattr_prepare_dax()
1302 if (S_ISREG(VFS_I(ip)->i_mode) && ip->i_df.if_nextents && in xfs_ioctl_setattr_check_extsize()
1328 VFS_I(ip)->i_mode, new_diflags); in xfs_ioctl_setattr_check_extsize()
1353 VFS_I(ip)->i_mode, new_diflags, new_diflags2); in xfs_ioctl_setattr_check_cowextsize()
1410 error = xfs_qm_vop_dqalloc(ip, VFS_I(ip)->i_uid, in xfs_fileattr_set()
1411 VFS_I(ip)->i_gid, fa->fsx_projid, in xfs_fileattr_set()
1447 if ((VFS_I(ip)->i_mode & (S_ISUID|S_ISGID)) && in xfs_fileattr_set()
1448 !capable_wrt_inode_uidgid(mnt_userns, VFS_I(ip), CAP_FSETID)) in xfs_fileattr_set()
[all …]
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;
675 __entry->dev = VFS_I(ip)->i_sb->s_dev;
702 __entry->dev = VFS_I(ip)->i_sb->s_dev;
733 __entry->dev = VFS_I(ip)->i_sb->s_dev;
810 __entry->dev = VFS_I(ip)->i_sb->s_dev;
836 __entry->dev = VFS_I(ip)->i_sb->s_dev;
838 __entry->count = atomic_read(&VFS_I(ip)->i_count);
862 __entry->dev = VFS_I(ip)->i_sb->s_dev;
[all …]
Dxfs_symlink.c317 i_size_write(VFS_I(ip), ip->i_disk_size); in xfs_symlink()
418 VFS_I(ip)->i_mode = (VFS_I(ip)->i_mode & ~S_IFMT) | S_IFREG; in xfs_inactive_symlink_rmt()
Dxfs_file.c86 VFS_I(ip)->i_mode &= ~S_ISUID; in xfs_update_prealloc_flags()
87 if (VFS_I(ip)->i_mode & S_IXGRP) in xfs_update_prealloc_flags()
88 VFS_I(ip)->i_mode &= ~S_ISGID; in xfs_update_prealloc_flags()
600 size_t isize = i_size_read(VFS_I(ip)); in xfs_file_dio_write_unaligned()
644 inode_dio_wait(VFS_I(ip)); in xfs_file_dio_write_unaligned()
Dxfs_rtalloc.c1065 i_size_write(VFS_I(mp->m_rbmip), mp->m_rbmip->i_disk_size); in xfs_growfs_rt()
1078 i_size_write(VFS_I(mp->m_rsumip), mp->m_rsumip->i_disk_size); in xfs_growfs_rt()
1347 seqp = (uint64_t *)&VFS_I(mp->m_rbmip)->i_atime; in xfs_rtpick_extent()
Dxfs_iomap.c232 if (IS_DAX(VFS_I(ip))) { in xfs_iomap_write_direct()
506 struct inode *inode = VFS_I(ip); in xfs_iomap_write_unwritten()
1125 truncate_pagecache_range(VFS_I(ip), XFS_FSB_TO_B(mp, start_fsb), in xfs_buffered_write_iomap_end()
/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()
303 if (!S_ISDIR(VFS_I(ip)->i_mode) && info->whichfork != XFS_ATTR_FORK) in xchk_bmap_dirattr_extent()
608 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()
/fs/xfs/libxfs/
Dxfs_dir2.c181 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()
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()
230 struct inode *inode = VFS_I(ip); in xfs_iformat_data_fork()
653 linux_to_xfs_dev_t(VFS_I(ip)->i_rdev)); in xfs_iflush_fork()
698 switch (VFS_I(ip)->i_mode & S_IFMT) { in xfs_ifork_verify_local_data()
Dxfs_inode_buf.c176 struct inode *inode = VFS_I(ip); in xfs_inode_from_disk()
288 struct inode *inode = VFS_I(ip); in xfs_inode_to_disk()
/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
Ddir.c86 BUG_ON(!S_ISDIR(VFS_I(dir_ni)->i_mode)); in ntfs_lookup_inode_by_name()
293 ia_mapping = VFS_I(dir_ni)->i_mapping; in ntfs_lookup_inode_by_name()
771 ia_mapping = VFS_I(dir_ni)->i_mapping;

12