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

Commit 83099bc6 authored by Tao Ma's avatar Tao Ma Committed by Mark Fasheh
Browse files

ocfs2: Always update xattr search when creating bucket.



When we create xattr bucket during the process of xattr set, we always
need to update the ocfs2_xattr_search since even if the bucket size is
the same as block size, the offset will change because of the removal
of the ocfs2_xattr_block header.

Signed-off-by: default avatarTao Ma <tao.ma@oracle.com>
Signed-off-by: default avatarMark Fasheh <mfasheh@suse.com>
parent 1bda7128
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -2645,10 +2645,10 @@ static int ocfs2_xattr_update_xattr_search(struct inode *inode,
				return ret;
				return ret;
			}
			}


		}
		i = xs->here - old_xh->xh_entries;
		i = xs->here - old_xh->xh_entries;
		xs->here = &xs->header->xh_entries[i];
		xs->here = &xs->header->xh_entries[i];
	}
	}
	}


	return ret;
	return ret;
}
}