Home
last modified time | relevance | path

Searched refs:XFS_IOLOCK_EXCL (Results 1 – 24 of 24) sorted by relevance

/linux/fs/xfs/scrub/
H A Ddirtree_repair.c350 ASSERT(sc->ilock_flags & XFS_IOLOCK_EXCL); in xrep_dirtree_unlink_iolock()
352 if (xfs_ilock_nowait(dp, XFS_IOLOCK_EXCL)) in xrep_dirtree_unlink_iolock()
355 xchk_iunlock(sc, XFS_IOLOCK_EXCL); in xrep_dirtree_unlink_iolock()
357 xfs_ilock(dp, XFS_IOLOCK_EXCL); in xrep_dirtree_unlink_iolock()
358 if (xchk_ilock_nowait(sc, XFS_IOLOCK_EXCL)) in xrep_dirtree_unlink_iolock()
360 xfs_iunlock(dp, XFS_IOLOCK_EXCL); in xrep_dirtree_unlink_iolock()
363 xchk_ilock(sc, XFS_IOLOCK_EXCL); in xrep_dirtree_unlink_iolock()
494 xfs_iunlock(dp, XFS_IOLOCK_EXCL); in xrep_dirtree_unlink()
623 ASSERT(sc->ilock_flags & XFS_IOLOCK_EXCL); in xrep_dirtree_adopt_iolock()
625 if (xrep_orphanage_ilock_nowait(sc, XFS_IOLOCK_EXCL)) in xrep_dirtree_adopt_iolock()
[all...]
H A Dnlinks_repair.c122 xchk_iunlock(sc, XFS_IOLOCK_EXCL); in xrep_nlinks_repair_inode()
123 xrep_orphanage_iunlock(sc, XFS_IOLOCK_EXCL); in xrep_nlinks_repair_inode()
135 xchk_ilock(sc, XFS_IOLOCK_EXCL); in xrep_nlinks_repair_inode()
140 xchk_iunlock(sc, XFS_IOLOCK_EXCL); in xrep_nlinks_repair_inode()
268 xrep_orphanage_iunlock(sc, XFS_IOLOCK_EXCL); in xrep_nlinks_repair_inode()
270 xchk_iunlock(sc, XFS_IOLOCK_EXCL); in xrep_nlinks_repair_inode()
H A Dtempfile.c218 xfs_ilock(sc->tempip, XFS_IOLOCK_EXCL); in xrep_tempfile_adjust_directory_tree()
219 sc->temp_ilock_flags |= XFS_IOLOCK_EXCL; in xrep_tempfile_adjust_directory_tree()
262 xfs_ilock(sc->tempip, XFS_IOLOCK_EXCL); in xrep_tempfile_remove_metadir()
263 sc->temp_ilock_flags |= XFS_IOLOCK_EXCL; in xrep_tempfile_remove_metadir()
299 if (xfs_ilock_nowait(sc->tempip, XFS_IOLOCK_EXCL)) { in xrep_tempfile_iolock_nowait()
300 sc->temp_ilock_flags |= XFS_IOLOCK_EXCL; in xrep_tempfile_iolock_nowait()
332 xfs_iunlock(sc->tempip, XFS_IOLOCK_EXCL); in xrep_tempfile_iounlock()
333 sc->temp_ilock_flags &= ~XFS_IOLOCK_EXCL; in xrep_tempfile_iounlock()
H A Dorphanage.c259 if (xrep_orphanage_ilock_nowait(sc, XFS_IOLOCK_EXCL)) { in xrep_orphanage_iolock_two()
260 if (xchk_ilock_nowait(sc, XFS_IOLOCK_EXCL)) in xrep_orphanage_iolock_two()
262 xrep_orphanage_iunlock(sc, XFS_IOLOCK_EXCL); in xrep_orphanage_iolock_two()
325 ASSERT(sc->ilock_flags & XFS_IOLOCK_EXCL); in xrep_adoption_trans_alloc()
326 ASSERT(sc->orphanage_ilock_flags & XFS_IOLOCK_EXCL); in xrep_adoption_trans_alloc()
H A Dtempfile.h44 xchk_ilock(sc, XFS_IOLOCK_EXCL); in xrep_tempfile_iolock_both()
H A Dreaddir.c356 if (!xchk_ilock_nowait(sc, XFS_IOLOCK_EXCL)) in xchk_dir_trylock_both()
372 xchk_iunlock(sc, XFS_IOLOCK_EXCL); in xchk_dir_trylock_both()
H A Dparent_repair.c809 if (!xrep_orphanage_ilock_nowait(sc, XFS_IOLOCK_EXCL)) { in xrep_parent_move_to_orphanage()
859 xrep_orphanage_iunlock(sc, XFS_IOLOCK_EXCL); in xrep_parent_move_to_orphanage()
H A Dinode.c37 xchk_ilock(sc, XFS_IOLOCK_EXCL); in xchk_prepare_iscrub()
H A Ddir_repair.c1859 if (!xrep_orphanage_ilock_nowait(sc, XFS_IOLOCK_EXCL)) { in xrep_dir_move_to_orphanage()
1904 xrep_orphanage_iunlock(sc, XFS_IOLOCK_EXCL); in xrep_dir_move_to_orphanage()
H A Dbmap.c46 xchk_ilock(sc, XFS_IOLOCK_EXCL); in xchk_setup_inode_bmap()
H A Dcommon.c1280 xchk_ilock(sc, XFS_IOLOCK_EXCL); in xchk_setup_inode_contents()
H A Dinode_repair.c1602 xchk_ilock(sc, XFS_IOLOCK_EXCL); in xrep_dinode_core()
/linux/fs/xfs/
H A Dxfs_pnfs.c41 *iolock |= XFS_IOLOCK_EXCL; in xfs_break_leased_layouts()
152 xfs_ilock(ip, XFS_IOLOCK_EXCL); in xfs_fs_map_blocks()
209 xfs_iunlock(ip, XFS_IOLOCK_EXCL); in xfs_fs_map_blocks()
215 xfs_iunlock(ip, XFS_IOLOCK_EXCL); in xfs_fs_map_blocks()
271 xfs_ilock(ip, XFS_IOLOCK_EXCL); in xfs_fs_commit_blocks()
332 xfs_iunlock(ip, XFS_IOLOCK_EXCL); in xfs_fs_commit_blocks()
H A Dxfs_file.c225 *lock_mode = XFS_IOLOCK_EXCL; in xfs_ilock_iocb_for_write()
376 * XFS_IOLOCK_EXCL) that prevents new IO from being dispatched. The in xfs_file_write_zero_eof()
378 * XFS_IOLOCK_EXCL so we are guaranteed to see the latest EOF value and in xfs_file_write_zero_eof()
400 *iolock = XFS_IOLOCK_EXCL; in xfs_file_write_zero_eof()
409 * before we are given the XFS_IOLOCK_EXCL, and so for most in xfs_file_write_zero_eof()
467 *iolock = XFS_IOLOCK_EXCL; in xfs_file_write_checks()
698 if (iolock == XFS_IOLOCK_EXCL) { in xfs_file_dio_write_aligned()
699 xfs_ilock_demote(ip, XFS_IOLOCK_EXCL); in xfs_file_dio_write_aligned()
770 if (iolock == XFS_IOLOCK_EXCL) { in xfs_file_dio_write_atomic()
771 xfs_ilock_demote(ip, XFS_IOLOCK_EXCL); in xfs_file_dio_write_atomic()
[all...]
H A Dxfs_inode.c91 * and only XFS_IOLOCK_SHARED, XFS_IOLOCK_EXCL, XFS_MMAPLOCK_SHARED,
99 ASSERT((lock_flags & (XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL)) != in xfs_lock_flags_assert()
100 (XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL)); in xfs_lock_flags_assert()
148 if (lock_flags & XFS_IOLOCK_EXCL) { in xfs_ilock()
191 if (lock_flags & XFS_IOLOCK_EXCL) { in xfs_ilock_nowait()
222 if (lock_flags & XFS_IOLOCK_EXCL) in xfs_ilock_nowait()
249 if (lock_flags & XFS_IOLOCK_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()
284 if (lock_flags & XFS_IOLOCK_EXCL) in xfs_ilock_demote()
[all...]
H A Dxfs_qm_syscalls.c68 xfs_ilock(ip, XFS_IOLOCK_EXCL); in xfs_qm_scall_trunc_qfile()
72 xfs_iunlock(ip, XFS_IOLOCK_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_inode.h428 #define XFS_IOLOCK_EXCL (1u << 0) macro
435 #define XFS_LOCK_MASK (XFS_IOLOCK_EXCL | XFS_IOLOCK_SHARED \
440 { XFS_IOLOCK_EXCL, "IOLOCK_EXCL" }, \
H A Dxfs_bmap_util.c518 xfs_assert_ilocked(ip, XFS_IOLOCK_EXCL); in xfs_can_free_eofblocks()
998 xfs_assert_ilocked(ip, XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL); in xfs_collapse_file_space()
1067 xfs_assert_ilocked(ip, XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL); in xfs_insert_file_space()
H A Dxfs_dir2_readdir.c529 xfs_assert_ilocked(dp, XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL); in xfs_readdir()
H A Dxfs_rtalloc.c701 xfs_ilock(ip, XFS_IOLOCK_EXCL); in xfs_growfs_rt_fixup_extsize()
716 xfs_iunlock(ip, XFS_IOLOCK_EXCL); in xfs_growfs_rt_fixup_extsize()
H A Dxfs_zone_gc.c831 uint iolock = XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL; in xfs_zone_gc_finish_chunk()
H A Dxfs_reflink.c1724 xfs_ilock_demote(src, XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL); in xfs_reflink_remap_prep()
H A Dxfs_iomap.c2197 xfs_assert_ilocked(ip, XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL); in xfs_zero_range()
/linux/fs/xfs/libxfs/
H A Dxfs_bmap.c5553 xfs_assert_ilocked(ip, XFS_IOLOCK_EXCL | XFS_ILOCK_EXCL); in xfs_bmse_merge()
5690 xfs_assert_ilocked(ip, XFS_IOLOCK_EXCL | XFS_ILOCK_EXCL); in xfs_bmap_collapse_extents()
5763 xfs_assert_ilocked(ip, XFS_IOLOCK_EXCL); in xfs_bmap_can_insert_extents()
5806 xfs_assert_ilocked(ip, XFS_IOLOCK_EXCL | XFS_ILOCK_EXCL); in xfs_bmap_insert_extents()