gfs2: Unstuff before locking page in gfs2_page_mkwrite
authorAndreas Gruenbacher <agruenba@redhat.com>
Thu, 17 Jun 2021 21:04:14 +0000 (23:04 +0200)
committerAndreas Gruenbacher <agruenba@redhat.com>
Tue, 29 Jun 2021 08:56:51 +0000 (10:56 +0200)
commit64090cbe4bff240e9a5266e956fcaf449ea6b327
tree8e527d666714e0b2c2f6cc306603245dc5b8e576
parent0fc3bcd6b6e34281254658bef27c45ec8c19e50c
gfs2: Unstuff before locking page in gfs2_page_mkwrite

In gfs2_page_mkwrite, unstuff inodes before locking the page.  That
way, we won't have to pass in the locked page to gfs2_unstuff_inode,
and gfs2_unstuff_inode can look up and lock the page itself.

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