Searched refs:ilock_flags (Results 1 – 8 of 8) sorted by relevance
/openbmc/linux/fs/xfs/scrub/ |
H A D | common.c | 1033 unsigned int ilock_flags) in xchk_ilock() argument 1035 xfs_ilock(sc->ip, ilock_flags); in xchk_ilock() 1036 sc->ilock_flags |= ilock_flags; in xchk_ilock() 1042 unsigned int ilock_flags) in xchk_ilock_nowait() argument 1044 if (xfs_ilock_nowait(sc->ip, ilock_flags)) { in xchk_ilock_nowait() 1045 sc->ilock_flags |= ilock_flags; in xchk_ilock_nowait() 1055 unsigned int ilock_flags) in xchk_iunlock() argument 1057 sc->ilock_flags &= ~ilock_flags; in xchk_iunlock() 1058 xfs_iunlock(sc->ip, ilock_flags); in xchk_iunlock()
|
H A D | common.h | 148 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 D | scrub.c | 180 if (sc->ilock_flags) in xchk_teardown() 181 xchk_iunlock(sc, sc->ilock_flags); in xchk_teardown()
|
H A D | scrub.h | 102 uint ilock_flags; member
|
H A D | quota.c | 241 xchk_iunlock(sc, sc->ilock_flags); in xchk_quota()
|
/openbmc/linux/fs/btrfs/ |
H A D | file.c | 1191 unsigned int ilock_flags = 0; in btrfs_buffered_write() local 1196 ilock_flags |= BTRFS_ILOCK_TRY; in btrfs_buffered_write() 1198 ret = btrfs_inode_lock(BTRFS_I(inode), ilock_flags); in btrfs_buffered_write() 1433 btrfs_inode_unlock(BTRFS_I(inode), ilock_flags); in btrfs_buffered_write() 1462 unsigned int ilock_flags = 0; in btrfs_direct_write() local 1466 ilock_flags |= BTRFS_ILOCK_TRY; in btrfs_direct_write() 1475 ilock_flags |= BTRFS_ILOCK_SHARED; in btrfs_direct_write() 1478 err = btrfs_inode_lock(BTRFS_I(inode), ilock_flags); in btrfs_direct_write() 1483 if ((ilock_flags & BTRFS_ILOCK_SHARED) && !IS_NOSEC(inode)) { in btrfs_direct_write() 1484 btrfs_inode_unlock(BTRFS_I(inode), ilock_flags); in btrfs_direct_write() [all …]
|
H A D | btrfs_inode.h | 533 int btrfs_inode_lock(struct btrfs_inode *inode, unsigned int ilock_flags); 534 void btrfs_inode_unlock(struct btrfs_inode *inode, unsigned int ilock_flags);
|
H A D | inode.c | 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() 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()
|