Home
last modified time | relevance | path

Searched refs:XFS_ILOCK_EXCL (Results 1 – 25 of 54) 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()
92 * XFS_MMAPLOCK_EXCL, XFS_ILOCK_SHARED, XFS_ILOCK_EXCL are valid values
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)) 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.c1081 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_trans_alloc_inode()
1094 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_trans_alloc_inode()
1107 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_trans_alloc_inode()
1156 xfs_assert_ilocked(ip, XFS_ILOCK_EXCL); in xfs_trans_reserve_more_inode()
1251 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_trans_alloc_ichange()
1252 xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); in xfs_trans_alloc_ichange()
1374 xfs_lock_two_inodes(dp, XFS_ILOCK_EXCL, ip, XFS_ILOCK_EXCL); in xfs_trans_alloc_dir()
1400 xfs_iunlock(dp, XFS_ILOCK_EXCL); in xfs_trans_alloc_dir()
1402 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_trans_alloc_dir()
1422 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_iomap.c345 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_iomap_write_direct()
689 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_iomap_write_unwritten()
714 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_iomap_write_unwritten()
779 *lockmode = XFS_ILOCK_EXCL; in xfs_ilock_for_iomap()
879 lockmode = XFS_ILOCK_EXCL; in xfs_direct_write_iomap_begin()
894 lockmode = XFS_ILOCK_EXCL; in xfs_direct_write_iomap_begin()
1064 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_zoned_direct_write_iomap_begin()
1066 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_zoned_direct_write_iomap_begin()
1125 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_atomic_write_cow_iomap_begin()
1144 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_atomic_write_cow_iomap_begin()
[all...]
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_acl.c234 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_acl_set_mode()
235 xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); in xfs_acl_set_mode()
H A Dxfs_inode.h441 #define XFS_ILOCK_EXCL (1u << 2) macro
447 | XFS_ILOCK_EXCL | XFS_ILOCK_SHARED \
453 { XFS_ILOCK_EXCL, "ILOCK_EXCL" }, \
/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()
[all...]
H A Dxfs_rtgroup.c203 xfs_ilock(rtg_bitmap(rtg), XFS_ILOCK_EXCL); in xfs_rtgroup_lock()
204 xfs_ilock(rtg_summary(rtg), XFS_ILOCK_EXCL); in xfs_rtgroup_lock()
211 xfs_ilock(rtg_rmap(rtg), XFS_ILOCK_EXCL); in xfs_rtgroup_lock()
214 xfs_ilock(rtg_refcount(rtg), XFS_ILOCK_EXCL); in xfs_rtgroup_lock()
228 xfs_iunlock(rtg_refcount(rtg), XFS_ILOCK_EXCL); in xfs_rtgroup_unlock()
231 xfs_iunlock(rtg_rmap(rtg), XFS_ILOCK_EXCL); in xfs_rtgroup_unlock()
235 xfs_iunlock(rtg_summary(rtg), XFS_ILOCK_EXCL); in xfs_rtgroup_unlock()
236 xfs_iunlock(rtg_bitmap(rtg), XFS_ILOCK_EXCL); in xfs_rtgroup_unlock()
258 xfs_trans_ijoin(tp, rtg_bitmap(rtg), XFS_ILOCK_EXCL); in xfs_rtgroup_trans_join()
259 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()
H A Dxfs_dir2.c274 xfs_assert_ilocked(dp, XFS_ILOCK_SHARED | XFS_ILOCK_EXCL); in xfs_dir2_format()
856 xfs_assert_ilocked(ip, XFS_ILOCK_EXCL); in xfs_dir_create_child()
857 xfs_assert_ilocked(dp, XFS_ILOCK_EXCL); in xfs_dir_create_child()
907 xfs_assert_ilocked(ip, XFS_ILOCK_EXCL); in xfs_dir_add_child()
908 xfs_assert_ilocked(dp, XFS_ILOCK_EXCL); in xfs_dir_add_child()
970 xfs_assert_ilocked(ip, XFS_ILOCK_EXCL); in xfs_dir_remove_child()
971 xfs_assert_ilocked(dp, XFS_ILOCK_EXCL); in xfs_dir_remove_child()
/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()
[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.c327 ASSERT(!(sc->ilock_flags & (XFS_ILOCK_SHARED | XFS_ILOCK_EXCL))); in xrep_adoption_trans_alloc()
329 (XFS_ILOCK_SHARED | XFS_ILOCK_EXCL))); in xrep_adoption_trans_alloc()
352 xfs_lock_two_inodes(sc->orphanage, XFS_ILOCK_EXCL, in xrep_adoption_trans_alloc()
353 sc->ip, XFS_ILOCK_EXCL); in xrep_adoption_trans_alloc()
354 sc->ilock_flags |= XFS_ILOCK_EXCL; in xrep_adoption_trans_alloc()
355 sc->orphanage_ilock_flags |= XFS_ILOCK_EXCL; in xrep_adoption_trans_alloc()
386 xrep_orphanage_iunlock(sc, XFS_ILOCK_EXCL); in xrep_adoption_trans_alloc()
387 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.c911 xchk_iunlock(rd->sc, XFS_ILOCK_EXCL); in xrep_dir_flush_stashed()
935 xchk_ilock(rd->sc, XFS_ILOCK_EXCL); in xrep_dir_flush_stashed()
1047 xchk_iunlock(sc, XFS_ILOCK_EXCL); in xrep_dir_salvage_entries()
1049 xchk_ilock(sc, XFS_ILOCK_EXCL); in xrep_dir_salvage_entries()
1081 xchk_iunlock(sc, XFS_ILOCK_EXCL); in xrep_dir_salvage_entries()
1203 lock_mode = XFS_ILOCK_EXCL; in xrep_dir_scan_ilock()
1208 lock_mode = XFS_ILOCK_EXCL; in xrep_dir_scan_ilock()
1289 if (sc->ilock_flags & (XFS_ILOCK_SHARED | XFS_ILOCK_EXCL)) in xrep_dir_scan_dirtree()
1291 XFS_ILOCK_EXCL)); in xrep_dir_scan_dirtree()
1647 ASSERT(sc->ilock_flags & XFS_ILOCK_EXCL); in xrep_dir_swap()
[all...]
H A Dquota_repair.c191 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 Ddirtree.c523 ASSERT(sc->ilock_flags & XFS_ILOCK_EXCL); in xchk_dirpath_walk_upwards()
553 xchk_iunlock(sc, XFS_ILOCK_EXCL); in xchk_dirpath_walk_upwards()
563 xchk_ilock(sc, XFS_ILOCK_EXCL); in xchk_dirpath_walk_upwards()
577 xchk_ilock(sc, XFS_ILOCK_EXCL); in xchk_dirpath_walk_upwards()
739 ASSERT(dl->sc->ilock_flags & XFS_ILOCK_EXCL); in xchk_dirtree_reset()

123