Home
last modified time | relevance | path

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

/fs/xfs/
Dxfs_inode.c162 uint lock_flags) in xfs_ilock() argument
164 trace_xfs_ilock(ip, lock_flags, _RET_IP_); in xfs_ilock()
171 ASSERT((lock_flags & (XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL)) != in xfs_ilock()
173 ASSERT((lock_flags & (XFS_MMAPLOCK_SHARED | XFS_MMAPLOCK_EXCL)) != in xfs_ilock()
175 ASSERT((lock_flags & (XFS_ILOCK_SHARED | XFS_ILOCK_EXCL)) != in xfs_ilock()
177 ASSERT((lock_flags & ~(XFS_LOCK_MASK | XFS_LOCK_SUBCLASS_MASK)) == 0); in xfs_ilock()
179 if (lock_flags & XFS_IOLOCK_EXCL) { in xfs_ilock()
181 XFS_IOLOCK_DEP(lock_flags)); in xfs_ilock()
182 } else if (lock_flags & XFS_IOLOCK_SHARED) { in xfs_ilock()
184 XFS_IOLOCK_DEP(lock_flags)); in xfs_ilock()
[all …]
Dxfs_icache.c356 int lock_flags) __releases(RCU) in xfs_iget_cache_hit() argument
478 if (lock_flags != 0) in xfs_iget_cache_hit()
479 xfs_ilock(ip, lock_flags); in xfs_iget_cache_hit()
502 int lock_flags) in xfs_iget_cache_miss() argument
548 if (lock_flags) { in xfs_iget_cache_miss()
549 if (!xfs_ilock_nowait(ip, lock_flags)) in xfs_iget_cache_miss()
588 if (lock_flags) in xfs_iget_cache_miss()
589 xfs_iunlock(ip, lock_flags); in xfs_iget_cache_miss()
624 uint lock_flags, in xfs_iget() argument
639 ASSERT((lock_flags & (XFS_IOLOCK_EXCL | XFS_IOLOCK_SHARED)) == 0); in xfs_iget()
[all …]
Dxfs_pnfs.c92 uint lock_flags; in xfs_fs_map_blocks() local
142 lock_flags = xfs_ilock_data_map_shared(ip); in xfs_fs_map_blocks()
145 xfs_iunlock(ip, lock_flags); in xfs_fs_map_blocks()
Dxfs_inode_item.c572 unsigned short lock_flags; in xfs_inode_item_release() local
577 lock_flags = iip->ili_lock_flags; in xfs_inode_item_release()
579 if (lock_flags) in xfs_inode_item_release()
580 xfs_iunlock(ip, lock_flags); in xfs_inode_item_release()
Dxfs_iops.c835 uint lock_flags = 0; in xfs_setattr_size() local
948 lock_flags |= XFS_ILOCK_EXCL; in xfs_setattr_size()
1016 if (lock_flags) in xfs_setattr_size()
1017 xfs_iunlock(ip, lock_flags); in xfs_setattr_size()
Dxfs_icache.h46 uint flags, uint lock_flags, xfs_inode_t **ipp);
Dxfs_bmap_util.c1740 int lock_flags; in xfs_swap_extents() local
1752 lock_flags = XFS_MMAPLOCK_EXCL; in xfs_swap_extents()
1817 lock_flags |= XFS_ILOCK_EXCL; in xfs_swap_extents()
1936 xfs_iunlock(ip, lock_flags); in xfs_swap_extents()
1937 xfs_iunlock(tip, lock_flags); in xfs_swap_extents()
Dxfs_dquot.c641 uint lock_flags; in xfs_dq_get_next_id() local
660 lock_flags = xfs_ilock_data_map_shared(quotip); in xfs_dq_get_next_id()
676 xfs_iunlock(quotip, lock_flags); in xfs_dq_get_next_id()
Dxfs_trace.h558 TP_PROTO(struct xfs_inode *ip, unsigned lock_flags,
560 TP_ARGS(ip, lock_flags, caller_ip),
564 __field(int, lock_flags)
570 __entry->lock_flags = lock_flags;
576 __print_flags(__entry->lock_flags, "|", XFS_LOCK_FLAGS),
582 TP_PROTO(struct xfs_inode *ip, unsigned lock_flags, \
584 TP_ARGS(ip, lock_flags, caller_ip))
/fs/xfs/libxfs/
Dxfs_trans_inode.c28 uint lock_flags) in xfs_trans_ijoin() argument
38 iip->ili_lock_flags = lock_flags; in xfs_trans_ijoin()
/fs/cifs/
Dsmb2pdu.c4853 const __u64 length, const __u64 offset, const __u32 lock_flags, in SMB2_lock() argument
4860 lock.Flags = cpu_to_le32(lock_flags); in SMB2_lock()
4861 if (!wait && lock_flags != SMB2_LOCKFLAG_UNLOCK) in SMB2_lock()
Dcifspdu.h1141 __le16 lock_flags; /* 1 = Wait (only valid for setlock) */ member
Dcifssmb.c2632 parm_data->lock_flags = cpu_to_le16(1); in CIFSSMBPosixLock()