Home
last modified time | relevance | path

Searched refs:XFS_ILOCK_EXCL (Results 1 – 25 of 32) sorted by relevance

12

/linux/fs/xfs/
H A Dxfs_inode.c72 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 Dxfs_reflink.c349 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_reflink_convert_cow()
351 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_reflink_convert_cow()
467 *lockmode = XFS_ILOCK_EXCL; in xfs_reflink_fill_cow_hole()
541 *lockmode = XFS_ILOCK_EXCL; in xfs_reflink_fill_delalloc()
610 xfs_assert_ilocked(ip, XFS_ILOCK_EXCL); in xfs_reflink_allocate_cow()
763 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_reflink_cancel_cow_range()
774 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_reflink_cancel_cow_range()
779 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_reflink_cancel_cow_range()
953 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_reflink_end_cow_extent()
961 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_reflink_end_cow_extent()
[all …]
H A Dxfs_bmap_util.c452 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_bmap_punch_delalloc_range()
495 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_bmap_punch_delalloc_range()
613 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_free_eofblocks()
641 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_free_eofblocks()
796 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_alloc_file_space()
803 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_alloc_file_space()
835 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_unmap_extent()
1044 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_collapse_file_space()
1062 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_collapse_file_space()
1067 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_collapse_file_space()
[all …]
H A Dxfs_aops.c58 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_setfilesize()
61 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_setfilesize()
69 xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); in xfs_setfilesize()
436 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_zoned_map_blocks()
444 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_zoned_map_blocks()
455 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_zoned_map_blocks()
H A Dxfs_iomap.c357 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_iomap_write_direct()
701 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_iomap_write_unwritten()
726 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_iomap_write_unwritten()
791 *lockmode = XFS_ILOCK_EXCL; in xfs_ilock_for_iomap()
891 lockmode = XFS_ILOCK_EXCL; in xfs_direct_write_iomap_begin()
906 lockmode = XFS_ILOCK_EXCL; in xfs_direct_write_iomap_begin()
1079 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_zoned_direct_write_iomap_begin()
1081 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_zoned_direct_write_iomap_begin()
1162 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_atomic_write_cow_iomap_begin()
1189 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_atomic_write_cow_iomap_begin()
[all …]
H A Dxfs_dquot.c363 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()
1005 xfs_assert_ilocked(ip, XFS_ILOCK_EXCL); in xfs_qm_dqget_inode()
1011 xfs_assert_ilocked(ip, XFS_ILOCK_EXCL); in xfs_qm_dqget_inode()
1029 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_qm_dqget_inode()
1031 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_qm_dqget_inode()
1069 xfs_assert_ilocked(ip, XFS_ILOCK_EXCL); in xfs_qm_dqget_inode()
H A Dxfs_exchrange.c35 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 Dxfs_icache.c370 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_iget_recycle()
569 if (!xfs_ilock_nowait(ip, XFS_ILOCK_EXCL)) in xfs_iget_cache_hit()
966 if (!xfs_ilock_nowait(ip, XFS_ILOCK_EXCL)) in xfs_reclaim_inode()
986 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_reclaim_inode()
988 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_reclaim_inode()
1018 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_reclaim_inode()
1043 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_reclaim_inode()
1045 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_reclaim_inode()
1054 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_reclaim_inode()
H A Dxfs_inode.h445 #define XFS_ILOCK_EXCL (1u << 2) macro
451 | XFS_ILOCK_EXCL | XFS_ILOCK_SHARED \
457 { XFS_ILOCK_EXCL, "ILOCK_EXCL" }, \
H A Dxfs_qm.c324 xfs_assert_ilocked(ip, XFS_ILOCK_EXCL); in xfs_qm_dqattach_locked()
356 xfs_assert_ilocked(ip, XFS_ILOCK_EXCL); in xfs_qm_dqattach_locked()
369 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_qm_dqattach()
371 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_qm_dqattach()
1002 xfs_iunlock(*ipp, XFS_ILOCK_EXCL); in xfs_qm_qino_alloc()
1877 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_qm_vop_dqalloc()
1879 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_qm_vop_dqalloc()
1967 xfs_assert_ilocked(ip, XFS_ILOCK_EXCL); in xfs_qm_vop_chown()
2068 xfs_assert_ilocked(ip, XFS_ILOCK_EXCL); in xfs_qm_vop_create_dqattach()
H A Dxfs_iops.c1058 lock_flags |= XFS_ILOCK_EXCL; in xfs_vn_setattr_size()
1059 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_vn_setattr_size()
1202 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_vn_update_time()
1207 xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); in xfs_vn_update_time()
1222 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_vn_sync_lazytime()
1223 xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); in xfs_vn_sync_lazytime()
H A Dxfs_zone_alloc.c200 xfs_assert_ilocked(rtg_rmap(oz->oz_rtg), XFS_ILOCK_EXCL); in xfs_zone_inc_written()
348 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_zoned_end_io()
356 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_zoned_end_io()
384 xfs_assert_ilocked(rmapip, XFS_ILOCK_EXCL); in xfs_zone_free_blocks()
H A Dxfs_attr_inactive.c349 lock_mode = XFS_ILOCK_EXCL; in xfs_attr_inactive()
/linux/fs/xfs/scrub/
H A Dtempfile.c158 xfs_iunlock(sc->tempip, XFS_ILOCK_EXCL); in xrep_tempfile_create()
174 xfs_iunlock(sc->tempip, XFS_ILOCK_EXCL); in xrep_tempfile_create()
342 sc->temp_ilock_flags |= XFS_ILOCK_EXCL; in xrep_tempfile_ilock()
343 xfs_ilock(sc->tempip, XFS_ILOCK_EXCL); in xrep_tempfile_ilock()
351 if (xfs_ilock_nowait(sc->tempip, XFS_ILOCK_EXCL)) { in xrep_tempfile_ilock_nowait()
352 sc->temp_ilock_flags |= XFS_ILOCK_EXCL; in xrep_tempfile_ilock_nowait()
364 xfs_iunlock(sc->tempip, XFS_ILOCK_EXCL); in xrep_tempfile_iunlock()
365 sc->temp_ilock_flags &= ~XFS_ILOCK_EXCL; in xrep_tempfile_iunlock()
376 xfs_lock_two_inodes(sc->ip, XFS_ILOCK_EXCL, sc->tempip, XFS_ILOCK_EXCL); in xrep_tempfile_ilock_both()
377 sc->ilock_flags |= XFS_ILOCK_EXCL; in xrep_tempfile_ilock_both()
[all …]
H A Dmetapath.c274 xfs_ilock(mpath->dp, XFS_ILOCK_EXCL); in xchk_metapath_ilock_both()
275 if (xchk_ilock_nowait(sc, XFS_ILOCK_EXCL)) { in xchk_metapath_ilock_both()
276 mpath->dp_ilock_flags |= XFS_ILOCK_EXCL; in xchk_metapath_ilock_both()
279 xfs_iunlock(mpath->dp, XFS_ILOCK_EXCL); in xchk_metapath_ilock_both()
298 xchk_iunlock(sc, XFS_ILOCK_EXCL); in xchk_metapath_iunlock()
300 mpath->dp_ilock_flags &= ~XFS_ILOCK_EXCL; in xchk_metapath_iunlock()
301 xfs_iunlock(mpath->dp, XFS_ILOCK_EXCL); in xchk_metapath_iunlock()
580 xfs_ilock(mpath->dp, XFS_ILOCK_EXCL); in xchk_metapath_ilock_parent_and_child()
581 if (!ip || xfs_ilock_nowait(ip, XFS_ILOCK_EXCL)) in xchk_metapath_ilock_parent_and_child()
583 xfs_iunlock(mpath->dp, XFS_ILOCK_EXCL); in xchk_metapath_ilock_parent_and_child()
[all …]
H A Ddirtree_repair.c504 xfs_iunlock(sc->ip, XFS_ILOCK_EXCL); in xrep_dirtree_unlink()
506 xfs_iunlock(dp, XFS_ILOCK_EXCL); in xrep_dirtree_unlink()
543 xchk_iunlock(sc, XFS_ILOCK_EXCL); in xrep_dirtree_delete_path()
555 xchk_ilock(sc, XFS_ILOCK_EXCL); in xrep_dirtree_delete_path()
725 xchk_iunlock(sc, XFS_ILOCK_EXCL); in xrep_dirtree_adopt()
726 xrep_orphanage_iunlock(sc, XFS_ILOCK_EXCL); in xrep_dirtree_adopt()
749 xchk_iunlock(sc, XFS_ILOCK_EXCL); in xrep_dirtree_move_to_orphanage()
760 xchk_ilock(sc, XFS_ILOCK_EXCL); in xrep_dirtree_move_to_orphanage()
H A Dnlinks_repair.c144 xchk_ilock(sc, XFS_ILOCK_EXCL); in xrep_nlinks_repair_inode()
270 xchk_iunlock(sc, XFS_ILOCK_EXCL); in xrep_nlinks_repair_inode()
272 xrep_orphanage_iunlock(sc, XFS_ILOCK_EXCL); in xrep_nlinks_repair_inode()
H A Ddir_repair.c921 xchk_iunlock(rd->sc, XFS_ILOCK_EXCL); in xrep_dir_flush_stashed()
945 xchk_ilock(rd->sc, XFS_ILOCK_EXCL); in xrep_dir_flush_stashed()
1057 xchk_iunlock(sc, XFS_ILOCK_EXCL); in xrep_dir_salvage_entries()
1059 xchk_ilock(sc, XFS_ILOCK_EXCL); in xrep_dir_salvage_entries()
1091 xchk_iunlock(sc, XFS_ILOCK_EXCL); in xrep_dir_salvage_entries()
1213 lock_mode = XFS_ILOCK_EXCL; in xrep_dir_scan_ilock()
1218 lock_mode = XFS_ILOCK_EXCL; in xrep_dir_scan_ilock()
1299 if (sc->ilock_flags & (XFS_ILOCK_SHARED | XFS_ILOCK_EXCL)) in xrep_dir_scan_dirtree()
1301 XFS_ILOCK_EXCL)); in xrep_dir_scan_dirtree()
1672 ASSERT(sc->ilock_flags & XFS_ILOCK_EXCL); in xrep_dir_swap()
[all …]
H A Dparent.c100 if (!xfs_ilock_nowait(dp, XFS_ILOCK_EXCL)) in xchk_parent_ilock_dir()
103 return XFS_ILOCK_EXCL; in xchk_parent_ilock_dir()
179 xchk_iunlock(sc, XFS_ILOCK_EXCL); in xchk_parent_validate()
180 xchk_ilock(sc, XFS_ILOCK_EXCL); in xchk_parent_validate()
368 if (!xfs_ilock_nowait(dp, XFS_ILOCK_EXCL)) { in xchk_parent_lock_dir()
373 return XFS_IOLOCK_SHARED | XFS_ILOCK_EXCL; in xchk_parent_lock_dir()
H A Dquota_repair.c188 xchk_ilock(sc, XFS_ILOCK_EXCL); in xrep_quota_item()
191 xchk_iunlock(sc, XFS_ILOCK_EXCL); in xrep_quota_item()
547 if (!(sc->ilock_flags & XFS_ILOCK_EXCL)) in xrep_quota()
548 xchk_ilock(sc, XFS_ILOCK_EXCL); in xrep_quota()
H A Ddirtree.c549 ASSERT(sc->ilock_flags & XFS_ILOCK_EXCL); in xchk_dirpath_walk_upwards()
579 xchk_iunlock(sc, XFS_ILOCK_EXCL); in xchk_dirpath_walk_upwards()
589 xchk_ilock(sc, XFS_ILOCK_EXCL); in xchk_dirpath_walk_upwards()
603 xchk_ilock(sc, XFS_ILOCK_EXCL); in xchk_dirpath_walk_upwards()
765 ASSERT(dl->sc->ilock_flags & XFS_ILOCK_EXCL); in xchk_dirtree_reset()
H A Dattr_repair.c717 xchk_iunlock(rx->sc, XFS_ILOCK_EXCL); in xrep_xattr_flush_stashed()
752 xchk_ilock(rx->sc, XFS_ILOCK_EXCL); in xrep_xattr_flush_stashed()
786 xfs_assert_ilocked(rx->sc->ip, XFS_ILOCK_EXCL); in xrep_xattr_saw_pptr_conflict()
824 xchk_iunlock(rx->sc, XFS_ILOCK_EXCL); in xrep_xattr_full_reset()
1457 xchk_iunlock(sc, XFS_ILOCK_EXCL); in xrep_xattr_rebuild_tree()
1634 ASSERT(sc->ilock_flags & XFS_ILOCK_EXCL); in xrep_xattr()
H A Dsymlink_repair.c415 xchk_iunlock(sc, XFS_ILOCK_EXCL); in xrep_symlink_rebuild()
498 ASSERT(sc->ilock_flags & XFS_ILOCK_EXCL); in xrep_symlink()
H A Dnlinks.c396 lock_mode = XFS_ILOCK_EXCL; in xchk_nlinks_ilock_dir()
404 lock_mode = XFS_ILOCK_EXCL; in xchk_nlinks_ilock_dir()
/linux/fs/xfs/libxfs/
H A Dxfs_defer.c1031 xfs_assert_ilocked(dfc->dfc_held.dr_ip[i], XFS_ILOCK_EXCL); in xfs_defer_ops_capture()
1119 XFS_ILOCK_EXCL); in xfs_defer_ops_continue()
1121 xfs_lock_two_inodes(dfc->dfc_held.dr_ip[0], XFS_ILOCK_EXCL, in xfs_defer_ops_continue()
1122 dfc->dfc_held.dr_ip[1], XFS_ILOCK_EXCL); in xfs_defer_ops_continue()
1124 xfs_ilock(dfc->dfc_held.dr_ip[0], XFS_ILOCK_EXCL); in xfs_defer_ops_continue()
1149 xfs_iunlock(dres->dr_ip[i], XFS_ILOCK_EXCL); in xfs_defer_resources_rele()

12