Home
last modified time | relevance | path

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

/linux-6.1.9/fs/xfs/scrub/
Drtbitmap.c31 sc->ilock_flags = XFS_ILOCK_EXCL | XFS_ILOCK_RTBITMAP; in xchk_setup_rt()
33 xfs_ilock(sc->ip, sc->ilock_flags); in xchk_setup_rt()
133 uint old_ilock_flags = sc->ilock_flags; in xchk_rtsummary()
144 sc->ilock_flags = XFS_ILOCK_EXCL | XFS_ILOCK_RTSUM; in xchk_rtsummary()
145 xfs_ilock(sc->ip, sc->ilock_flags); in xchk_rtsummary()
156 xfs_iunlock(sc->ip, sc->ilock_flags); in xchk_rtsummary()
157 sc->ilock_flags = old_ilock_flags; in xchk_rtsummary()
Dquota.c60 sc->ilock_flags = XFS_ILOCK_EXCL; in xchk_setup_quota()
233 xfs_iunlock(sc->ip, sc->ilock_flags); in xchk_quota()
234 sc->ilock_flags = 0; in xchk_quota()
238 sc->ilock_flags = XFS_ILOCK_EXCL; in xchk_quota()
239 xfs_ilock(sc->ip, sc->ilock_flags); in xchk_quota()
Dparent.c207 xfs_iunlock(sc->ip, sc->ilock_flags); in xchk_parent_validate()
208 sc->ilock_flags = 0; in xchk_parent_validate()
223 sc->ilock_flags = XFS_IOLOCK_EXCL; in xchk_parent_validate()
292 sc->ilock_flags &= ~(XFS_ILOCK_EXCL | XFS_MMAPLOCK_EXCL); in xchk_parent()
Dinode.c51 sc->ilock_flags = XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL; in xchk_setup_inode()
52 xfs_ilock(sc->ip, sc->ilock_flags); in xchk_setup_inode()
56 sc->ilock_flags |= XFS_ILOCK_EXCL; in xchk_setup_inode()
Dscrub.c165 if (sc->ilock_flags) in xchk_teardown()
166 xfs_iunlock(sc->ip, sc->ilock_flags); in xchk_teardown()
Dcommon.c717 sc->ilock_flags = XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL; in xchk_setup_inode_contents()
718 xfs_ilock(sc->ip, sc->ilock_flags); in xchk_setup_inode_contents()
722 sc->ilock_flags |= XFS_ILOCK_EXCL; in xchk_setup_inode_contents()
Dscrub.h73 uint ilock_flags; member
Dbmap.c38 sc->ilock_flags = XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL; in xchk_setup_inode_bmap()
39 xfs_ilock(sc->ip, sc->ilock_flags); in xchk_setup_inode_bmap()
76 sc->ilock_flags |= XFS_ILOCK_EXCL; in xchk_setup_inode_bmap()
Ddir.c862 sc->ilock_flags &= ~XFS_ILOCK_EXCL; in xchk_directory()
/linux-6.1.9/fs/btrfs/
Dfile.c1507 unsigned int ilock_flags = 0; in btrfs_buffered_write() local
1512 ilock_flags |= BTRFS_ILOCK_TRY; in btrfs_buffered_write()
1514 ret = btrfs_inode_lock(inode, ilock_flags); in btrfs_buffered_write()
1749 btrfs_inode_unlock(inode, ilock_flags); in btrfs_buffered_write()
1778 unsigned int ilock_flags = 0; in btrfs_direct_write() local
1782 ilock_flags |= BTRFS_ILOCK_TRY; in btrfs_direct_write()
1786 ilock_flags |= BTRFS_ILOCK_SHARED; in btrfs_direct_write()
1789 err = btrfs_inode_lock(inode, ilock_flags); in btrfs_direct_write()
1795 btrfs_inode_unlock(inode, ilock_flags); in btrfs_direct_write()
1801 btrfs_inode_unlock(inode, ilock_flags); in btrfs_direct_write()
[all …]
Dinode.c138 int btrfs_inode_lock(struct inode *inode, unsigned int ilock_flags) in btrfs_inode_lock() argument
140 if (ilock_flags & BTRFS_ILOCK_SHARED) { in btrfs_inode_lock()
141 if (ilock_flags & BTRFS_ILOCK_TRY) { in btrfs_inode_lock()
149 if (ilock_flags & BTRFS_ILOCK_TRY) { in btrfs_inode_lock()
157 if (ilock_flags & BTRFS_ILOCK_MMAP) in btrfs_inode_lock()
168 void btrfs_inode_unlock(struct inode *inode, unsigned int ilock_flags) in btrfs_inode_unlock() argument
170 if (ilock_flags & BTRFS_ILOCK_MMAP) in btrfs_inode_unlock()
172 if (ilock_flags & BTRFS_ILOCK_SHARED) in btrfs_inode_unlock()
Dctree.h3483 int btrfs_inode_lock(struct inode *inode, unsigned int ilock_flags);
3484 void btrfs_inode_unlock(struct inode *inode, unsigned int ilock_flags);