Home
last modified time | relevance | path

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

123

/linux/fs/xfs/
H A Dxfs_symlink.c154 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 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()
466 *lockmode = XFS_ILOCK_EXCL; in xfs_reflink_fill_cow_hole()
522 *lockmode = XFS_ILOCK_EXCL; in xfs_reflink_fill_delalloc()
574 xfs_assert_ilocked(ip, XFS_ILOCK_EXCL); in xfs_reflink_allocate_cow()
727 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_reflink_cancel_cow_range()
738 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_reflink_cancel_cow_range()
743 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_reflink_cancel_cow_range()
917 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_reflink_end_cow_extent()
925 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()
766 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_alloc_file_space()
773 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_alloc_file_space()
805 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_unmap_extent()
1014 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_collapse_file_space()
1032 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_collapse_file_space()
1037 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_collapse_file_space()
[all …]
H A Dxfs_trans.c1086 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_trans_alloc_inode()
1099 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_trans_alloc_inode()
1112 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_trans_alloc_inode()
1161 xfs_assert_ilocked(ip, XFS_ILOCK_EXCL); in xfs_trans_reserve_more_inode()
1256 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_trans_alloc_ichange()
1257 xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); in xfs_trans_alloc_ichange()
1379 xfs_lock_two_inodes(dp, XFS_ILOCK_EXCL, ip, XFS_ILOCK_EXCL); in xfs_trans_alloc_dir()
1405 xfs_iunlock(dp, XFS_ILOCK_EXCL); in xfs_trans_alloc_dir()
1407 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_trans_alloc_dir()
1427 xfs_iunlock(dp, XFS_ILOCK_EXCL); in xfs_trans_alloc_dir()
[all …]
H A Dxfs_pnfs.c91 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_fs_map_update_inode()
92 xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); in xfs_fs_map_update_inode()
317 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_fs_commit_blocks()
318 xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); in xfs_fs_commit_blocks()
H A Dxfs_aops.c65 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_setfilesize()
68 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_setfilesize()
76 xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); in xfs_setfilesize()
601 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_zoned_map_blocks()
609 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_zoned_map_blocks()
620 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_zoned_map_blocks()
H A Dxfs_iomap.c354 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_iomap_write_direct()
698 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_iomap_write_unwritten()
723 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_iomap_write_unwritten()
788 *lockmode = XFS_ILOCK_EXCL; in xfs_ilock_for_iomap()
888 lockmode = XFS_ILOCK_EXCL; in xfs_direct_write_iomap_begin()
903 lockmode = XFS_ILOCK_EXCL; in xfs_direct_write_iomap_begin()
1073 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_zoned_direct_write_iomap_begin()
1075 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_zoned_direct_write_iomap_begin()
1158 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_atomic_write_cow_iomap_begin()
1185 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()
1004 xfs_assert_ilocked(ip, XFS_ILOCK_EXCL); in xfs_qm_dqget_inode()
1010 xfs_assert_ilocked(ip, XFS_ILOCK_EXCL); in xfs_qm_dqget_inode()
1028 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_qm_dqget_inode()
1030 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_qm_dqget_inode()
1068 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()
/linux/fs/xfs/libxfs/
H A Dxfs_metadir.c145 xfs_ilock(dp, XFS_ILOCK_EXCL); in xfs_metadir_load()
147 xfs_iunlock(dp, XFS_ILOCK_EXCL); in xfs_metadir_load()
172 xfs_iunlock(upd->ip, XFS_ILOCK_EXCL); in xfs_metadir_teardown()
177 xfs_iunlock(upd->dp, XFS_ILOCK_EXCL); in xfs_metadir_teardown()
217 xfs_ilock(upd->dp, XFS_ILOCK_EXCL | XFS_ILOCK_PARENT); in xfs_metadir_start_create()
259 xfs_assert_ilocked(upd->dp, XFS_ILOCK_EXCL); in xfs_metadir_create()
346 xfs_iunlock(upd->dp, XFS_ILOCK_EXCL); in xfs_metadir_start_link()
347 xfs_iunlock(upd->ip, XFS_ILOCK_EXCL); in xfs_metadir_start_link()
383 xfs_assert_ilocked(upd->dp, XFS_ILOCK_EXCL); in xfs_metadir_link()
384 xfs_assert_ilocked(upd->ip, XFS_ILOCK_EXCL); in xfs_metadir_link()
H A Dxfs_rtgroup.c204 xfs_ilock(rtg_bitmap(rtg), XFS_ILOCK_EXCL); in xfs_rtgroup_lock()
205 xfs_ilock(rtg_summary(rtg), XFS_ILOCK_EXCL); in xfs_rtgroup_lock()
212 xfs_ilock(rtg_rmap(rtg), XFS_ILOCK_EXCL); in xfs_rtgroup_lock()
215 xfs_ilock(rtg_refcount(rtg), XFS_ILOCK_EXCL); in xfs_rtgroup_lock()
229 xfs_iunlock(rtg_refcount(rtg), XFS_ILOCK_EXCL); in xfs_rtgroup_unlock()
232 xfs_iunlock(rtg_rmap(rtg), XFS_ILOCK_EXCL); in xfs_rtgroup_unlock()
236 xfs_iunlock(rtg_summary(rtg), XFS_ILOCK_EXCL); in xfs_rtgroup_unlock()
237 xfs_iunlock(rtg_bitmap(rtg), XFS_ILOCK_EXCL); in xfs_rtgroup_unlock()
259 xfs_trans_ijoin(tp, rtg_bitmap(rtg), XFS_ILOCK_EXCL); in xfs_rtgroup_trans_join()
260 xfs_trans_ijoin(tp, rtg_summary(rtg), XFS_ILOCK_EXCL); in xfs_rtgroup_trans_join()
[all …]
H A Dxfs_trans_inode.c34 xfs_assert_ilocked(ip, XFS_ILOCK_EXCL); in xfs_trans_ijoin()
63 xfs_assert_ilocked(ip, XFS_ILOCK_EXCL); in xfs_trans_ichgtime()
95 xfs_assert_ilocked(ip, XFS_ILOCK_EXCL); in xfs_trans_log_inode()
H A Dxfs_defer.c1017 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()
/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()
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 Dmetapath.c273 xfs_ilock(mpath->dp, XFS_ILOCK_EXCL); in xchk_metapath_ilock_both()
274 if (xchk_ilock_nowait(sc, XFS_ILOCK_EXCL)) { in xchk_metapath_ilock_both()
275 mpath->dp_ilock_flags |= XFS_ILOCK_EXCL; in xchk_metapath_ilock_both()
278 xfs_iunlock(mpath->dp, XFS_ILOCK_EXCL); in xchk_metapath_ilock_both()
297 xchk_iunlock(sc, XFS_ILOCK_EXCL); in xchk_metapath_iunlock()
299 mpath->dp_ilock_flags &= ~XFS_ILOCK_EXCL; in xchk_metapath_iunlock()
300 xfs_iunlock(mpath->dp, XFS_ILOCK_EXCL); in xchk_metapath_iunlock()
499 xfs_ilock(mpath->dp, XFS_ILOCK_EXCL); in xchk_metapath_ilock_parent_and_child()
500 if (!ip || xfs_ilock_nowait(ip, XFS_ILOCK_EXCL)) in xchk_metapath_ilock_parent_and_child()
502 xfs_iunlock(mpath->dp, XFS_ILOCK_EXCL); in xchk_metapath_ilock_parent_and_child()
[all …]
H A Dorphanage.c324 ASSERT(!(sc->ilock_flags & (XFS_ILOCK_SHARED | XFS_ILOCK_EXCL))); in xrep_adoption_trans_alloc()
326 (XFS_ILOCK_SHARED | XFS_ILOCK_EXCL))); in xrep_adoption_trans_alloc()
349 xfs_lock_two_inodes(sc->orphanage, XFS_ILOCK_EXCL, in xrep_adoption_trans_alloc()
350 sc->ip, XFS_ILOCK_EXCL); in xrep_adoption_trans_alloc()
351 sc->ilock_flags |= XFS_ILOCK_EXCL; in xrep_adoption_trans_alloc()
352 sc->orphanage_ilock_flags |= XFS_ILOCK_EXCL; in xrep_adoption_trans_alloc()
383 xrep_orphanage_iunlock(sc, XFS_ILOCK_EXCL); in xrep_adoption_trans_alloc()
384 xchk_iunlock(sc, XFS_ILOCK_EXCL); in xrep_adoption_trans_alloc()
H A Dreaddir.c285 xfs_assert_ilocked(dp, XFS_ILOCK_SHARED | XFS_ILOCK_EXCL); in xchk_dir_walk()
338 xfs_assert_ilocked(dp, XFS_ILOCK_SHARED | XFS_ILOCK_EXCL); in xchk_dir_lookup()
362 xchk_ilock(sc, XFS_ILOCK_EXCL); in xchk_dir_trylock_both()
363 if (!xfs_ilock_nowait(ip, XFS_ILOCK_EXCL)) in xchk_dir_trylock_both()
366 return XFS_IOLOCK_SHARED | XFS_ILOCK_EXCL; in xchk_dir_trylock_both()
369 xchk_iunlock(sc, XFS_ILOCK_EXCL); in xchk_dir_trylock_both()
H A Ddirtree_repair.c491 xfs_iunlock(sc->ip, XFS_ILOCK_EXCL); in xrep_dirtree_unlink()
492 xfs_iunlock(dp, XFS_ILOCK_EXCL); in xrep_dirtree_unlink()
528 xchk_iunlock(sc, XFS_ILOCK_EXCL); in xrep_dirtree_delete_path()
540 xchk_ilock(sc, XFS_ILOCK_EXCL); in xrep_dirtree_delete_path()
709 xchk_iunlock(sc, XFS_ILOCK_EXCL); in xrep_dirtree_adopt()
710 xrep_orphanage_iunlock(sc, XFS_ILOCK_EXCL); in xrep_dirtree_adopt()
733 xchk_iunlock(sc, XFS_ILOCK_EXCL); in xrep_dirtree_move_to_orphanage()
744 xchk_ilock(sc, XFS_ILOCK_EXCL); in xrep_dirtree_move_to_orphanage()
H A Dparent_repair.c266 xchk_iunlock(sc, XFS_ILOCK_EXCL); in xrep_parent_find_dotdot()
281 xchk_ilock(sc, XFS_ILOCK_EXCL); in xrep_parent_find_dotdot()
493 lock_mode = XFS_ILOCK_EXCL; in xrep_parent_scan_ilock()
569 if (sc->ilock_flags & (XFS_ILOCK_SHARED | XFS_ILOCK_EXCL)) in xrep_parent_scan_dirtree()
571 XFS_ILOCK_EXCL)); in xrep_parent_scan_dirtree()
621 xchk_ilock(rp->sc, XFS_ILOCK_EXCL); in xrep_parent_scan_dirtree()
679 ASSERT(sc->ilock_flags & XFS_ILOCK_EXCL); in xrep_parent_reset_dotdot()
806 xchk_iunlock(sc, XFS_ILOCK_EXCL); in xrep_parent_move_to_orphanage()
858 xrep_orphanage_iunlock(sc, XFS_ILOCK_EXCL); in xrep_parent_move_to_orphanage()
1066 xchk_iunlock(rp->sc, XFS_ILOCK_EXCL); in xrep_parent_flush_xattrs()
[all …]
H A Dnlinks_repair.c144 xchk_ilock(sc, XFS_ILOCK_EXCL); in xrep_nlinks_repair_inode()
265 xchk_iunlock(sc, XFS_ILOCK_EXCL); in xrep_nlinks_repair_inode()
267 xrep_orphanage_iunlock(sc, XFS_ILOCK_EXCL); in xrep_nlinks_repair_inode()
H A Ddir_repair.c915 xchk_iunlock(rd->sc, XFS_ILOCK_EXCL); in xrep_dir_flush_stashed()
939 xchk_ilock(rd->sc, XFS_ILOCK_EXCL); in xrep_dir_flush_stashed()
1051 xchk_iunlock(sc, XFS_ILOCK_EXCL); in xrep_dir_salvage_entries()
1053 xchk_ilock(sc, XFS_ILOCK_EXCL); in xrep_dir_salvage_entries()
1085 xchk_iunlock(sc, XFS_ILOCK_EXCL); in xrep_dir_salvage_entries()
1207 lock_mode = XFS_ILOCK_EXCL; in xrep_dir_scan_ilock()
1212 lock_mode = XFS_ILOCK_EXCL; in xrep_dir_scan_ilock()
1293 if (sc->ilock_flags & (XFS_ILOCK_SHARED | XFS_ILOCK_EXCL)) in xrep_dir_scan_dirtree()
1295 XFS_ILOCK_EXCL)); in xrep_dir_scan_dirtree()
1651 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()
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 Dquota_repair.c188 xchk_ilock(sc, XFS_ILOCK_EXCL); in xrep_quota_item()
191 xchk_iunlock(sc, XFS_ILOCK_EXCL); in xrep_quota_item()
541 if (!(sc->ilock_flags & XFS_ILOCK_EXCL)) in xrep_quota()
542 xchk_ilock(sc, XFS_ILOCK_EXCL); in xrep_quota()
H A Ddirtree.c522 ASSERT(sc->ilock_flags & XFS_ILOCK_EXCL); in xchk_dirpath_walk_upwards()
552 xchk_iunlock(sc, XFS_ILOCK_EXCL); in xchk_dirpath_walk_upwards()
562 xchk_ilock(sc, XFS_ILOCK_EXCL); in xchk_dirpath_walk_upwards()
576 xchk_ilock(sc, XFS_ILOCK_EXCL); in xchk_dirpath_walk_upwards()
738 ASSERT(dl->sc->ilock_flags & XFS_ILOCK_EXCL); in xchk_dirtree_reset()

123