You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
sunrpc: ntoh -> be*_to_cpu
ntohl is already defined as be32_to_cpu. be64_to_cpu has architecture specific optimized implementations. Signed-off-by: Benny Halevy <bhalevy@panasas.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
committed by
Trond Myklebust
parent
9f162d2a81
commit
98866b5abe
@@ -124,9 +124,8 @@ xdr_encode_hyper(__be32 *p, __u64 val)
|
||||
static inline __be32 *
|
||||
xdr_decode_hyper(__be32 *p, __u64 *valp)
|
||||
{
|
||||
*valp = ((__u64) ntohl(*p++)) << 32;
|
||||
*valp |= ntohl(*p++);
|
||||
return p;
|
||||
*valp = be64_to_cpup((__be64 *)p);
|
||||
return p + 2;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user