Lines Matching refs:i_rwsem
110 * In addition to i_rwsem in the VFS inode, the xfs inode contains 2
119 * i_rwsem -> invalidate_lock -> page_lock -> i_ilock
123 * i_rwsem -> page lock -> mmap_lock
130 * space for direct IO. Similarly the i_rwsem cannot be taken inside a page
134 * take both the i_rwsem and the invalidate_lock. These locks should *only* be
149 down_write_nested(&VFS_I(ip)->i_rwsem,
152 down_read_nested(&VFS_I(ip)->i_rwsem,
192 if (!down_write_trylock(&VFS_I(ip)->i_rwsem))
195 if (!down_read_trylock(&VFS_I(ip)->i_rwsem))
223 up_write(&VFS_I(ip)->i_rwsem);
225 up_read(&VFS_I(ip)->i_rwsem);
250 up_write(&VFS_I(ip)->i_rwsem);
252 up_read(&VFS_I(ip)->i_rwsem);
285 downgrade_write(&VFS_I(ip)->i_rwsem);
310 rwsem_assert_held(&VFS_I(ip)->i_rwsem);
312 rwsem_assert_held_write(&VFS_I(ip)->i_rwsem);
478 * mmaplock must be double-locked separately since we use i_rwsem and