Home
last modified time | relevance | path

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

123

/fs/xfs/
A Dxfs_symlink.c220 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()
354 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_inactive_symlink()
[all …]
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()
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()
280 if (lock_flags & XFS_ILOCK_EXCL) in xfs_ilock_demote()
402 XFS_ILOCK_EXCL)); in xfs_lock_inodes()
763 xfs_iunlock(dp, XFS_ILOCK_EXCL); in xfs_create()
856 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_create_tmpfile()
1157 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_inactive_truncate()
[all …]
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()
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()
1023 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_reflink_end_atomic_cow()
1194 xfs_lock_two_inodes(src, XFS_ILOCK_EXCL, dest, XFS_ILOCK_EXCL); in xfs_reflink_set_inode_flag()
[all …]
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()
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()
1084 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_insert_file_space()
[all …]
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 …]
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()
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()
597 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_zoned_map_blocks()
605 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_zoned_map_blocks()
616 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_zoned_map_blocks()
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()
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()
1201 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_atomic_write_cow_iomap_begin()
[all …]
A Dxfs_icache.c369 if (!xfs_ilock_nowait(ip, XFS_ILOCK_EXCL)) in xfs_iget_recycle()
385 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_iget_recycle()
965 if (!xfs_ilock_nowait(ip, XFS_ILOCK_EXCL)) in xfs_reclaim_inode()
985 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_reclaim_inode()
987 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_reclaim_inode()
1017 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_reclaim_inode()
1042 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_reclaim_inode()
1044 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_reclaim_inode()
1053 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_reclaim_inode()
/fs/xfs/libxfs/
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()
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 …]
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()
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()
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()
/fs/xfs/scrub/
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()
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()
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()
377 sc->temp_ilock_flags |= XFS_ILOCK_EXCL; in xrep_tempfile_ilock_both()
386 xchk_iunlock(sc, XFS_ILOCK_EXCL); in xrep_tempfile_iunlock_both()
[all …]
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()
502 xfs_iunlock(mpath->dp, XFS_ILOCK_EXCL); in xchk_metapath_ilock_parent_and_child()
605 xfs_iunlock(mpath->dp, XFS_ILOCK_EXCL); in xrep_metapath_try_unlink()
[all …]
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()
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()
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()
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()
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()
1099 xchk_ilock(rp->sc, XFS_ILOCK_EXCL); in xrep_parent_flush_xattrs()
[all …]
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()
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()
1291 XFS_ILOCK_EXCL)); in xrep_dir_scan_dirtree()
1647 ASSERT(sc->ilock_flags & XFS_ILOCK_EXCL); in xrep_dir_swap()
1856 xchk_iunlock(sc, XFS_ILOCK_EXCL); in xrep_dir_move_to_orphanage()
[all …]
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()
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()
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()

Completed in 55 milliseconds

123