gfs: Get rid of unnucessary locking in inode_go_dump
authorAndreas Gruenbacher <agruenba@redhat.com>
Wed, 21 Jun 2023 20:32:06 +0000 (22:32 +0200)
committerAndreas Gruenbacher <agruenba@redhat.com>
Mon, 3 Jul 2023 20:30:47 +0000 (22:30 +0200)
commitf246dd4b78e0efda8aa3f93f831a44e12ef0e59e
treeb52a2390795e81abba22dfe7ab78146dcb6a4041
parent6c7410f44961cf72d49a18e455ad4ae833f6fb7c
gfs: Get rid of unnucessary locking in inode_go_dump

Commit 27a2660f1ef9 ("gfs2: Dump nrpages for inodes and their glocks")
added some locking around reading inode->i_data.nrpages.  That locking
doesn't do anything really, so get rid of it.

With that, the glock argument to ->go_dump() can be made const again as
well.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/glops.c
fs/gfs2/incore.h