Home
last modified time | relevance | path

Searched refs:iolock (Results 1 – 6 of 6) sorted by relevance

/fs/xfs/
Dxfs_file.c333 int *iolock) in xfs_file_aio_write_checks() argument
348 error = xfs_break_layouts(inode, iolock, BREAK_WRITE); in xfs_file_aio_write_checks()
356 if (*iolock == XFS_IOLOCK_SHARED && !IS_NOSEC(inode)) { in xfs_file_aio_write_checks()
357 xfs_iunlock(ip, *iolock); in xfs_file_aio_write_checks()
358 *iolock = XFS_IOLOCK_EXCL; in xfs_file_aio_write_checks()
359 xfs_ilock(ip, *iolock); in xfs_file_aio_write_checks()
382 if (*iolock == XFS_IOLOCK_SHARED) { in xfs_file_aio_write_checks()
383 xfs_iunlock(ip, *iolock); in xfs_file_aio_write_checks()
384 *iolock = XFS_IOLOCK_EXCL; in xfs_file_aio_write_checks()
385 xfs_ilock(ip, *iolock); in xfs_file_aio_write_checks()
[all …]
Dxfs_pnfs.c30 uint *iolock, in xfs_break_leased_layouts() argument
37 xfs_iunlock(ip, *iolock); in xfs_break_leased_layouts()
40 *iolock &= ~XFS_IOLOCK_SHARED; in xfs_break_leased_layouts()
41 *iolock |= XFS_IOLOCK_EXCL; in xfs_break_leased_layouts()
42 xfs_ilock(ip, *iolock); in xfs_break_leased_layouts()
Dxfs_pnfs.h12 int xfs_break_leased_layouts(struct inode *inode, uint *iolock,
16 xfs_break_leased_layouts(struct inode *inode, uint *iolock, bool *did_unlock) in xfs_break_leased_layouts() argument
Dxfs_iops.c1027 uint iolock; in xfs_vn_setattr() local
1030 iolock = XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL; in xfs_vn_setattr()
1032 error = xfs_break_layouts(inode, &iolock, BREAK_UNMAP); in xfs_vn_setattr()
Dxfs_inode.h434 int xfs_break_layouts(struct inode *inode, uint *iolock,
Dxfs_ioctl.c638 uint iolock = XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL; in xfs_ioc_space() local
662 xfs_ilock(ip, iolock); in xfs_ioc_space()
663 error = xfs_break_layouts(inode, &iolock, BREAK_UNMAP); in xfs_ioc_space()
704 xfs_iunlock(ip, iolock); in xfs_ioc_space()