]> www.infradead.org Git - users/willy/pagecache.git/commit
xfs: Use rwsem_is_write_locked()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 6 Sep 2023 18:44:49 +0000 (14:44 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 6 Sep 2023 20:57:49 +0000 (16:57 -0400)
commit754fb6a68dae3649398722ba0f1a38b3870f72a5
treeb9380ebcce592a4ed1fb1f1c4352e2cf02a940cb
parent46f97b52a8fbb42ce38397b6886b74d7970ba14e
xfs: Use rwsem_is_write_locked()

This gives slightly better runtime checking when lockdep is disabled.
It also lets us avoid using the mr_writer field to check the XFS ILOCK.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
fs/xfs/xfs_inode.c