Home
last modified time | relevance | path

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

/linux/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 Dcommon.h180 void xchk_ilock(struct xfs_scrub *sc, unsigned int ilock_flags);
181 bool xchk_ilock_nowait(struct xfs_scrub *sc, unsigned int ilock_flags);
182 void xchk_iunlock(struct xfs_scrub *sc, unsigned int ilock_flags);
H A Dquotacheck.c398 uint ilock_flags = 0; in xqcheck_collect_inode() local
425 ilock_flags = xfs_ilock_data_map_shared(ip); in xqcheck_collect_inode()
430 ilock_flags = XFS_ILOCK_SHARED; in xqcheck_collect_inode()
477 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 Dquota_repair.c547 if (!(sc->ilock_flags & XFS_ILOCK_EXCL)) in xrep_quota()
564 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()
639 ASSERT(sc->ilock_flags & XFS_IOLOCK_EXCL); in xrep_dirtree_adopt_iolock()
H A Ddir_repair.c1299 if (sc->ilock_flags & (XFS_ILOCK_SHARED | XFS_ILOCK_EXCL)) in xrep_dir_scan_dirtree()
1300 xchk_iunlock(sc, sc->ilock_flags & (XFS_ILOCK_SHARED | in xrep_dir_scan_dirtree()
1672 ASSERT(sc->ilock_flags & XFS_ILOCK_EXCL); in xrep_dir_swap()
1880 xchk_iunlock(sc, sc->ilock_flags); in xrep_dir_move_to_orphanage()
H A Dscrub.h171 uint ilock_flags; member
H A Dtempfile.c377 sc->ilock_flags |= XFS_ILOCK_EXCL; in xrep_tempfile_ilock_both()
884 sc->ilock_flags |= XFS_ILOCK_EXCL; in xrep_tempexch_trans_alloc()
H A Ddirtree.c549 ASSERT(sc->ilock_flags & XFS_ILOCK_EXCL); in xchk_dirpath_walk_upwards()
765 ASSERT(dl->sc->ilock_flags & XFS_ILOCK_EXCL); in xchk_dirtree_reset()
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 Dparent.c609 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.c1007 xchk_iunlock(sc, sc->ilock_flags); in xchk_dir_slow_dirent()
H A Dattr_repair.c1634 ASSERT(sc->ilock_flags & XFS_ILOCK_EXCL); in xrep_xattr()
/linux/fs/btrfs/
H A Ddirect-io.c889 unsigned int ilock_flags = 0; in btrfs_direct_write() local
893 ilock_flags |= BTRFS_ILOCK_TRY; in btrfs_direct_write()
902 ilock_flags |= BTRFS_ILOCK_SHARED; in btrfs_direct_write()
905 ret = btrfs_inode_lock(BTRFS_I(inode), ilock_flags); in btrfs_direct_write()
910 if ((ilock_flags & BTRFS_ILOCK_SHARED) && !IS_NOSEC(inode)) { in btrfs_direct_write()
911 btrfs_inode_unlock(BTRFS_I(inode), ilock_flags); in btrfs_direct_write()
912 ilock_flags &= ~BTRFS_ILOCK_SHARED; in btrfs_direct_write()
918 btrfs_inode_unlock(BTRFS_I(inode), ilock_flags); in btrfs_direct_write()
924 btrfs_inode_unlock(BTRFS_I(inode), ilock_flags); in btrfs_direct_write()
933 if ((ilock_flags & BTRFS_ILOCK_SHARED) && in btrfs_direct_write()
[all …]
H A Dbtrfs_inode.h632 int btrfs_inode_lock(struct btrfs_inode *inode, unsigned int ilock_flags);
633 void btrfs_inode_unlock(struct btrfs_inode *inode, unsigned int ilock_flags);
H A Dfile.c1327 unsigned int ilock_flags = 0; in btrfs_buffered_write() local
1331 ilock_flags |= BTRFS_ILOCK_TRY; in btrfs_buffered_write()
1333 ret = btrfs_inode_lock(BTRFS_I(inode), ilock_flags); in btrfs_buffered_write()
1368 btrfs_inode_unlock(BTRFS_I(inode), ilock_flags); in btrfs_buffered_write()
H A Dinode.c342 * ilock_flags can have the following bit set:
349 int btrfs_inode_lock(struct btrfs_inode *inode, unsigned int ilock_flags) in btrfs_inode_lock() argument
351 if (ilock_flags & BTRFS_ILOCK_SHARED) { in btrfs_inode_lock()
352 if (ilock_flags & BTRFS_ILOCK_TRY) { in btrfs_inode_lock()
360 if (ilock_flags & BTRFS_ILOCK_TRY) { in btrfs_inode_lock()
368 if (ilock_flags & BTRFS_ILOCK_MMAP) in btrfs_inode_lock()
376 * ilock_flags should contain the same bits set as passed to btrfs_inode_lock()
379 void btrfs_inode_unlock(struct btrfs_inode *inode, unsigned int ilock_flags) in btrfs_inode_unlock() argument
381 if (ilock_flags & BTRFS_ILOCK_MMAP) in btrfs_inode_unlock()
383 if (ilock_flags in btrfs_inode_unlock()
[all...]