Home
last modified time | relevance | path

Searched refs:lock_flags (Results 1 – 13 of 13) sorted by relevance

/fs/xfs/
Dxfs_inode.c178 uint lock_flags) in xfs_ilock() argument
180 trace_xfs_ilock(ip, lock_flags, _RET_IP_); in xfs_ilock()
187 ASSERT((lock_flags & (XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL)) != in xfs_ilock()
189 ASSERT((lock_flags & (XFS_MMAPLOCK_SHARED | XFS_MMAPLOCK_EXCL)) != in xfs_ilock()
191 ASSERT((lock_flags & (XFS_ILOCK_SHARED | XFS_ILOCK_EXCL)) != in xfs_ilock()
193 ASSERT((lock_flags & ~(XFS_LOCK_MASK | XFS_LOCK_SUBCLASS_MASK)) == 0); in xfs_ilock()
195 if (lock_flags & XFS_IOLOCK_EXCL) { in xfs_ilock()
197 XFS_IOLOCK_DEP(lock_flags)); in xfs_ilock()
198 } else if (lock_flags & XFS_IOLOCK_SHARED) { in xfs_ilock()
200 XFS_IOLOCK_DEP(lock_flags)); in xfs_ilock()
[all …]
Dxfs_icache.c357 int lock_flags) __releases(RCU) in xfs_iget_cache_hit() argument
477 if (lock_flags != 0) in xfs_iget_cache_hit()
478 xfs_ilock(ip, lock_flags); in xfs_iget_cache_hit()
501 int lock_flags) in xfs_iget_cache_miss() argument
542 if (lock_flags) { in xfs_iget_cache_miss()
543 if (!xfs_ilock_nowait(ip, lock_flags)) in xfs_iget_cache_miss()
582 if (lock_flags) in xfs_iget_cache_miss()
583 xfs_iunlock(ip, lock_flags); in xfs_iget_cache_miss()
618 uint lock_flags, in xfs_iget() argument
633 ASSERT((lock_flags & (XFS_IOLOCK_EXCL | XFS_IOLOCK_SHARED)) == 0); in xfs_iget()
[all …]
Dxfs_trans_inode.c41 uint lock_flags) in xfs_trans_ijoin() argument
51 iip->ili_lock_flags = lock_flags; in xfs_trans_ijoin()
Dxfs_pnfs.c98 uint lock_flags; in xfs_fs_map_blocks() local
148 lock_flags = xfs_ilock_data_map_shared(ip); in xfs_fs_map_blocks()
151 xfs_iunlock(ip, lock_flags); in xfs_fs_map_blocks()
Dxfs_inode_item.c605 unsigned short lock_flags; in xfs_inode_item_unlock() local
610 lock_flags = iip->ili_lock_flags; in xfs_inode_item_unlock()
612 if (lock_flags) in xfs_inode_item_unlock()
613 xfs_iunlock(ip, lock_flags); in xfs_inode_item_unlock()
Dxfs_icache.h58 uint flags, uint lock_flags, xfs_inode_t **ipp);
Dxfs_iops.c831 uint lock_flags = 0; in xfs_setattr_size() local
932 lock_flags |= XFS_ILOCK_EXCL; in xfs_setattr_size()
1000 if (lock_flags) in xfs_setattr_size()
1001 xfs_iunlock(ip, lock_flags); in xfs_setattr_size()
Dxfs_dquot.c704 uint lock_flags; in xfs_dq_get_next_id() local
723 lock_flags = xfs_ilock_data_map_shared(quotip); in xfs_dq_get_next_id()
739 xfs_iunlock(quotip, lock_flags); in xfs_dq_get_next_id()
Dxfs_bmap_util.c2000 int lock_flags; in xfs_swap_extents() local
2012 lock_flags = XFS_MMAPLOCK_EXCL; in xfs_swap_extents()
2061 lock_flags |= XFS_ILOCK_EXCL; in xfs_swap_extents()
2187 xfs_iunlock(ip, lock_flags); in xfs_swap_extents()
2188 xfs_iunlock(tip, lock_flags); in xfs_swap_extents()
Dxfs_trace.h601 TP_PROTO(struct xfs_inode *ip, unsigned lock_flags,
603 TP_ARGS(ip, lock_flags, caller_ip),
607 __field(int, lock_flags)
613 __entry->lock_flags = lock_flags;
619 __print_flags(__entry->lock_flags, "|", XFS_LOCK_FLAGS),
625 TP_PROTO(struct xfs_inode *ip, unsigned lock_flags, \
627 TP_ARGS(ip, lock_flags, caller_ip))
/fs/cifs/
Dsmb2pdu.c3589 const __u64 length, const __u64 offset, const __u32 lock_flags, in SMB2_lock() argument
3596 lock.Flags = cpu_to_le32(lock_flags); in SMB2_lock()
3597 if (!wait && lock_flags != SMB2_LOCKFLAG_UNLOCK) in SMB2_lock()
Dcifspdu.h1141 __le16 lock_flags; /* 1 = Wait (only valid for setlock) */ member
Dcifssmb.c2499 parm_data->lock_flags = cpu_to_le16(1); in CIFSSMBPosixLock()