gfs2: gfs2_create_inode error handling fix

[ Upstream commit af4044fd0b ]

When gfs2_create_inode() finds a directory, make sure to return -EISDIR.

Fixes: 571a4b5797 ("GFS2: bugger off early if O_CREAT open finds a directory")
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Andreas Gruenbacher 2025-04-18 16:40:58 +02:00 • committed by Greg Kroah-Hartman
commit 5cd98656bc