Home
last modified time | relevance | path

Searched refs:ilock_flags (Results 1 - 17 of 17) sorted by relevance

/kernel/linux/linux-5.10/fs/xfs/scrub/
H A Drtbitmap.c32 sc->ilock_flags = XFS_ILOCK_EXCL | XFS_ILOCK_RTBITMAP; in xchk_setup_rt()
34 xfs_ilock(sc->ip, sc->ilock_flags); in xchk_setup_rt()
135 uint old_ilock_flags = sc->ilock_flags; in xchk_rtsummary()
146 sc->ilock_flags = XFS_ILOCK_EXCL | XFS_ILOCK_RTSUM; in xchk_rtsummary()
147 xfs_ilock(sc->ip, sc->ilock_flags); in xchk_rtsummary()
158 xfs_iunlock(sc->ip, sc->ilock_flags); in xchk_rtsummary()
159 sc->ilock_flags = old_ilock_flags; in xchk_rtsummary()
H A Dquota.c61 sc->ilock_flags = XFS_ILOCK_EXCL; in xchk_setup_quota()
234 xfs_iunlock(sc->ip, sc->ilock_flags); in xchk_quota()
235 sc->ilock_flags = 0; in xchk_quota()
239 sc->ilock_flags = XFS_ILOCK_EXCL; in xchk_quota()
240 xfs_ilock(sc->ip, sc->ilock_flags); in xchk_quota()
H A Dparent.c208 xfs_iunlock(sc->ip, sc->ilock_flags); in xchk_parent_validate()
209 sc->ilock_flags = 0; in xchk_parent_validate()
224 sc->ilock_flags = XFS_IOLOCK_EXCL; in xchk_parent_validate()
293 sc->ilock_flags &= ~(XFS_ILOCK_EXCL | XFS_MMAPLOCK_EXCL); in xchk_parent()
H A Dinode.c52 sc->ilock_flags = XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL; in xchk_setup_inode()
53 xfs_ilock(sc->ip, sc->ilock_flags); in xchk_setup_inode()
57 sc->ilock_flags |= XFS_ILOCK_EXCL; in xchk_setup_inode()
H A Dscrub.c164 if (sc->ilock_flags) in xchk_teardown()
165 xfs_iunlock(sc->ip, sc->ilock_flags); in xchk_teardown()
H A Dscrub.h64 uint ilock_flags; member
H A Dcommon.c747 sc->ilock_flags = XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL; in xchk_setup_inode_contents()
748 xfs_ilock(sc->ip, sc->ilock_flags); in xchk_setup_inode_contents()
752 sc->ilock_flags |= XFS_ILOCK_EXCL; in xchk_setup_inode_contents()
H A Dbmap.c38 sc->ilock_flags = XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL; in xchk_setup_inode_bmap()
39 xfs_ilock(sc->ip, sc->ilock_flags); in xchk_setup_inode_bmap()
76 sc->ilock_flags |= XFS_ILOCK_EXCL; in xchk_setup_inode_bmap()
H A Ddir.c850 sc->ilock_flags &= ~XFS_ILOCK_EXCL; in xchk_directory()
/kernel/linux/linux-6.6/fs/xfs/scrub/
H A Dcommon.c1039 unsigned int ilock_flags) in xchk_ilock()
1041 xfs_ilock(sc->ip, ilock_flags); in xchk_ilock()
1042 sc->ilock_flags |= ilock_flags; in xchk_ilock()
1048 unsigned int ilock_flags) in xchk_ilock_nowait()
1050 if (xfs_ilock_nowait(sc->ip, ilock_flags)) { in xchk_ilock_nowait()
1051 sc->ilock_flags |= ilock_flags; in xchk_ilock_nowait()
1061 unsigned int ilock_flags) in xchk_iunlock()
1063 sc->ilock_flags in xchk_iunlock()
1037 xchk_ilock( struct xfs_scrub *sc, unsigned int ilock_flags) xchk_ilock() argument
1046 xchk_ilock_nowait( struct xfs_scrub *sc, unsigned int ilock_flags) xchk_ilock_nowait() argument
1059 xchk_iunlock( struct xfs_scrub *sc, unsigned int ilock_flags) xchk_iunlock() argument
[all...]
H A Dcommon.h148 void xchk_ilock(struct xfs_scrub *sc, unsigned int ilock_flags);
149 bool xchk_ilock_nowait(struct xfs_scrub *sc, unsigned int ilock_flags);
150 void xchk_iunlock(struct xfs_scrub *sc, unsigned int ilock_flags);
H A Dscrub.h95 uint ilock_flags; member
H A Dscrub.c180 if (sc->ilock_flags) in xchk_teardown()
181 xchk_iunlock(sc, sc->ilock_flags); in xchk_teardown()
H A Dquota.c241 xchk_iunlock(sc, sc->ilock_flags); in xchk_quota()
/kernel/linux/linux-6.6/fs/btrfs/
H A Dfile.c1193 unsigned int ilock_flags = 0; in btrfs_buffered_write() local
1198 ilock_flags |= BTRFS_ILOCK_TRY; in btrfs_buffered_write()
1200 ret = btrfs_inode_lock(BTRFS_I(inode), ilock_flags); in btrfs_buffered_write()
1435 btrfs_inode_unlock(BTRFS_I(inode), ilock_flags); in btrfs_buffered_write() local
1464 unsigned int ilock_flags = 0; in btrfs_direct_write() local
1468 ilock_flags |= BTRFS_ILOCK_TRY; in btrfs_direct_write()
1477 ilock_flags |= BTRFS_ILOCK_SHARED; in btrfs_direct_write()
1480 err = btrfs_inode_lock(BTRFS_I(inode), ilock_flags); in btrfs_direct_write()
1485 if ((ilock_flags & BTRFS_ILOCK_SHARED) && !IS_NOSEC(inode)) { in btrfs_direct_write()
1486 btrfs_inode_unlock(BTRFS_I(inode), ilock_flags); in btrfs_direct_write() local
1493 btrfs_inode_unlock(BTRFS_I(inode), ilock_flags); btrfs_direct_write() local
1499 btrfs_inode_unlock(BTRFS_I(inode), ilock_flags); btrfs_direct_write() local
1510 btrfs_inode_unlock(BTRFS_I(inode), ilock_flags); btrfs_direct_write() local
1516 btrfs_inode_unlock(BTRFS_I(inode), ilock_flags); btrfs_direct_write() local
1547 btrfs_inode_unlock(BTRFS_I(inode), ilock_flags); btrfs_direct_write() local
[all...]
H A Dbtrfs_inode.h528 int btrfs_inode_lock(struct btrfs_inode *inode, unsigned int ilock_flags);
529 void btrfs_inode_unlock(struct btrfs_inode *inode, unsigned int ilock_flags);
H A Dinode.c353 * ilock_flags can have the following bit set:
360 int btrfs_inode_lock(struct btrfs_inode *inode, unsigned int ilock_flags) in btrfs_inode_lock() argument
362 if (ilock_flags & BTRFS_ILOCK_SHARED) { in btrfs_inode_lock()
363 if (ilock_flags & BTRFS_ILOCK_TRY) { in btrfs_inode_lock()
371 if (ilock_flags & BTRFS_ILOCK_TRY) { in btrfs_inode_lock()
379 if (ilock_flags & BTRFS_ILOCK_MMAP) in btrfs_inode_lock()
387 * ilock_flags should contain the same bits set as passed to btrfs_inode_lock()
390 void btrfs_inode_unlock(struct btrfs_inode *inode, unsigned int ilock_flags) in btrfs_inode_unlock() argument
392 if (ilock_flags & BTRFS_ILOCK_MMAP) in btrfs_inode_unlock()
394 if (ilock_flags in btrfs_inode_unlock()
[all...]

Completed in 19 milliseconds