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_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()
815 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_reflink_end_cow_extent()
903 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_reflink_end_cow_extent()
[all …]
H A Dxfs_bmap_util.c450 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_bmap_punch_delalloc_range()
479 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_bmap_punch_delalloc_range()
597 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_free_eofblocks()
625 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_free_eofblocks()
750 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_alloc_file_space()
757 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_alloc_file_space()
789 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_unmap_extent()
996 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_collapse_file_space()
1014 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_collapse_file_space()
1019 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_collapse_file_space()
[all …]
H A Dxfs_trans.c1102 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_trans_alloc_inode()
1115 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_trans_alloc_inode()
1128 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_trans_alloc_inode()
1169 xfs_assert_ilocked(ip, XFS_ILOCK_EXCL); in xfs_trans_reserve_more_inode()
1264 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_trans_alloc_ichange()
1265 xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); in xfs_trans_alloc_ichange()
1387 xfs_lock_two_inodes(dp, XFS_ILOCK_EXCL, ip, XFS_ILOCK_EXCL); in xfs_trans_alloc_dir()
1413 xfs_iunlock(dp, XFS_ILOCK_EXCL); in xfs_trans_alloc_dir()
1415 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_trans_alloc_dir()
1435 xfs_iunlock(dp, XFS_ILOCK_EXCL); in xfs_trans_alloc_dir()
[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.h440 #define XFS_ILOCK_EXCL (1u << 2) macro
446 | XFS_ILOCK_EXCL | XFS_ILOCK_SHARED \
452 { XFS_ILOCK_EXCL, "ILOCK_EXCL" }, \
H A Dxfs_aops.c63 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_setfilesize()
66 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_setfilesize()
74 xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); in xfs_setfilesize()
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()
1015 xfs_assert_ilocked(ip, XFS_ILOCK_EXCL); in xfs_qm_dqget_inode()
1035 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_qm_dqget_inode()
1037 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_qm_dqget_inode()
1073 xfs_assert_ilocked(ip, XFS_ILOCK_EXCL); in xfs_qm_dqget_inode()
H A Dxfs_qm.c300 xfs_assert_ilocked(ip, XFS_ILOCK_EXCL); in xfs_qm_dqattach_one()
370 xfs_assert_ilocked(ip, XFS_ILOCK_EXCL); in xfs_qm_dqattach_locked()
402 xfs_assert_ilocked(ip, XFS_ILOCK_EXCL); in xfs_qm_dqattach_locked()
415 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_qm_dqattach()
417 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_qm_dqattach()
1075 xfs_iunlock(*ipp, XFS_ILOCK_EXCL); in xfs_qm_qino_alloc()
1967 lockflags = XFS_ILOCK_EXCL; in xfs_qm_vop_dqalloc()
2093 xfs_assert_ilocked(ip, XFS_ILOCK_EXCL); in xfs_qm_vop_chown()
2194 xfs_assert_ilocked(ip, XFS_ILOCK_EXCL); in xfs_qm_vop_create_dqattach()
H 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()
968 if (!xfs_ilock_nowait(ip, XFS_ILOCK_EXCL)) in xfs_reclaim_inode()
1012 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_reclaim_inode()
1037 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_reclaim_inode()
1039 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_reclaim_inode()
1048 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_reclaim_inode()
H A Dxfs_bmap_item.c518 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_bmap_recover_work()
551 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_bmap_recover_work()
558 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_bmap_recover_work()
H A Dxfs_qm_syscalls.c76 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_qm_scall_trunc_qfile()
94 xfs_iunlock(ip, XFS_ILOCK_EXCL | XFS_IOLOCK_EXCL); in xfs_qm_scall_trunc_qfile()
H A Dxfs_attr_item.c623 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_attri_iread_extents()
625 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_attri_iread_extents()
786 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_attr_recover_work()
799 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_attr_recover_work()
H A Dxfs_iops.c966 lock_flags |= XFS_ILOCK_EXCL; in xfs_setattr_size()
967 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_setattr_size()
1121 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_vn_update_time()
1132 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.c202 xfs_ilock(rtg_bitmap(rtg), XFS_ILOCK_EXCL); in xfs_rtgroup_lock()
203 xfs_ilock(rtg_summary(rtg), XFS_ILOCK_EXCL); in xfs_rtgroup_lock()
209 xfs_ilock(rtg_rmap(rtg), XFS_ILOCK_EXCL); in xfs_rtgroup_lock()
212 xfs_ilock(rtg_refcount(rtg), XFS_ILOCK_EXCL); in xfs_rtgroup_lock()
226 xfs_iunlock(rtg_refcount(rtg), XFS_ILOCK_EXCL); in xfs_rtgroup_unlock()
229 xfs_iunlock(rtg_rmap(rtg), XFS_ILOCK_EXCL); in xfs_rtgroup_unlock()
232 xfs_iunlock(rtg_summary(rtg), XFS_ILOCK_EXCL); in xfs_rtgroup_unlock()
233 xfs_iunlock(rtg_bitmap(rtg), XFS_ILOCK_EXCL); in xfs_rtgroup_unlock()
253 xfs_trans_ijoin(tp, rtg_bitmap(rtg), XFS_ILOCK_EXCL); in xfs_rtgroup_trans_join()
254 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()
1333 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_rtfile_alloc_blocks()
1334 xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); in xfs_rtfile_alloc_blocks()
1380 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_rtfile_initialize_block()
1381 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()
501 xfs_ilock(mpath->dp, XFS_ILOCK_EXCL); in xchk_metapath_ilock_parent_and_child()
502 if (!ip || xfs_ilock_nowait(ip, XFS_ILOCK_EXCL)) in xchk_metapath_ilock_parent_and_child()
504 xfs_iunlock(mpath->dp, XFS_ILOCK_EXCL); in xchk_metapath_ilock_parent_and_child()
[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.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 Dsymlink_repair.c415 xchk_iunlock(sc, XFS_ILOCK_EXCL); in xrep_symlink_rebuild()
498 ASSERT(sc->ilock_flags & XFS_ILOCK_EXCL); in xrep_symlink()

12