Lines Matching refs:i_rwsem
151 * In addition to i_rwsem in the VFS inode, the xfs inode contains 2
160 * i_rwsem -> invalidate_lock -> page_lock -> i_ilock
164 * i_rwsem -> page lock -> mmap_lock
171 * space for direct IO. Similarly the i_rwsem cannot be taken inside a page
175 * take both the i_rwsem and the invalidate_lock. These locks should *only* be
190 down_write_nested(&VFS_I(ip)->i_rwsem,
193 down_read_nested(&VFS_I(ip)->i_rwsem,
233 if (!down_write_trylock(&VFS_I(ip)->i_rwsem))
236 if (!down_read_trylock(&VFS_I(ip)->i_rwsem))
264 up_write(&VFS_I(ip)->i_rwsem);
266 up_read(&VFS_I(ip)->i_rwsem);
291 up_write(&VFS_I(ip)->i_rwsem);
293 up_read(&VFS_I(ip)->i_rwsem);
326 downgrade_write(&VFS_I(ip)->i_rwsem);
351 rwsem_assert_held(&VFS_I(ip)->i_rwsem);
353 rwsem_assert_held_write(&VFS_I(ip)->i_rwsem);
520 * mmaplock must be double-locked separately since we use i_rwsem and