{
struct afs_callback *cb, *pcb;
int loop;
- u32 *fp, *bp;
+ __be32 *fp, *bp;
fp = rxrpc_call_alloc_scratch(call, qty);
struct {
uint8_t valid;
uint8_t unused[1];
- uint16_t hash_next;
- uint32_t vnode;
- uint32_t unique;
+ __be16 hash_next;
+ __be32 vnode;
+ __be32 unique;
uint8_t name[16];
uint8_t overflow[4]; /* if any char of the name (inc
* NUL) reaches here, consume
/* AFS directory page header (one at the beginning of every 2048-byte chunk) */
struct afs_dir_pagehdr {
- uint16_t npages;
- uint16_t magic;
+ __be16 npages;
+ __be16 magic;
#define AFS_DIR_MAGIC htons(1234)
uint8_t nentries;
uint8_t bitmap[8];
blkoff + offset * sizeof(union afs_dirent),
ntohl(dire->u.vnode),
filldir == afs_dir_lookup_filldir ?
- dire->u.unique : DT_UNKNOWN);
+ ntohl(dire->u.unique) : DT_UNKNOWN);
if (ret < 0) {
_leave(" = 0 [full]");
return 0;
struct afs_dir_lookup_cookie *cookie = _cookie;
_enter("{%s,%Zu},%s,%u,,%lu,%u",
- cookie->name, cookie->nlen, name, nlen, ino, ntohl(dtype));
+ cookie->name, cookie->nlen, name, nlen, ino, dtype);
if (cookie->nlen != nlen || memcmp(cookie->name, name, nlen) != 0) {
_leave(" = 0 [no]");
}
cookie->fid.vnode = ino;
- cookie->fid.unique = ntohl(dtype);
+ cookie->fid.unique = dtype;
cookie->found = 1;
_leave(" = -1 [found]");
struct kvec piov[1];
size_t sent;
int ret;
- u32 *bp;
+ __be32 *bp;
DECLARE_WAITQUEUE(myself, current);
struct kvec piov[1];
size_t sent;
int ret;
- u32 *bp;
+ __be32 *bp;
DECLARE_WAITQUEUE(myself, current);
struct kvec piov[1];
size_t sent;
int ret;
- u32 *bp;
+ __be32 *bp;
DECLARE_WAITQUEUE(myself, current);
struct kvec piov[1];
size_t sent;
int ret;
- u32 param[1];
+ __be32 param[1];
DECLARE_WAITQUEUE(myself, current);
unsigned tmp;
size_t sent;
int ret, loop;
- u32 *bp, param[2], zero;
+ __be32 *bp, param[2], zero;
_enter(",%*.*s,%u,", volnamesz, volnamesz, volname, volnamesz);
unsigned tmp;
size_t sent;
int ret, loop;
- u32 *bp, param[3];
+ __be32 *bp, param[3];
_enter(",%x,%d,", volid, voltype);
struct kvec piov[1];
size_t sent;
int ret;
- u32 param[3];
+ __be32 param[3];
_enter(",%x,%d,", volid, voltype);
int afs_rxvl_get_entry_by_id_async2(struct afs_async_op *op,
struct afs_cache_vlocation *entry)
{
- unsigned *bp, tmp;
+ __be32 *bp;
+ __u32 tmp;
int loop, ret;
_enter("{op=%p cst=%u}", op, op->call->app_call_state);