gfs2: Add extra error check in alloc_dinode
authorAndreas Gruenbacher <agruenba@redhat.com>
Wed, 2 Nov 2022 22:57:50 +0000 (23:57 +0100)
committerAndreas Gruenbacher <agruenba@redhat.com>
Fri, 2 Dec 2022 14:58:00 +0000 (15:58 +0100)
commit35c23fba4eb4b3043b42acbdd3fbabdd8824f56f
tree8cde3a2f293465782e69ff558f79541f9b320219
parentb7b275e60bcd5f89771e865a8239325f86d9927d
gfs2: Add extra error check in alloc_dinode

We have reserved the number of blocks we want to allocate, so the actual
allocation isn't expected to fail.  Nevertheless, make the code behave
correctly even when things go wrong.

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