Home
last modified time | relevance | path

Searched refs:XFS_IOLOCK_EXCL (Results 1 – 15 of 15) sorted by relevance

/openbmc/linux/fs/xfs/
H A Dxfs_pnfs.c41 *iolock |= XFS_IOLOCK_EXCL; in xfs_break_leased_layouts()
155 xfs_ilock(ip, XFS_IOLOCK_EXCL); in xfs_fs_map_blocks()
212 xfs_iunlock(ip, XFS_IOLOCK_EXCL); in xfs_fs_map_blocks()
218 xfs_iunlock(ip, XFS_IOLOCK_EXCL); in xfs_fs_map_blocks()
274 xfs_ilock(ip, XFS_IOLOCK_EXCL); in xfs_fs_commit_blocks()
335 xfs_iunlock(ip, XFS_IOLOCK_EXCL); in xfs_fs_commit_blocks()
H A Dxfs_file.c222 if (*lock_mode == XFS_IOLOCK_EXCL) in xfs_ilock_iocb_for_write()
228 *lock_mode = XFS_IOLOCK_EXCL; in xfs_ilock_iocb_for_write()
410 *iolock = XFS_IOLOCK_EXCL; in xfs_file_write_checks()
453 *iolock = XFS_IOLOCK_EXCL; in xfs_file_write_checks()
596 if (iolock == XFS_IOLOCK_EXCL) { in xfs_file_dio_write_aligned()
597 xfs_ilock_demote(ip, XFS_IOLOCK_EXCL); in xfs_file_dio_write_aligned()
647 iolock = XFS_IOLOCK_EXCL; in xfs_file_dio_write_unaligned()
723 unsigned int iolock = XFS_IOLOCK_EXCL; in xfs_file_dax_write()
769 iolock = XFS_IOLOCK_EXCL; in xfs_file_buffered_write()
896 ASSERT(xfs_isilocked(XFS_I(inode), XFS_IOLOCK_SHARED|XFS_IOLOCK_EXCL)); in xfs_break_layouts()
[all …]
H A Dxfs_inode.c145 ASSERT((lock_flags & (XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL)) != in xfs_lock_flags_assert()
146 (XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL)); in xfs_lock_flags_assert()
194 if (lock_flags & XFS_IOLOCK_EXCL) { in xfs_ilock()
237 if (lock_flags & XFS_IOLOCK_EXCL) { in xfs_ilock_nowait()
268 if (lock_flags & XFS_IOLOCK_EXCL) in xfs_ilock_nowait()
295 if (lock_flags & XFS_IOLOCK_EXCL) in xfs_iunlock()
322 ASSERT(lock_flags & (XFS_IOLOCK_EXCL|XFS_MMAPLOCK_EXCL|XFS_ILOCK_EXCL)); in xfs_ilock_demote()
324 ~(XFS_IOLOCK_EXCL|XFS_MMAPLOCK_EXCL|XFS_ILOCK_EXCL)) == 0); in xfs_ilock_demote()
330 if (lock_flags & XFS_IOLOCK_EXCL) in xfs_ilock_demote()
373 if (lock_flags & (XFS_IOLOCK_EXCL | XFS_IOLOCK_SHARED)) { in xfs_isilocked()
[all …]
H A Dxfs_qm_syscalls.c69 xfs_ilock(ip, XFS_IOLOCK_EXCL); in xfs_qm_scall_trunc_qfile()
73 xfs_iunlock(ip, XFS_IOLOCK_EXCL); in xfs_qm_scall_trunc_qfile()
95 xfs_iunlock(ip, XFS_ILOCK_EXCL | XFS_IOLOCK_EXCL); in xfs_qm_scall_trunc_qfile()
H A Dxfs_inode.h384 #define XFS_IOLOCK_EXCL (1u << 0) macro
391 #define XFS_LOCK_MASK (XFS_IOLOCK_EXCL | XFS_IOLOCK_SHARED \
396 { XFS_IOLOCK_EXCL, "IOLOCK_EXCL" }, \
H A Dxfs_icache.c748 ASSERT((lock_flags & (XFS_IOLOCK_EXCL | XFS_IOLOCK_SHARED)) == 0); in xfs_iget()
1145 if (!xfs_ilock_nowait(ip, XFS_IOLOCK_EXCL)) { in xfs_inode_free_eofblocks()
1150 *lockflags |= XFS_IOLOCK_EXCL; in xfs_inode_free_eofblocks()
1313 if (!(*lockflags & XFS_IOLOCK_EXCL) && in xfs_inode_free_cowblocks()
1314 !xfs_ilock_nowait(ip, XFS_IOLOCK_EXCL)) { in xfs_inode_free_cowblocks()
1319 *lockflags |= XFS_IOLOCK_EXCL; in xfs_inode_free_cowblocks()
H A Dxfs_bmap_util.c656 ASSERT(xfs_isilocked(ip, XFS_IOLOCK_EXCL) || in xfs_can_free_eofblocks()
1136 ASSERT(xfs_isilocked(ip, XFS_IOLOCK_EXCL)); in xfs_collapse_file_space()
1206 ASSERT(xfs_isilocked(ip, XFS_IOLOCK_EXCL)); in xfs_insert_file_space()
H A Dxfs_iops.c800 ASSERT(xfs_isilocked(ip, XFS_IOLOCK_EXCL)); in xfs_setattr_size()
1014 iolock = XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL; in xfs_vn_setattr()
H A Dxfs_dir2_readdir.c524 ASSERT(xfs_isilocked(dp, XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL)); in xfs_readdir()
H A Dxfs_rtalloc.c932 xfs_ilock(ip, XFS_IOLOCK_EXCL); in xfs_growfs_rt_fixup_extsize()
947 xfs_iunlock(ip, XFS_IOLOCK_EXCL); in xfs_growfs_rt_fixup_extsize()
H A Dxfs_reflink.c1526 xfs_ilock_demote(src, XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL); in xfs_reflink_remap_prep()
/openbmc/linux/fs/xfs/scrub/
H A Dinode.c35 xchk_ilock(sc, XFS_IOLOCK_EXCL); in xchk_prepare_iscrub()
H A Dcommon.c1019 xchk_ilock(sc, XFS_IOLOCK_EXCL); in xchk_setup_inode_contents()
H A Dbmap.c41 xchk_ilock(sc, XFS_IOLOCK_EXCL); in xchk_setup_inode_bmap()
/openbmc/linux/fs/xfs/libxfs/
H A Dxfs_bmap.c5663 ASSERT(xfs_isilocked(ip, XFS_IOLOCK_EXCL)); in xfs_bmse_merge()
5792 ASSERT(xfs_isilocked(ip, XFS_IOLOCK_EXCL | XFS_ILOCK_EXCL)); in xfs_bmap_collapse_extents()
5865 ASSERT(xfs_isilocked(ip, XFS_IOLOCK_EXCL)); in xfs_bmap_can_insert_extents()
5907 ASSERT(xfs_isilocked(ip, XFS_IOLOCK_EXCL | XFS_ILOCK_EXCL)); in xfs_bmap_insert_extents()