Lines Matching refs:iolock

320 	unsigned int		*iolock)  in xfs_file_write_checks()  argument
340 error = xfs_break_layouts(inode, iolock, BREAK_WRITE); in xfs_file_write_checks()
350 if (*iolock == XFS_IOLOCK_SHARED && !IS_NOSEC(inode)) { in xfs_file_write_checks()
351 xfs_iunlock(ip, *iolock); in xfs_file_write_checks()
352 *iolock = XFS_IOLOCK_EXCL; in xfs_file_write_checks()
353 error = xfs_ilock_iocb(iocb, *iolock); in xfs_file_write_checks()
355 *iolock = 0; in xfs_file_write_checks()
393 if (*iolock == XFS_IOLOCK_SHARED) { in xfs_file_write_checks()
394 xfs_iunlock(ip, *iolock); in xfs_file_write_checks()
395 *iolock = XFS_IOLOCK_EXCL; in xfs_file_write_checks()
396 xfs_ilock(ip, *iolock); in xfs_file_write_checks()
523 unsigned int iolock = XFS_IOLOCK_SHARED; in xfs_file_dio_write_aligned() local
526 ret = xfs_ilock_iocb(iocb, iolock); in xfs_file_dio_write_aligned()
529 ret = xfs_file_write_checks(iocb, from, &iolock); in xfs_file_dio_write_aligned()
538 if (iolock == XFS_IOLOCK_EXCL) { in xfs_file_dio_write_aligned()
540 iolock = XFS_IOLOCK_SHARED; in xfs_file_dio_write_aligned()
546 if (iolock) in xfs_file_dio_write_aligned()
547 xfs_iunlock(ip, iolock); in xfs_file_dio_write_aligned()
576 unsigned int iolock = XFS_IOLOCK_SHARED; in xfs_file_dio_write_unaligned() local
589 iolock = XFS_IOLOCK_EXCL; in xfs_file_dio_write_unaligned()
593 ret = xfs_ilock_iocb(iocb, iolock); in xfs_file_dio_write_unaligned()
607 ret = xfs_file_write_checks(iocb, from, &iolock); in xfs_file_dio_write_unaligned()
631 xfs_iunlock(ip, iolock); in xfs_file_dio_write_unaligned()
636 if (iolock) in xfs_file_dio_write_unaligned()
637 xfs_iunlock(ip, iolock); in xfs_file_dio_write_unaligned()
665 unsigned int iolock = XFS_IOLOCK_EXCL; in xfs_file_dax_write() local
669 ret = xfs_ilock_iocb(iocb, iolock); in xfs_file_dax_write()
672 ret = xfs_file_write_checks(iocb, from, &iolock); in xfs_file_dax_write()
685 if (iolock) in xfs_file_dax_write()
686 xfs_iunlock(ip, iolock); in xfs_file_dax_write()
708 unsigned int iolock; in xfs_file_buffered_write() local
711 iolock = XFS_IOLOCK_EXCL; in xfs_file_buffered_write()
712 ret = xfs_ilock_iocb(iocb, iolock); in xfs_file_buffered_write()
716 ret = xfs_file_write_checks(iocb, from, &iolock); in xfs_file_buffered_write()
740 xfs_iunlock(ip, iolock); in xfs_file_buffered_write()
750 xfs_iunlock(ip, iolock); in xfs_file_buffered_write()
758 if (iolock) in xfs_file_buffered_write()
759 xfs_iunlock(ip, iolock); in xfs_file_buffered_write()
838 uint *iolock, in xfs_break_layouts() argument
855 error = xfs_break_leased_layouts(inode, iolock, &retry); in xfs_break_layouts()
896 uint iolock = XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL; in xfs_file_fallocate() local
905 xfs_ilock(ip, iolock); in xfs_file_fallocate()
906 error = xfs_break_layouts(inode, &iolock, BREAK_UNMAP); in xfs_file_fallocate()
1072 xfs_iunlock(ip, iolock); in xfs_file_fallocate()