VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Bob Peterson <rpeterso@redhat.com> 2021-05-19 14:45:56 -0400 committer: Andreas Gruenbacher <agruenba@redhat.com> 2021-05-20 13:31:37 +0200 commit: 4194dec4b4169e5a9a5171db60c2ec00c4d8cf16 parent: 43a511c44e58e357a687d61a20cf5ef1dc9e5a7c
Commit Summary:
gfs2: Fix I_NEW check in gfs2_dinode_in
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/gfs2/glops.c b/fs/gfs2/glops.c
index 454095e9fedf..54d3fbeb3002 100644
--- a/fs/gfs2/glops.c
+++ b/fs/gfs2/glops.c
@@ -396,7 +396,7 @@ static int gfs2_dinode_in(struct gfs2_inode *ip, const void *buf)
 	struct timespec64 atime;
 	u16 height, depth;
 	umode_t mode = be32_to_cpu(str->di_mode);
-	bool is_new = ip->i_inode.i_flags & I_NEW;
+	bool is_new = ip->i_inode.i_state & I_NEW;
 
 	if (unlikely(ip->i_no_addr != be64_to_cpu(str->di_num.no_addr)))
 		goto corrupt;