summaryrefslogtreecommitdiff
path: root/fs/gfs2/super.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruenba@redhat.com>2025-04-18 01:09:32 +0200
committerAndreas Gruenbacher <agruenba@redhat.com>2025-04-21 18:20:36 +0200
commit0cc617a54dfe6b44624c9a03e2e11a24eb9bc720 (patch)
tree3ec53e67d7e81ba952ea368563ae5e503339dd72 /fs/gfs2/super.c
parentbcd18105fb34e27c097f222733dba9a3e79f191c (diff)
downloadlinux-next-0cc617a54dfe6b44624c9a03e2e11a24eb9bc720.tar.gz
linux-next-0cc617a54dfe6b44624c9a03e2e11a24eb9bc720.zip
gfs2: Move GIF_ALLOC_FAILED check out of gfs2_ea_dealloc
Don't check for the GIF_ALLOC_FAILED flag in gfs2_ea_dealloc() and pass that information explicitly instead. This allows for a cleaner follow-up patch. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'fs/gfs2/super.c')
-rw-r--r--fs/gfs2/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/super.c b/fs/gfs2/super.c
index 3f49f848c6b4..e25a24ae2197 100644
--- a/fs/gfs2/super.c
+++ b/fs/gfs2/super.c
@@ -1314,7 +1314,7 @@ static int evict_unlinked_inode(struct inode *inode)
}
if (ip->i_eattr) {
- ret = gfs2_ea_dealloc(ip);
+ ret = gfs2_ea_dealloc(ip, !test_bit(GIF_ALLOC_FAILED, &ip->i_flags));
if (ret)
goto out;
}