Home
last modified time | relevance | path

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

/linux-6.15/fs/xfs/scrub/
H A Dorphanage.c216 unsigned int ilock_flags) in xrep_orphanage_ilock() argument
218 sc->orphanage_ilock_flags |= ilock_flags; in xrep_orphanage_ilock()
219 xfs_ilock(sc->orphanage, ilock_flags); in xrep_orphanage_ilock()
225 unsigned int ilock_flags) in xrep_orphanage_ilock_nowait() argument
227 if (xfs_ilock_nowait(sc->orphanage, ilock_flags)) { in xrep_orphanage_ilock_nowait()
228 sc->orphanage_ilock_flags |= ilock_flags; in xrep_orphanage_ilock_nowait()
238 unsigned int ilock_flags) in xrep_orphanage_iunlock() argument
240 xfs_iunlock(sc->orphanage, ilock_flags); in xrep_orphanage_iunlock()
241 sc->orphanage_ilock_flags &= ~ilock_flags; in xrep_orphanage_iunlock()
326 ASSERT(sc->ilock_flags & XFS_IOLOCK_EXCL); in xrep_adoption_trans_alloc()
[all …]
H A Dorphanage.h43 void xrep_orphanage_ilock(struct xfs_scrub *sc, unsigned int ilock_flags);
45 unsigned int ilock_flags);
46 void xrep_orphanage_iunlock(struct xfs_scrub *sc, unsigned int ilock_flags);
H A Dcommon.c1298 unsigned int ilock_flags) in xchk_ilock() argument
1300 xfs_ilock(sc->ip, ilock_flags); in xchk_ilock()
1301 sc->ilock_flags |= ilock_flags; in xchk_ilock()
1307 unsigned int ilock_flags) in xchk_ilock_nowait() argument
1309 if (xfs_ilock_nowait(sc->ip, ilock_flags)) { in xchk_ilock_nowait()
1310 sc->ilock_flags |= ilock_flags; in xchk_ilock_nowait()
1320 unsigned int ilock_flags) in xchk_iunlock() argument
1322 sc->ilock_flags &= ~ilock_flags; in xchk_iunlock()
1323 xfs_iunlock(sc->ip, ilock_flags); in xchk_iunlock()
H A Dcommon.h177 void xchk_ilock(struct xfs_scrub *sc, unsigned int ilock_flags);
178 bool xchk_ilock_nowait(struct xfs_scrub *sc, unsigned int ilock_flags);
179 void xchk_iunlock(struct xfs_scrub *sc, unsigned int ilock_flags);
H A Dquotacheck.c396 uint ilock_flags = 0; in xqcheck_collect_inode() local
423 ilock_flags = xfs_ilock_data_map_shared(ip); in xqcheck_collect_inode()
428 ilock_flags = XFS_ILOCK_SHARED; in xqcheck_collect_inode()
475 xfs_iunlock(ip, ilock_flags); in xqcheck_collect_inode()
H A Dscrub.c219 sc->ilock_flags = sub->sc.ilock_flags; in xchk_scrub_free_subord()
245 if (sc->ilock_flags) in xchk_teardown()
246 xchk_iunlock(sc, sc->ilock_flags); in xchk_teardown()
H A Dparent_repair.c569 if (sc->ilock_flags & (XFS_ILOCK_SHARED | XFS_ILOCK_EXCL)) in xrep_parent_scan_dirtree()
570 xchk_iunlock(sc, sc->ilock_flags & (XFS_ILOCK_SHARED | in xrep_parent_scan_dirtree()
683 ASSERT(sc->ilock_flags & XFS_ILOCK_EXCL); in xrep_parent_reset_dotdot()
814 xchk_iunlock(sc, sc->ilock_flags); in xrep_parent_move_to_orphanage()
H A Dquota_repair.c543 if (!(sc->ilock_flags & XFS_ILOCK_EXCL)) in xrep_quota()
560 xchk_iunlock(sc, sc->ilock_flags); in xrep_quota()
H A Ddirtree_repair.c350 ASSERT(sc->ilock_flags & XFS_IOLOCK_EXCL); in xrep_dirtree_unlink_iolock()
623 ASSERT(sc->ilock_flags & XFS_IOLOCK_EXCL); in xrep_dirtree_adopt_iolock()
H A Dscrub.h171 uint ilock_flags; member
H A Ddir_repair.c1289 if (sc->ilock_flags & (XFS_ILOCK_SHARED | XFS_ILOCK_EXCL)) in xrep_dir_scan_dirtree()
1290 xchk_iunlock(sc, sc->ilock_flags & (XFS_ILOCK_SHARED | in xrep_dir_scan_dirtree()
1651 ASSERT(sc->ilock_flags & XFS_ILOCK_EXCL); in xrep_dir_swap()
1864 xchk_iunlock(sc, sc->ilock_flags); in xrep_dir_move_to_orphanage()
H A Ddirtree.c523 ASSERT(sc->ilock_flags & XFS_ILOCK_EXCL); in xchk_dirpath_walk_upwards()
739 ASSERT(dl->sc->ilock_flags & XFS_ILOCK_EXCL); in xchk_dirtree_reset()
H A Dtempfile.c376 sc->ilock_flags |= XFS_ILOCK_EXCL; in xrep_tempfile_ilock_both()
868 sc->ilock_flags |= XFS_ILOCK_EXCL; in xrep_tempexch_trans_alloc()
H A Dquota.c327 xchk_iunlock(sc, sc->ilock_flags); in xchk_quota()
H A Dsymlink_repair.c498 ASSERT(sc->ilock_flags & XFS_ILOCK_EXCL); in xrep_symlink()
H A Dreaddir.c402 ASSERT(sc->ilock_flags == 0); in xchk_dir_trylock_for_pptrs()
H A Dparent.c610 xchk_iunlock(sc, sc->ilock_flags); in xchk_parent_slow_pptr()
H A Dbmap.c63 &sc->ilock_flags, BREAK_WRITE); in xchk_setup_inode_bmap()
H A Ddir.c1002 xchk_iunlock(sc, sc->ilock_flags); in xchk_dir_slow_dirent()
H A Dattr_repair.c1641 ASSERT(sc->ilock_flags & XFS_ILOCK_EXCL); in xrep_xattr()
/linux-6.15/fs/btrfs/
H A Ddirect-io.c804 unsigned int ilock_flags = 0; in btrfs_direct_write() local
808 ilock_flags |= BTRFS_ILOCK_TRY; in btrfs_direct_write()
817 ilock_flags |= BTRFS_ILOCK_SHARED; in btrfs_direct_write()
826 btrfs_inode_unlock(BTRFS_I(inode), ilock_flags); in btrfs_direct_write()
827 ilock_flags &= ~BTRFS_ILOCK_SHARED; in btrfs_direct_write()
833 btrfs_inode_unlock(BTRFS_I(inode), ilock_flags); in btrfs_direct_write()
839 btrfs_inode_unlock(BTRFS_I(inode), ilock_flags); in btrfs_direct_write()
848 if ((ilock_flags & BTRFS_ILOCK_SHARED) && in btrfs_direct_write()
850 btrfs_inode_unlock(BTRFS_I(inode), ilock_flags); in btrfs_direct_write()
851 ilock_flags &= ~BTRFS_ILOCK_SHARED; in btrfs_direct_write()
[all …]
H A Dbtrfs_inode.h649 int btrfs_inode_lock(struct btrfs_inode *inode, unsigned int ilock_flags);
650 void btrfs_inode_unlock(struct btrfs_inode *inode, unsigned int ilock_flags);
H A Dfile.c1093 unsigned int ilock_flags = 0; in btrfs_buffered_write() local
1099 ilock_flags |= BTRFS_ILOCK_TRY; in btrfs_buffered_write()
1101 ret = btrfs_inode_lock(BTRFS_I(inode), ilock_flags); in btrfs_buffered_write()
1323 btrfs_inode_unlock(BTRFS_I(inode), ilock_flags); in btrfs_buffered_write()
H A Dinode.c345 int btrfs_inode_lock(struct btrfs_inode *inode, unsigned int ilock_flags) in btrfs_inode_lock() argument
347 if (ilock_flags & BTRFS_ILOCK_SHARED) { in btrfs_inode_lock()
348 if (ilock_flags & BTRFS_ILOCK_TRY) { in btrfs_inode_lock()
356 if (ilock_flags & BTRFS_ILOCK_TRY) { in btrfs_inode_lock()
364 if (ilock_flags & BTRFS_ILOCK_MMAP) in btrfs_inode_lock()
375 void btrfs_inode_unlock(struct btrfs_inode *inode, unsigned int ilock_flags) in btrfs_inode_unlock() argument
377 if (ilock_flags & BTRFS_ILOCK_MMAP) in btrfs_inode_unlock()
379 if (ilock_flags & BTRFS_ILOCK_SHARED) in btrfs_inode_unlock()