Home
last modified time | relevance | path

Searched refs:i_rwsem (Results 1 – 19 of 19) sorted by relevance

/linux-4.19.296/fs/nfs/
Dio.c47 down_read(&inode->i_rwsem); in nfs_start_io_read()
50 up_read(&inode->i_rwsem); in nfs_start_io_read()
52 down_write(&inode->i_rwsem); in nfs_start_io_read()
54 downgrade_write(&inode->i_rwsem); in nfs_start_io_read()
67 up_read(&inode->i_rwsem); in nfs_end_io_read()
80 down_write(&inode->i_rwsem); in nfs_start_io_write()
94 up_write(&inode->i_rwsem); in nfs_end_io_write()
127 down_read(&inode->i_rwsem); in nfs_start_io_direct()
130 up_read(&inode->i_rwsem); in nfs_start_io_direct()
132 down_write(&inode->i_rwsem); in nfs_start_io_direct()
[all …]
/linux-4.19.296/fs/xfs/
Dxfs_inode.c186 down_write_nested(&VFS_I(ip)->i_rwsem, in xfs_ilock()
189 down_read_nested(&VFS_I(ip)->i_rwsem, in xfs_ilock()
237 if (!down_write_trylock(&VFS_I(ip)->i_rwsem)) in xfs_ilock_nowait()
240 if (!down_read_trylock(&VFS_I(ip)->i_rwsem)) in xfs_ilock_nowait()
268 up_write(&VFS_I(ip)->i_rwsem); in xfs_ilock_nowait()
270 up_read(&VFS_I(ip)->i_rwsem); in xfs_ilock_nowait()
307 up_write(&VFS_I(ip)->i_rwsem); in xfs_iunlock()
309 up_read(&VFS_I(ip)->i_rwsem); in xfs_iunlock()
342 downgrade_write(&VFS_I(ip)->i_rwsem); in xfs_ilock_demote()
368 lockdep_is_held_type(&VFS_I(ip)->i_rwsem, 0); in xfs_isilocked()
[all …]
Dxfs_icache.c450 ASSERT(!rwsem_is_locked(&inode->i_rwsem)); in xfs_iget_cache_hit()
451 init_rwsem(&inode->i_rwsem); in xfs_iget_cache_hit()
Dxfs_iops.c1310 lockdep_set_class(&inode->i_rwsem, in xfs_setup_inode()
Dxfs_super.c948 ASSERT(!rwsem_is_locked(&inode->i_rwsem)); in xfs_fs_destroy_inode()
/linux-4.19.296/include/linux/
Dfs.h643 struct rw_semaphore i_rwsem; member
748 down_write(&inode->i_rwsem); in inode_lock()
753 up_write(&inode->i_rwsem); in inode_unlock()
758 down_read(&inode->i_rwsem); in inode_lock_shared()
763 up_read(&inode->i_rwsem); in inode_unlock_shared()
768 return down_write_trylock(&inode->i_rwsem); in inode_trylock()
773 return down_read_trylock(&inode->i_rwsem); in inode_trylock_shared()
778 return rwsem_is_locked(&inode->i_rwsem); in inode_is_locked()
783 down_write_nested(&inode->i_rwsem, subclass); in inode_lock_nested()
788 down_read_nested(&inode->i_rwsem, subclass); in inode_lock_shared_nested()
/linux-4.19.296/fs/
Dreaddir.c41 res = down_read_killable(&inode->i_rwsem); in iterate_dir()
43 res = down_write_killable(&inode->i_rwsem); in iterate_dir()
Dinode.c172 init_rwsem(&inode->i_rwsem); in inode_init_always()
173 lockdep_set_class(&inode->i_rwsem, &sb->s_type->i_mutex_key); in inode_init_always()
953 if (lockdep_match_class(&inode->i_rwsem, &type->i_mutex_key)) { in lockdep_annotate_inode_mutex_key()
958 init_rwsem(&inode->i_rwsem); in lockdep_annotate_inode_mutex_key()
959 lockdep_set_class(&inode->i_rwsem, in lockdep_annotate_inode_mutex_key()
Ddax.c1299 lockdep_assert_held_exclusive(&inode->i_rwsem); in dax_iomap_rw()
1302 lockdep_assert_held(&inode->i_rwsem); in dax_iomap_rw()
Diomap.c1828 lockdep_assert_held(&inode->i_rwsem); in iomap_dio_rw()
Ddcache.c2901 m2 = &alias->d_parent->d_inode->i_rwsem; in __d_unalias()
/linux-4.19.296/fs/configfs/
Dinode.c159 lockdep_set_class(&inode->i_rwsem, in configfs_set_inode_lock_class()
/linux-4.19.296/fs/overlayfs/
Dinode.c551 lockdep_set_class(&inode->i_rwsem, &ovl_i_mutex_dir_key[depth]); in ovl_lockdep_annotate_inode_mutex_key()
553 lockdep_set_class(&inode->i_rwsem, &ovl_i_mutex_key[depth]); in ovl_lockdep_annotate_inode_mutex_key()
Dreaddir.c279 err = down_write_killable(&dir->d_inode->i_rwsem); in ovl_check_whiteouts()
/linux-4.19.296/fs/gfs2/
Dops_fstype.c821 lockdep_set_class(&sdp->sd_quota_inode->i_rwsem, in init_inodes()
/linux-4.19.296/fs/ocfs2/
Dinode.c261 lockdep_set_class(&inode->i_rwsem, in ocfs2_init_locked_inode()
/linux-4.19.296/fs/btrfs/
Ddelayed-inode.c1667 downgrade_write(&inode->i_rwsem); in btrfs_readdir_put_delayed_items()
Dioctl.c975 error = down_write_killable_nested(&dir->i_rwsem, I_MUTEX_PARENT); in btrfs_mksubvol()
2905 err = down_write_killable_nested(&dir->i_rwsem, I_MUTEX_PARENT); in btrfs_ioctl_snap_destroy()
/linux-4.19.296/fs/ext4/
Dxattr.c126 lockdep_set_subclass(&ea_inode->i_rwsem, 1); in ext4_xattr_inode_set_class()