Home
last modified time | relevance | path

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

/linux/fs/xfs/scrub/
H A Dquotacheck.c396 uint ilock_flags = 0; in xqcheck_collect_inode() local
423 ilock_flags = xfs_ilock_data_map_shared(ip); in xqcheck_collect_inode()
428 ilock_flags = XFS_ILOCK_SHARED; in xqcheck_collect_inode()
475 xfs_iunlock(ip, ilock_flags); in xqcheck_collect_inode()
H A Dscrub.c219 sc->ilock_flags = sub->sc.ilock_flags; in xchk_scrub_free_subord()
245 if (sc->ilock_flags) in xchk_teardown()
246 xchk_iunlock(sc, sc->ilock_flags); in xchk_teardown()
H A Dparent_repair.c569 if (sc->ilock_flags & (XFS_ILOCK_SHARED | XFS_ILOCK_EXCL)) in xrep_parent_scan_dirtree()
570 xchk_iunlock(sc, sc->ilock_flags & (XFS_ILOCK_SHARED | in xrep_parent_scan_dirtree()
679 ASSERT(sc->ilock_flags & XFS_ILOCK_EXCL); in xrep_parent_reset_dotdot()
810 xchk_iunlock(sc, sc->ilock_flags); in xrep_parent_move_to_orphanage()
H A Ddirtree_repair.c350 ASSERT(sc->ilock_flags & XFS_IOLOCK_EXCL); in xrep_dirtree_unlink_iolock()
623 ASSERT(sc->ilock_flags & XFS_IOLOCK_EXCL); in xrep_dirtree_adopt_iolock()
H A Ddir_repair.c1293 if (sc->ilock_flags & (XFS_ILOCK_SHARED | XFS_ILOCK_EXCL)) in xrep_dir_scan_dirtree()
1294 xchk_iunlock(sc, sc->ilock_flags & (XFS_ILOCK_SHARED | in xrep_dir_scan_dirtree()
1651 ASSERT(sc->ilock_flags & XFS_ILOCK_EXCL); in xrep_dir_swap()
1859 xchk_iunlock(sc, sc->ilock_flags); in xrep_dir_move_to_orphanage()
H A Dscrub.h171 uint ilock_flags; member
H A Ddirtree.c522 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 Dparent.c610 xchk_iunlock(sc, sc->ilock_flags); in xchk_parent_slow_pptr()
H A Ddir.c1002 xchk_iunlock(sc, sc->ilock_flags); in xchk_dir_slow_dirent()
H A Dattr_repair.c1633 ASSERT(sc->ilock_flags & XFS_ILOCK_EXCL); in xrep_xattr()
/linux/fs/btrfs/
H A Dfile.c1358 unsigned int ilock_flags = 0; in btrfs_buffered_write() local
1362 ilock_flags |= BTRFS_ILOCK_TRY; in btrfs_buffered_write()
1364 ret = btrfs_inode_lock(BTRFS_I(inode), ilock_flags); in btrfs_buffered_write()
1399 btrfs_inode_unlock(BTRFS_I(inode), ilock_flags); in btrfs_buffered_write()
H A Dinode.c352 int btrfs_inode_lock(struct btrfs_inode *inode, unsigned int ilock_flags) in btrfs_inode_lock() argument
354 if (ilock_flags & BTRFS_ILOCK_SHARED) { in btrfs_inode_lock()
355 if (ilock_flags & BTRFS_ILOCK_TRY) { in btrfs_inode_lock()
363 if (ilock_flags & BTRFS_ILOCK_TRY) { in btrfs_inode_lock()
371 if (ilock_flags & BTRFS_ILOCK_MMAP) in btrfs_inode_lock()
382 void btrfs_inode_unlock(struct btrfs_inode *inode, unsigned int ilock_flags) in btrfs_inode_unlock() argument
384 if (ilock_flags & BTRFS_ILOCK_MMAP) in btrfs_inode_unlock()
386 if (ilock_flags & BTRFS_ILOCK_SHARED) in btrfs_inode_unlock()