| /linux/fs/xfs/scrub/ |
| H A D | orphanage.c | 212 unsigned int ilock_flags) in xrep_orphanage_ilock() argument 214 sc->orphanage_ilock_flags |= ilock_flags; in xrep_orphanage_ilock() 215 xfs_ilock(sc->orphanage, ilock_flags); in xrep_orphanage_ilock() 221 unsigned int ilock_flags) in xrep_orphanage_ilock_nowait() argument 223 if (xfs_ilock_nowait(sc->orphanage, ilock_flags)) { in xrep_orphanage_ilock_nowait() 224 sc->orphanage_ilock_flags |= ilock_flags; in xrep_orphanage_ilock_nowait() 234 unsigned int ilock_flags) in xrep_orphanage_iunlock() argument 236 xfs_iunlock(sc->orphanage, ilock_flags); in xrep_orphanage_iunlock() 237 sc->orphanage_ilock_flags &= ~ilock_flags; in xrep_orphanage_iunlock() 322 ASSERT(sc->ilock_flags & XFS_IOLOCK_EXCL); in xrep_adoption_trans_alloc() [all …]
|
| H A D | common.c | 1314 unsigned int ilock_flags) in xchk_ilock() argument 1316 xfs_ilock(sc->ip, ilock_flags); in xchk_ilock() 1317 sc->ilock_flags |= ilock_flags; in xchk_ilock() 1323 unsigned int ilock_flags) in xchk_ilock_nowait() argument 1325 if (xfs_ilock_nowait(sc->ip, ilock_flags)) { in xchk_ilock_nowait() 1326 sc->ilock_flags |= ilock_flags; in xchk_ilock_nowait() 1336 unsigned int ilock_flags) in xchk_iunlock() argument 1338 sc->ilock_flags &= ~ilock_flags; in xchk_iunlock() 1339 xfs_iunlock(sc->ip, ilock_flags); in xchk_iunlock()
|
| H A D | common.h | 179 void xchk_ilock(struct xfs_scrub *sc, unsigned int ilock_flags); 180 bool xchk_ilock_nowait(struct xfs_scrub *sc, unsigned int ilock_flags); 181 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 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 D | scrub.c | 219 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 D | parent_repair.c | 569 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 D | dirtree_repair.c | 350 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 D | dir_repair.c | 1293 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 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 | quota.c | 327 xchk_iunlock(sc, sc->ilock_flags); in xchk_quota()
|
| H A D | parent.c | 610 xchk_iunlock(sc, sc->ilock_flags); in xchk_parent_slow_pptr()
|
| H A D | dir.c | 1007 xchk_iunlock(sc, sc->ilock_flags); in xchk_dir_slow_dirent()
|
| H A D | attr_repair.c | 1633 ASSERT(sc->ilock_flags & XFS_ILOCK_EXCL); in xrep_xattr()
|
| /linux/fs/btrfs/ |
| H A D | file.c | 1363 unsigned int ilock_flags = 0; in btrfs_buffered_write() local 1367 ilock_flags |= BTRFS_ILOCK_TRY; in btrfs_buffered_write() 1369 ret = btrfs_inode_lock(BTRFS_I(inode), ilock_flags); in btrfs_buffered_write() 1404 btrfs_inode_unlock(BTRFS_I(inode), ilock_flags); in btrfs_buffered_write()
|
| H A D | inode.c | 351 int btrfs_inode_lock(struct btrfs_inode *inode, unsigned int ilock_flags) in btrfs_inode_lock() argument 353 if (ilock_flags & BTRFS_ILOCK_SHARED) { in btrfs_inode_lock() 354 if (ilock_flags & BTRFS_ILOCK_TRY) { in btrfs_inode_lock() 362 if (ilock_flags & BTRFS_ILOCK_TRY) { in btrfs_inode_lock() 370 if (ilock_flags & BTRFS_ILOCK_MMAP) in btrfs_inode_lock() 381 void btrfs_inode_unlock(struct btrfs_inode *inode, unsigned int ilock_flags) in btrfs_inode_unlock() argument 383 if (ilock_flags & BTRFS_ILOCK_MMAP) in btrfs_inode_unlock() 385 if (ilock_flags & BTRFS_ILOCK_SHARED) in btrfs_inode_unlock()
|