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

Commit d7929ff6 authored by Nathan Scott's avatar Nathan Scott
Browse files

[XFS] store xfs_attr_inactive_list_t in native endian



SGI-PV: 943272
SGI-Modid: xfs-linux-melb:xfs-kern:25503a

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarNathan Scott <nathans@sgi.com>
parent 984a081a
Loading
Loading
Loading
Loading
+5 −9
Original line number Original line Diff line number Diff line
@@ -2938,11 +2938,9 @@ xfs_attr_leaf_inactive(xfs_trans_t **trans, xfs_inode_t *dp, xfs_dabuf_t *bp)
		    ((entry->flags & XFS_ATTR_LOCAL) == 0)) {
		    ((entry->flags & XFS_ATTR_LOCAL) == 0)) {
			name_rmt = XFS_ATTR_LEAF_NAME_REMOTE(leaf, i);
			name_rmt = XFS_ATTR_LEAF_NAME_REMOTE(leaf, i);
			if (name_rmt->valueblk) {
			if (name_rmt->valueblk) {
				/* both on-disk, don't endian flip twice */
				lp->valueblk = be32_to_cpu(name_rmt->valueblk);
				lp->valueblk = name_rmt->valueblk;
				lp->valuelen = XFS_B_TO_FSB(dp->i_mount,
				INT_SET(lp->valuelen, ARCH_CONVERT,
						    be32_to_cpu(name_rmt->valuelen));
						XFS_B_TO_FSB(dp->i_mount,
						    be32_to_cpu(name_rmt->valuelen)));
				lp++;
				lp++;
			}
			}
		}
		}
@@ -2955,10 +2953,8 @@ xfs_attr_leaf_inactive(xfs_trans_t **trans, xfs_inode_t *dp, xfs_dabuf_t *bp)
	error = 0;
	error = 0;
	for (lp = list, i = 0; i < count; i++, lp++) {
	for (lp = list, i = 0; i < count; i++, lp++) {
		tmp = xfs_attr_leaf_freextent(trans, dp,
		tmp = xfs_attr_leaf_freextent(trans, dp,
						     INT_GET(lp->valueblk,
				lp->valueblk, lp->valuelen);
								ARCH_CONVERT),

						     INT_GET(lp->valuelen,
								ARCH_CONVERT));
		if (error == 0)
		if (error == 0)
			error = tmp;	/* save only the 1st errno */
			error = tmp;	/* save only the 1st errno */
	}
	}