Searched refs:i_rwsem (Results 1 – 19 of 19) sorted by relevance
/linux-4.19.296/fs/nfs/ |
D | io.c | 47 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/ |
D | xfs_inode.c | 186 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 …]
|
D | xfs_icache.c | 450 ASSERT(!rwsem_is_locked(&inode->i_rwsem)); in xfs_iget_cache_hit() 451 init_rwsem(&inode->i_rwsem); in xfs_iget_cache_hit()
|
D | xfs_iops.c | 1310 lockdep_set_class(&inode->i_rwsem, in xfs_setup_inode()
|
D | xfs_super.c | 948 ASSERT(!rwsem_is_locked(&inode->i_rwsem)); in xfs_fs_destroy_inode()
|
/linux-4.19.296/include/linux/ |
D | fs.h | 643 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/ |
D | readdir.c | 41 res = down_read_killable(&inode->i_rwsem); in iterate_dir() 43 res = down_write_killable(&inode->i_rwsem); in iterate_dir()
|
D | inode.c | 172 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()
|
D | dax.c | 1299 lockdep_assert_held_exclusive(&inode->i_rwsem); in dax_iomap_rw() 1302 lockdep_assert_held(&inode->i_rwsem); in dax_iomap_rw()
|
D | iomap.c | 1828 lockdep_assert_held(&inode->i_rwsem); in iomap_dio_rw()
|
D | dcache.c | 2901 m2 = &alias->d_parent->d_inode->i_rwsem; in __d_unalias()
|
/linux-4.19.296/fs/configfs/ |
D | inode.c | 159 lockdep_set_class(&inode->i_rwsem, in configfs_set_inode_lock_class()
|
/linux-4.19.296/fs/overlayfs/ |
D | inode.c | 551 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()
|
D | readdir.c | 279 err = down_write_killable(&dir->d_inode->i_rwsem); in ovl_check_whiteouts()
|
/linux-4.19.296/fs/gfs2/ |
D | ops_fstype.c | 821 lockdep_set_class(&sdp->sd_quota_inode->i_rwsem, in init_inodes()
|
/linux-4.19.296/fs/ocfs2/ |
D | inode.c | 261 lockdep_set_class(&inode->i_rwsem, in ocfs2_init_locked_inode()
|
/linux-4.19.296/fs/btrfs/ |
D | delayed-inode.c | 1667 downgrade_write(&inode->i_rwsem); in btrfs_readdir_put_delayed_items()
|
D | ioctl.c | 975 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/ |
D | xattr.c | 126 lockdep_set_subclass(&ea_inode->i_rwsem, 1); in ext4_xattr_inode_set_class()
|