Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 645b2ccc authored by Steven Whitehouse's avatar Steven Whitehouse
Browse files

GFS2: Fix missing allocation data for set/remove xattr



These entry points were missed in the original patch to allocate
this data structure.

Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
parent da1dfb6a
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -1722,6 +1722,8 @@ static int gfs2_setxattr(struct dentry *dentry, const char *name,
	gfs2_holder_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh);
	ret = gfs2_glock_nq(&gh);
	if (ret == 0) {
		ret = gfs2_rs_alloc(ip);
		if (ret == 0)
			ret = generic_setxattr(dentry, name, data, size, flags);
		gfs2_glock_dq(&gh);
	}
@@ -1757,6 +1759,8 @@ static int gfs2_removexattr(struct dentry *dentry, const char *name)
	gfs2_holder_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh);
	ret = gfs2_glock_nq(&gh);
	if (ret == 0) {
		ret = gfs2_rs_alloc(ip);
		if (ret == 0)
			ret = generic_removexattr(dentry, name);
		gfs2_glock_dq(&gh);
	}