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

Commit 45eaa1c1 authored by J. Bruce Fields's avatar J. Bruce Fields
Browse files

nfsd4: fix change attribute endianness



Though actually this doesn't matter much, as NFSv4.0 clients are
required to treat the change attribute as opaque.

Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent d1829b38
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -1674,12 +1674,12 @@ nfsd4_decode_compound(struct nfsd4_compoundargs *argp)


static void write32(__be32 **p, u32 n)
static void write32(__be32 **p, u32 n)
{
{
	*(*p)++ = n;
	*(*p)++ = htonl(n);
}
}


static void write64(__be32 **p, u64 n)
static void write64(__be32 **p, u64 n)
{
{
	write32(p, (u32)(n >> 32));
	write32(p, (n >> 32));
	write32(p, (u32)n);
	write32(p, (u32)n);
}
}