Home
last modified time | relevance | path

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

/Linux-v6.6/fs/xfs/scrub/
Dcommon.c1039 unsigned int ilock_flags) in xchk_ilock() argument
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() argument
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() argument
1063 sc->ilock_flags &= ~ilock_flags; in xchk_iunlock()
1064 xfs_iunlock(sc->ip, ilock_flags); in xchk_iunlock()
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);
Dscrub.c180 if (sc->ilock_flags) in xchk_teardown()
181 xchk_iunlock(sc, sc->ilock_flags); in xchk_teardown()
Dscrub.h95 uint ilock_flags; member
Dquota.c241 xchk_iunlock(sc, sc->ilock_flags); in xchk_quota()
/Linux-v6.6/fs/btrfs/
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()
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()
[all …]
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);
Dinode.c360 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()
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 & BTRFS_ILOCK_SHARED) in btrfs_inode_unlock()