Searched refs:iolock (Results 1 – 5 of 5) sorted by relevance
/fs/xfs/ |
D | xfs_file.c | 407 int *iolock) in xfs_file_aio_write_checks() argument 421 error = xfs_break_layouts(inode, iolock, true); in xfs_file_aio_write_checks() 426 if (*iolock == XFS_IOLOCK_SHARED && !IS_NOSEC(inode)) { in xfs_file_aio_write_checks() 427 xfs_rw_iunlock(ip, *iolock); in xfs_file_aio_write_checks() 428 *iolock = XFS_IOLOCK_EXCL; in xfs_file_aio_write_checks() 429 xfs_rw_ilock(ip, *iolock); in xfs_file_aio_write_checks() 453 if (*iolock == XFS_IOLOCK_SHARED) { in xfs_file_aio_write_checks() 454 xfs_rw_iunlock(ip, *iolock); in xfs_file_aio_write_checks() 455 *iolock = XFS_IOLOCK_EXCL; in xfs_file_aio_write_checks() 456 xfs_rw_ilock(ip, *iolock); in xfs_file_aio_write_checks() [all …]
|
D | xfs_pnfs.c | 35 uint *iolock, in xfs_break_layouts() argument 44 xfs_iunlock(ip, *iolock); in xfs_break_layouts() 45 if (with_imutex && (*iolock & XFS_IOLOCK_EXCL)) in xfs_break_layouts() 48 *iolock = XFS_IOLOCK_EXCL; in xfs_break_layouts() 51 xfs_ilock(ip, *iolock); in xfs_break_layouts()
|
D | xfs_pnfs.h | 11 int xfs_break_layouts(struct inode *inode, uint *iolock, bool with_imutex); 14 xfs_break_layouts(struct inode *inode, uint *iolock, bool with_imutex) in xfs_break_layouts() argument
|
D | xfs_iops.c | 1018 uint iolock = XFS_IOLOCK_EXCL; in xfs_vn_setattr() local 1020 xfs_ilock(ip, iolock); in xfs_vn_setattr() 1021 error = xfs_break_layouts(d_inode(dentry), &iolock, true); in xfs_vn_setattr() 1024 iolock |= XFS_MMAPLOCK_EXCL; in xfs_vn_setattr() 1028 xfs_iunlock(ip, iolock); in xfs_vn_setattr()
|
D | xfs_ioctl.c | 612 uint iolock = XFS_IOLOCK_EXCL; in xfs_ioc_space() local 641 xfs_ilock(ip, iolock); in xfs_ioc_space() 642 error = xfs_break_layouts(inode, &iolock, false); in xfs_ioc_space() 647 iolock |= XFS_MMAPLOCK_EXCL; in xfs_ioc_space() 736 xfs_iunlock(ip, iolock); in xfs_ioc_space()
|