Searched refs:ilock_flags (Results 1 – 13 of 13) sorted by relevance
/linux/fs/btrfs/ |
H A D | direct-io.c | 804 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() 820 ret = btrfs_inode_lock(BTRFS_I(inode), ilock_flags); in btrfs_direct_write() 825 if ((ilock_flags & BTRFS_ILOCK_SHARED) && !IS_NOSEC(inode)) { 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() [all …]
|
H A D | btrfs_inode.h | 635 int btrfs_inode_lock(struct btrfs_inode *inode, unsigned int ilock_flags); 636 void btrfs_inode_unlock(struct btrfs_inode *inode, unsigned int ilock_flags);
|
H A D | file.c | 1206 unsigned int ilock_flags = 0; in btrfs_buffered_write() local 1211 ilock_flags |= BTRFS_ILOCK_TRY; in btrfs_buffered_write() 1213 ret = btrfs_inode_lock(BTRFS_I(inode), ilock_flags); in btrfs_buffered_write() 1448 btrfs_inode_unlock(BTRFS_I(inode), ilock_flags); in btrfs_buffered_write()
|
/linux/fs/xfs/scrub/ |
H A D | common.c | 1107 unsigned int ilock_flags) in xchk_ilock() argument 1109 xfs_ilock(sc->ip, ilock_flags); in xchk_ilock() 1110 sc->ilock_flags |= ilock_flags; in xchk_ilock() 1116 unsigned int ilock_flags) in xchk_ilock_nowait() argument 1118 if (xfs_ilock_nowait(sc->ip, ilock_flags)) { in xchk_ilock_nowait() 1119 sc->ilock_flags |= ilock_flags; in xchk_ilock_nowait() 1129 unsigned int ilock_flags) in xchk_iunlock() argument 1131 sc->ilock_flags &= ~ilock_flags; in xchk_iunlock() 1132 xfs_iunlock(sc->ip, ilock_flags); in xchk_iunlock()
|
H A D | common.h | 132 void xchk_ilock(struct xfs_scrub *sc, unsigned int ilock_flags); 133 bool xchk_ilock_nowait(struct xfs_scrub *sc, unsigned int ilock_flags); 134 void xchk_iunlock(struct xfs_scrub *sc, unsigned int ilock_flags);
|
H A D | quotacheck.c | 396 uint ilock_flags = 0; in xqcheck_collect_inode() local 420 ilock_flags = xfs_ilock_data_map_shared(ip); in xqcheck_collect_inode() 425 ilock_flags = XFS_ILOCK_SHARED; in xqcheck_collect_inode() 472 xfs_iunlock(ip, ilock_flags); in xqcheck_collect_inode()
|
H A D | scrub.c | 207 sc->ilock_flags = sub->sc.ilock_flags; in xchk_scrub_free_subord() 229 if (sc->ilock_flags) in xchk_teardown() 230 xchk_iunlock(sc, sc->ilock_flags); in xchk_teardown()
|
H A D | quota_repair.c | 543 if (!(sc->ilock_flags & XFS_ILOCK_EXCL)) in xrep_quota() 560 xchk_iunlock(sc, sc->ilock_flags); in xrep_quota()
|
H A D | scrub.h | 156 uint ilock_flags; member
|
H A D | tempfile.c | 267 sc->ilock_flags |= XFS_ILOCK_EXCL; in xrep_tempfile_ilock_both() 751 sc->ilock_flags |= XFS_ILOCK_EXCL; in xrep_tempexch_trans_alloc()
|
H A D | quota.c | 321 xchk_iunlock(sc, sc->ilock_flags); in xchk_quota()
|
H A D | parent.c | 596 xchk_iunlock(sc, sc->ilock_flags); in xchk_parent_slow_pptr()
|
H A D | bmap.c | 60 &sc->ilock_flags, BREAK_WRITE); in xchk_setup_inode_bmap()
|