Home
last modified time | relevance | path

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

12

/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.c1082 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_trans_alloc_inode()
1095 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_trans_alloc_inode()
1108 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_trans_alloc_inode()
1157 xfs_assert_ilocked(ip, XFS_ILOCK_EXCL); in xfs_trans_reserve_more_inode()
1252 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_trans_alloc_ichange()
1253 xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); in xfs_trans_alloc_ichange()
1375 xfs_lock_two_inodes(dp, XFS_ILOCK_EXCL, ip, XFS_ILOCK_EXCL); in xfs_trans_alloc_dir()
1401 xfs_iunlock(dp, XFS_ILOCK_EXCL); in xfs_trans_alloc_dir()
1403 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_trans_alloc_dir()
1423 xfs_iunlock(dp, XFS_ILOCK_EXCL); in xfs_trans_alloc_dir()
[all …]
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()
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()
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_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_inode.h441 #define XFS_ILOCK_EXCL (1u << 2) macro
447 | XFS_ILOCK_EXCL | XFS_ILOCK_SHARED \
453 { XFS_ILOCK_EXCL, "ILOCK_EXCL" }, \
H A Dxfs_bmap_item.c528 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_bmap_recover_work()
561 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_bmap_recover_work()
568 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_bmap_recover_work()
H A Dxfs_attr_item.c621 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_attri_iread_extents()
623 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_attri_iread_extents()
784 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_attr_recover_work()
797 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_attr_recover_work()
H A Dxfs_iops.c1058 lock_flags |= XFS_ILOCK_EXCL; in xfs_setattr_size()
1059 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_setattr_size()
1213 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_vn_update_time()
1224 xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); in xfs_vn_update_time()
/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_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()
H A Dxfs_rtbitmap.c1068 xfs_assert_ilocked(rbmip, XFS_ILOCK_EXCL); in xfs_rtfree_extent()
1344 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_rtfile_alloc_blocks()
1345 xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); in xfs_rtfile_alloc_blocks()
1391 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_rtfile_initialize_block()
1392 xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); in xfs_rtfile_initialize_block()
H A Dxfs_attr.c231 xfs_assert_ilocked(args->dp, XFS_ILOCK_SHARED | XFS_ILOCK_EXCL); in xfs_attr_get_ilocked()
1025 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_attr_add_fork()
1030 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_attr_add_fork()
1152 xfs_iunlock(dp, XFS_ILOCK_EXCL); in xfs_attr_set()
/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 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 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 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 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()
1456 xchk_iunlock(sc, XFS_ILOCK_EXCL); in xrep_xattr_rebuild_tree()
1641 ASSERT(sc->ilock_flags & XFS_ILOCK_EXCL); in xrep_xattr()

12