Home
last modified time | relevance | path

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

/linux/fs/xfs/scrub/
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()
628 xchk_iunlock(sc, XFS_IOLOCK_EXCL); in xrep_dirtree_adopt_iolock()
[all …]
A Dnlinks_repair.c124 xchk_iunlock(sc, XFS_IOLOCK_EXCL); in xrep_nlinks_repair_inode()
125 xrep_orphanage_iunlock(sc, XFS_IOLOCK_EXCL); in xrep_nlinks_repair_inode()
137 xchk_ilock(sc, XFS_IOLOCK_EXCL); in xrep_nlinks_repair_inode()
142 xchk_iunlock(sc, XFS_IOLOCK_EXCL); in xrep_nlinks_repair_inode()
270 xrep_orphanage_iunlock(sc, XFS_IOLOCK_EXCL); in xrep_nlinks_repair_inode()
272 xchk_iunlock(sc, XFS_IOLOCK_EXCL); in xrep_nlinks_repair_inode()
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()
323 ASSERT(sc->ilock_flags & XFS_IOLOCK_EXCL); in xrep_adoption_trans_alloc()
324 ASSERT(sc->orphanage_ilock_flags & XFS_IOLOCK_EXCL); in xrep_adoption_trans_alloc()
A Dtempfile.h42 xchk_ilock(sc, XFS_IOLOCK_EXCL); in xrep_tempfile_iolock_both()
A Dtempfile.c190 if (xfs_ilock_nowait(sc->tempip, XFS_IOLOCK_EXCL)) { in xrep_tempfile_iolock_nowait()
191 sc->temp_ilock_flags |= XFS_IOLOCK_EXCL; in xrep_tempfile_iolock_nowait()
223 xfs_iunlock(sc->tempip, XFS_IOLOCK_EXCL); in xrep_tempfile_iounlock()
224 sc->temp_ilock_flags &= ~XFS_IOLOCK_EXCL; in xrep_tempfile_iounlock()
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()
A Dparent_repair.c813 if (!xrep_orphanage_ilock_nowait(sc, XFS_IOLOCK_EXCL)) { in xrep_parent_move_to_orphanage()
863 xrep_orphanage_iunlock(sc, XFS_IOLOCK_EXCL); in xrep_parent_move_to_orphanage()
A Dinode.c37 xchk_ilock(sc, XFS_IOLOCK_EXCL); in xchk_prepare_iscrub()
A Ddir_repair.c1853 if (!xrep_orphanage_ilock_nowait(sc, XFS_IOLOCK_EXCL)) { in xrep_dir_move_to_orphanage()
1898 xrep_orphanage_iunlock(sc, XFS_IOLOCK_EXCL); in xrep_dir_move_to_orphanage()
A Dcommon.c1088 xchk_ilock(sc, XFS_IOLOCK_EXCL); in xchk_setup_inode_contents()
A Dbmap.c43 xchk_ilock(sc, XFS_IOLOCK_EXCL); in xchk_setup_inode_bmap()
A Dinode_repair.c1416 xchk_ilock(sc, XFS_IOLOCK_EXCL); in xrep_dinode_core()
/linux/fs/xfs/
A Dxfs_pnfs.c41 *iolock |= XFS_IOLOCK_EXCL; in xfs_break_leased_layouts()
155 xfs_ilock(ip, XFS_IOLOCK_EXCL); in xfs_fs_map_blocks()
212 xfs_iunlock(ip, XFS_IOLOCK_EXCL); in xfs_fs_map_blocks()
218 xfs_iunlock(ip, XFS_IOLOCK_EXCL); in xfs_fs_map_blocks()
274 xfs_ilock(ip, XFS_IOLOCK_EXCL); in xfs_fs_commit_blocks()
335 xfs_iunlock(ip, XFS_IOLOCK_EXCL); in xfs_fs_commit_blocks()
A Dxfs_file.c223 *lock_mode = XFS_IOLOCK_EXCL; in xfs_ilock_iocb_for_write()
397 *iolock = XFS_IOLOCK_EXCL; in xfs_file_write_zero_eof()
463 *iolock = XFS_IOLOCK_EXCL; in xfs_file_write_checks()
609 if (iolock == XFS_IOLOCK_EXCL) { in xfs_file_dio_write_aligned()
610 xfs_ilock_demote(ip, XFS_IOLOCK_EXCL); in xfs_file_dio_write_aligned()
660 iolock = XFS_IOLOCK_EXCL; in xfs_file_dio_write_unaligned()
736 unsigned int iolock = XFS_IOLOCK_EXCL; in xfs_file_dax_write()
782 iolock = XFS_IOLOCK_EXCL; in xfs_file_buffered_write()
1086 uint iolock = XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL; in xfs_file_fallocate()
1335 xfs_ilock_nowait(ip, XFS_IOLOCK_EXCL)) { in xfs_file_release()
[all …]
A Dxfs_inode.c99 (XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL)); in xfs_lock_flags_assert()
147 if (lock_flags & XFS_IOLOCK_EXCL) { in xfs_ilock()
190 if (lock_flags & XFS_IOLOCK_EXCL) { in xfs_ilock_nowait()
221 if (lock_flags & XFS_IOLOCK_EXCL) in xfs_ilock_nowait()
248 if (lock_flags & XFS_IOLOCK_EXCL) in xfs_iunlock()
283 if (lock_flags & XFS_IOLOCK_EXCL) in xfs_ilock_demote()
310 else if (lock_flags & XFS_IOLOCK_EXCL) in xfs_assert_ilocked()
348 if (lock_mode & (XFS_IOLOCK_SHARED|XFS_IOLOCK_EXCL)) { in xfs_lock_inumorder()
401 ASSERT(lock_mode & (XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL | in xfs_lock_inodes()
410 if (lock_mode & XFS_IOLOCK_EXCL) { in xfs_lock_inodes()
[all …]
A Dxfs_inode.h399 #define XFS_IOLOCK_EXCL (1u << 0) macro
406 #define XFS_LOCK_MASK (XFS_IOLOCK_EXCL | XFS_IOLOCK_SHARED \
411 { XFS_IOLOCK_EXCL, "IOLOCK_EXCL" }, \
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()
A Dxfs_icache.c792 ASSERT((lock_flags & (XFS_IOLOCK_EXCL | XFS_IOLOCK_SHARED)) == 0); in xfs_iget()
1191 if (!xfs_ilock_nowait(ip, XFS_IOLOCK_EXCL)) { in xfs_inode_free_eofblocks()
1196 *lockflags |= XFS_IOLOCK_EXCL; in xfs_inode_free_eofblocks()
1359 if (!(*lockflags & XFS_IOLOCK_EXCL) && in xfs_inode_free_cowblocks()
1360 !xfs_ilock_nowait(ip, XFS_IOLOCK_EXCL)) { in xfs_inode_free_cowblocks()
1365 *lockflags |= XFS_IOLOCK_EXCL; in xfs_inode_free_cowblocks()
A Dxfs_bmap_util.c510 xfs_assert_ilocked(ip, XFS_IOLOCK_EXCL); in xfs_can_free_eofblocks()
984 xfs_assert_ilocked(ip, XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL); in xfs_collapse_file_space()
1053 xfs_assert_ilocked(ip, XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL); in xfs_insert_file_space()
A Dxfs_dir2_readdir.c529 xfs_assert_ilocked(dp, XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL); in xfs_readdir()
A Dxfs_iops.c824 xfs_assert_ilocked(ip, XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL); in xfs_setattr_size()
1037 iolock = XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL; in xfs_vn_setattr()
A Dxfs_rtalloc.c682 xfs_ilock(ip, XFS_IOLOCK_EXCL); in xfs_growfs_rt_fixup_extsize()
697 xfs_iunlock(ip, XFS_IOLOCK_EXCL); in xfs_growfs_rt_fixup_extsize()
A Dxfs_reflink.c1521 xfs_ilock_demote(src, XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL); in xfs_reflink_remap_prep()
A Dxfs_iomap.c1461 xfs_assert_ilocked(ip, XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL); in xfs_zero_range()
/linux/fs/xfs/libxfs/
A Dxfs_bmap.c5747 xfs_assert_ilocked(ip, XFS_IOLOCK_EXCL | XFS_ILOCK_EXCL); in xfs_bmse_merge()
5884 xfs_assert_ilocked(ip, XFS_IOLOCK_EXCL | XFS_ILOCK_EXCL); in xfs_bmap_collapse_extents()
5956 xfs_assert_ilocked(ip, XFS_IOLOCK_EXCL); in xfs_bmap_can_insert_extents()
5999 xfs_assert_ilocked(ip, XFS_IOLOCK_EXCL | XFS_ILOCK_EXCL); in xfs_bmap_insert_extents()

Completed in 742 milliseconds