/linux/fs/xfs/ |
H A D | xfs_symlink.c | 154 xfs_ilock(dp, XFS_ILOCK_EXCL | XFS_ILOCK_PARENT); in xfs_symlink() 220 xfs_iunlock(du.ip, XFS_ILOCK_EXCL); in xfs_symlink() 221 xfs_iunlock(dp, XFS_ILOCK_EXCL); in xfs_symlink() 234 xfs_iunlock(du.ip, XFS_ILOCK_EXCL); in xfs_symlink() 246 xfs_iunlock(dp, XFS_ILOCK_EXCL); in xfs_symlink() 281 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_inactive_symlink_rmt() 311 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_inactive_symlink_rmt() 317 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_inactive_symlink_rmt() 336 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_inactive_symlink() 343 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_inactive_symlink() [all …]
|
H A D | xfs_inode.c | 72 lock_mode = XFS_ILOCK_EXCL; in xfs_ilock_data_map_shared() 84 lock_mode = XFS_ILOCK_EXCL; in xfs_ilock_attr_map_shared() 103 ASSERT((lock_flags & (XFS_ILOCK_SHARED | XFS_ILOCK_EXCL)) != in xfs_lock_flags_assert() 104 (XFS_ILOCK_SHARED | XFS_ILOCK_EXCL)); in xfs_lock_flags_assert() 164 if (lock_flags & XFS_ILOCK_EXCL) in xfs_ilock() 207 if (lock_flags & XFS_ILOCK_EXCL) { in xfs_ilock_nowait() 259 if (lock_flags & XFS_ILOCK_EXCL) in xfs_iunlock() 276 ASSERT(lock_flags & (XFS_IOLOCK_EXCL|XFS_MMAPLOCK_EXCL|XFS_ILOCK_EXCL)); in xfs_ilock_demote() 278 ~(XFS_IOLOCK_EXCL|XFS_MMAPLOCK_EXCL|XFS_ILOCK_EXCL)) == 0); in xfs_ilock_demote() 280 if (lock_flags & XFS_ILOCK_EXCL) in xfs_ilock_demote() [all …]
|
H A D | xfs_reflink.c | 298 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_reflink_convert_cow() 300 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_reflink_convert_cow() 409 *lockmode = XFS_ILOCK_EXCL; in xfs_reflink_fill_cow_hole() 465 *lockmode = XFS_ILOCK_EXCL; in xfs_reflink_fill_delalloc() 517 xfs_assert_ilocked(ip, XFS_ILOCK_EXCL); in xfs_reflink_allocate_cow() 668 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_reflink_cancel_cow_range() 679 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_reflink_cancel_cow_range() 684 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_reflink_cancel_cow_range() 726 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_reflink_end_cow_extent() 815 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_reflink_end_cow_extent() [all …]
|
H A D | xfs_bmap_util.c | 450 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_bmap_punch_delalloc_range() 479 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_bmap_punch_delalloc_range() 597 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_free_eofblocks() 625 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_free_eofblocks() 750 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_alloc_file_space() 757 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_alloc_file_space() 789 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_unmap_extent() 996 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_collapse_file_space() 1014 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_collapse_file_space() 1019 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_collapse_file_space() [all …]
|
H A D | xfs_trans.c | 1104 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_trans_alloc_inode() 1117 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_trans_alloc_inode() 1130 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_trans_alloc_inode() 1171 xfs_assert_ilocked(ip, XFS_ILOCK_EXCL); in xfs_trans_reserve_more_inode() 1266 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_trans_alloc_ichange() 1267 xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); in xfs_trans_alloc_ichange() 1385 xfs_lock_two_inodes(dp, XFS_ILOCK_EXCL, ip, XFS_ILOCK_EXCL); in xfs_trans_alloc_dir() 1411 xfs_iunlock(dp, XFS_ILOCK_EXCL); in xfs_trans_alloc_dir() 1413 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_trans_alloc_dir() 1433 xfs_iunlock(dp, XFS_ILOCK_EXCL); in xfs_trans_alloc_dir() [all …]
|
H A D | xfs_exchrange.c | 35 xfs_lock_two_inodes(ip1, XFS_ILOCK_EXCL, in xfs_exchrange_ilock() 36 ip2, XFS_ILOCK_EXCL); in xfs_exchrange_ilock() 38 xfs_ilock(ip1, XFS_ILOCK_EXCL); in xfs_exchrange_ilock() 54 xfs_iunlock(ip2, XFS_ILOCK_EXCL); in xfs_exchrange_iunlock() 55 xfs_iunlock(ip1, XFS_ILOCK_EXCL); in xfs_exchrange_iunlock()
|
H A D | xfs_aops.c | 62 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_setfilesize() 65 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_setfilesize() 73 xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); in xfs_setfilesize()
|
H A D | xfs_inode.h | 430 #define XFS_ILOCK_EXCL (1u << 2) macro 436 | XFS_ILOCK_EXCL | XFS_ILOCK_SHARED \ 442 { XFS_ILOCK_EXCL, "ILOCK_EXCL" }, \
|
H A D | xfs_iomap.c | 341 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_iomap_write_direct() 684 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_iomap_write_unwritten() 709 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_iomap_write_unwritten() 774 *lockmode = XFS_ILOCK_EXCL; in xfs_ilock_for_iomap() 836 lockmode = XFS_ILOCK_EXCL; in xfs_direct_write_iomap_begin() 851 lockmode = XFS_ILOCK_EXCL; in xfs_direct_write_iomap_begin() 1011 unsigned int lockmode = XFS_ILOCK_EXCL; in xfs_buffered_write_iomap_begin()
|
H A D | xfs_dquot.c | 363 xfs_ilock(quotip, XFS_ILOCK_EXCL); in xfs_dquot_disk_alloc() 436 xfs_iunlock(quotip, XFS_ILOCK_EXCL); in xfs_dquot_disk_alloc() 447 xfs_iunlock(quotip, XFS_ILOCK_EXCL); in xfs_dquot_disk_alloc() 1015 xfs_assert_ilocked(ip, XFS_ILOCK_EXCL); in xfs_qm_dqget_inode() 1035 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_qm_dqget_inode() 1037 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_qm_dqget_inode() 1073 xfs_assert_ilocked(ip, XFS_ILOCK_EXCL); in xfs_qm_dqget_inode()
|
H A D | xfs_qm.c | 300 xfs_assert_ilocked(ip, XFS_ILOCK_EXCL); in xfs_qm_dqattach_one() 370 xfs_assert_ilocked(ip, XFS_ILOCK_EXCL); in xfs_qm_dqattach_locked() 402 xfs_assert_ilocked(ip, XFS_ILOCK_EXCL); in xfs_qm_dqattach_locked() 415 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_qm_dqattach() 417 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_qm_dqattach() 1073 xfs_iunlock(*ipp, XFS_ILOCK_EXCL); in xfs_qm_qino_alloc() 1965 lockflags = XFS_ILOCK_EXCL; in xfs_qm_vop_dqalloc() 2091 xfs_assert_ilocked(ip, XFS_ILOCK_EXCL); in xfs_qm_vop_chown() 2192 xfs_assert_ilocked(ip, XFS_ILOCK_EXCL); in xfs_qm_vop_create_dqattach()
|
H A D | xfs_icache.c | 369 if (!xfs_ilock_nowait(ip, XFS_ILOCK_EXCL)) in xfs_iget_recycle() 385 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_iget_recycle() 968 if (!xfs_ilock_nowait(ip, XFS_ILOCK_EXCL)) in xfs_reclaim_inode() 1012 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_reclaim_inode() 1037 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_reclaim_inode() 1039 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_reclaim_inode() 1048 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_reclaim_inode()
|
H A D | xfs_bmap_item.c | 518 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_bmap_recover_work() 551 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_bmap_recover_work() 558 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_bmap_recover_work()
|
H A D | xfs_qm_syscalls.c | 76 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_qm_scall_trunc_qfile() 94 xfs_iunlock(ip, XFS_ILOCK_EXCL | XFS_IOLOCK_EXCL); in xfs_qm_scall_trunc_qfile()
|
H A D | xfs_attr_item.c | 623 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_attri_iread_extents() 625 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_attri_iread_extents() 786 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_attr_recover_work() 799 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_attr_recover_work()
|
H A D | xfs_iops.c | 952 lock_flags |= XFS_ILOCK_EXCL; in xfs_setattr_size() 953 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_setattr_size() 1107 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_vn_update_time() 1118 xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); in xfs_vn_update_time()
|
/linux/fs/xfs/scrub/ |
H A D | tempfile.c | 158 xfs_iunlock(sc->tempip, XFS_ILOCK_EXCL); in xrep_tempfile_create() 174 xfs_iunlock(sc->tempip, XFS_ILOCK_EXCL); in xrep_tempfile_create() 341 sc->temp_ilock_flags |= XFS_ILOCK_EXCL; in xrep_tempfile_ilock() 342 xfs_ilock(sc->tempip, XFS_ILOCK_EXCL); in xrep_tempfile_ilock() 350 if (xfs_ilock_nowait(sc->tempip, XFS_ILOCK_EXCL)) { in xrep_tempfile_ilock_nowait() 351 sc->temp_ilock_flags |= XFS_ILOCK_EXCL; in xrep_tempfile_ilock_nowait() 363 xfs_iunlock(sc->tempip, XFS_ILOCK_EXCL); in xrep_tempfile_iunlock() 364 sc->temp_ilock_flags &= ~XFS_ILOCK_EXCL; in xrep_tempfile_iunlock() 375 xfs_lock_two_inodes(sc->ip, XFS_ILOCK_EXCL, sc->tempip, XFS_ILOCK_EXCL); in xrep_tempfile_ilock_both() 376 sc->ilock_flags |= XFS_ILOCK_EXCL; in xrep_tempfile_ilock_both() [all …]
|
H A D | metapath.c | 267 xfs_ilock(mpath->dp, XFS_ILOCK_EXCL); in xchk_metapath_ilock_both() 268 if (xchk_ilock_nowait(sc, XFS_ILOCK_EXCL)) { in xchk_metapath_ilock_both() 269 mpath->dp_ilock_flags |= XFS_ILOCK_EXCL; in xchk_metapath_ilock_both() 272 xfs_iunlock(mpath->dp, XFS_ILOCK_EXCL); in xchk_metapath_ilock_both() 291 xchk_iunlock(sc, XFS_ILOCK_EXCL); in xchk_metapath_iunlock() 293 mpath->dp_ilock_flags &= ~XFS_ILOCK_EXCL; in xchk_metapath_iunlock() 294 xfs_iunlock(mpath->dp, XFS_ILOCK_EXCL); in xchk_metapath_iunlock() 495 xfs_ilock(mpath->dp, XFS_ILOCK_EXCL); in xchk_metapath_ilock_parent_and_child() 496 if (!ip || xfs_ilock_nowait(ip, XFS_ILOCK_EXCL)) in xchk_metapath_ilock_parent_and_child() 498 xfs_iunlock(mpath->dp, XFS_ILOCK_EXCL); in xchk_metapath_ilock_parent_and_child() [all …]
|
H A D | parent.c | 100 if (!xfs_ilock_nowait(dp, XFS_ILOCK_EXCL)) in xchk_parent_ilock_dir() 103 return XFS_ILOCK_EXCL; in xchk_parent_ilock_dir() 180 xchk_iunlock(sc, XFS_ILOCK_EXCL); in xchk_parent_validate() 181 xchk_ilock(sc, XFS_ILOCK_EXCL); in xchk_parent_validate() 369 if (!xfs_ilock_nowait(dp, XFS_ILOCK_EXCL)) { in xchk_parent_lock_dir() 374 return XFS_IOLOCK_SHARED | XFS_ILOCK_EXCL; in xchk_parent_lock_dir()
|
H A D | quota_repair.c | 191 xchk_ilock(sc, XFS_ILOCK_EXCL); in xrep_quota_item() 195 xchk_iunlock(sc, XFS_ILOCK_EXCL); in xrep_quota_item() 543 if (!(sc->ilock_flags & XFS_ILOCK_EXCL)) in xrep_quota() 544 xchk_ilock(sc, XFS_ILOCK_EXCL); in xrep_quota()
|
H A D | symlink_repair.c | 415 xchk_iunlock(sc, XFS_ILOCK_EXCL); in xrep_symlink_rebuild() 498 ASSERT(sc->ilock_flags & XFS_ILOCK_EXCL); in xrep_symlink()
|
/linux/fs/xfs/libxfs/ |
H A D | xfs_rtgroup.c | 200 xfs_ilock(rtg->rtg_inodes[XFS_RTGI_BITMAP], XFS_ILOCK_EXCL); in xfs_rtgroup_lock() 201 xfs_ilock(rtg->rtg_inodes[XFS_RTGI_SUMMARY], XFS_ILOCK_EXCL); in xfs_rtgroup_lock() 218 xfs_iunlock(rtg->rtg_inodes[XFS_RTGI_SUMMARY], XFS_ILOCK_EXCL); in xfs_rtgroup_unlock() 219 xfs_iunlock(rtg->rtg_inodes[XFS_RTGI_BITMAP], XFS_ILOCK_EXCL); in xfs_rtgroup_unlock() 240 XFS_ILOCK_EXCL); in xfs_rtgroup_trans_join() 242 XFS_ILOCK_EXCL); in xfs_rtgroup_trans_join()
|
H A D | xfs_defer.c | 1017 xfs_assert_ilocked(dfc->dfc_held.dr_ip[i], XFS_ILOCK_EXCL); in xfs_defer_ops_capture() 1105 XFS_ILOCK_EXCL); in xfs_defer_ops_continue() 1107 xfs_lock_two_inodes(dfc->dfc_held.dr_ip[0], XFS_ILOCK_EXCL, in xfs_defer_ops_continue() 1108 dfc->dfc_held.dr_ip[1], XFS_ILOCK_EXCL); in xfs_defer_ops_continue() 1110 xfs_ilock(dfc->dfc_held.dr_ip[0], XFS_ILOCK_EXCL); in xfs_defer_ops_continue() 1135 xfs_iunlock(dres->dr_ip[i], XFS_ILOCK_EXCL); in xfs_defer_resources_rele()
|
H A D | xfs_dir2.c | 274 xfs_assert_ilocked(dp, XFS_ILOCK_SHARED | XFS_ILOCK_EXCL); in xfs_dir2_format() 857 xfs_assert_ilocked(ip, XFS_ILOCK_EXCL); in xfs_dir_create_child() 858 xfs_assert_ilocked(dp, XFS_ILOCK_EXCL); in xfs_dir_create_child() 908 xfs_assert_ilocked(ip, XFS_ILOCK_EXCL); in xfs_dir_add_child() 909 xfs_assert_ilocked(dp, XFS_ILOCK_EXCL); in xfs_dir_add_child() 971 xfs_assert_ilocked(ip, XFS_ILOCK_EXCL); in xfs_dir_remove_child() 972 xfs_assert_ilocked(dp, XFS_ILOCK_EXCL); in xfs_dir_remove_child()
|
H A D | xfs_rtbitmap.c | 1068 xfs_assert_ilocked(rbmip, XFS_ILOCK_EXCL); in xfs_rtfree_extent() 1333 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_rtfile_alloc_blocks() 1334 xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); in xfs_rtfile_alloc_blocks() 1380 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_rtfile_initialize_block() 1381 xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); in xfs_rtfile_initialize_block()
|