Searched refs:ilock_flags (Results 1 – 12 of 12) sorted by relevance
| /linux/fs/btrfs/ |
| H A D | direct-io.c | 889 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 D | btrfs_inode.h | 632 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 D | file.c | 1327 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 D | inode.c | 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() 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 & BTRFS_ILOCK_SHARED) in btrfs_inode_unlock()
|
| /linux/fs/xfs/scrub/ |
| H A D | dirtree_repair.c | 350 ASSERT(sc->ilock_flags & XFS_IOLOCK_EXCL); in xrep_dirtree_unlink_iolock() 637 ASSERT(sc->ilock_flags & XFS_IOLOCK_EXCL); in xrep_dirtree_adopt_iolock()
|
| H A D | scrub.h | 171 uint ilock_flags; member
|
| H A D | dirtree.c | 522 ASSERT(sc->ilock_flags & XFS_ILOCK_EXCL); in xchk_dirpath_walk_upwards() 738 ASSERT(dl->sc->ilock_flags & XFS_ILOCK_EXCL); in xchk_dirtree_reset()
|
| H A D | tempfile.c | 377 sc->ilock_flags |= XFS_ILOCK_EXCL; in xrep_tempfile_ilock_both() 869 sc->ilock_flags |= XFS_ILOCK_EXCL; in xrep_tempexch_trans_alloc()
|
| H A D | quota.c | 327 xchk_iunlock(sc, sc->ilock_flags); in xchk_quota()
|
| H A D | parent.c | 609 xchk_iunlock(sc, sc->ilock_flags); in xchk_parent_slow_pptr()
|
| H A D | bmap.c | 63 &sc->ilock_flags, BREAK_WRITE); in xchk_setup_inode_bmap()
|
| H A D | attr_repair.c | 1634 ASSERT(sc->ilock_flags & XFS_ILOCK_EXCL); in xrep_xattr()
|