Lines Matching refs:i_rwsem
156 * In addition to i_rwsem in the VFS inode, the xfs inode contains 2
165 * i_rwsem -> invalidate_lock -> page_lock -> i_ilock
169 * i_rwsem -> page lock -> mmap_lock
176 * space for direct IO. Similarly the i_rwsem cannot be taken inside a page
180 * take both the i_rwsem and the invalidate_lock. These locks should *only* be
195 down_write_nested(&VFS_I(ip)->i_rwsem,
198 down_read_nested(&VFS_I(ip)->i_rwsem,
238 if (!down_write_trylock(&VFS_I(ip)->i_rwsem))
241 if (!down_read_trylock(&VFS_I(ip)->i_rwsem))
269 up_write(&VFS_I(ip)->i_rwsem);
271 up_read(&VFS_I(ip)->i_rwsem);
296 up_write(&VFS_I(ip)->i_rwsem);
298 up_read(&VFS_I(ip)->i_rwsem);
331 downgrade_write(&VFS_I(ip)->i_rwsem);
374 return __xfs_rwsem_islocked(&VFS_I(ip)->i_rwsem,
547 * mmaplock must be double-locked separately since we use i_rwsem and