mirror of
https://github.com/ceph/ceph
synced 2025-01-10 21:20:46 +00:00
client: fix ipquad macro
This commit is contained in:
parent
1674afe7ee
commit
542e4d65a3
@ -142,7 +142,6 @@ int ceph_fill_inode(struct inode *inode, struct ceph_mds_reply_inode *info)
|
||||
}
|
||||
|
||||
ci->time = jiffies;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -25,13 +25,6 @@ static void try_write(struct work_struct *);
|
||||
static void try_accept(struct work_struct *);
|
||||
|
||||
|
||||
#define IPQUADPORT(n) \
|
||||
(unsigned int)((n.sin_addr.s_addr)>>24)&0xFF, \
|
||||
(unsigned int)((n.sin_addr.s_addr)>>16)&0xFF, \
|
||||
(unsigned int)((n.sin_addr.s_addr)>>8)&0xFF, \
|
||||
(unsigned int)((n.sin_addr.s_addr)&0xFF), \
|
||||
(unsigned int)(ntohs(n.sin_port))
|
||||
|
||||
|
||||
/*
|
||||
* connections
|
||||
|
@ -38,10 +38,10 @@ extern int ceph_lookup_cache;
|
||||
#define CACHE_HZ (1*HZ)
|
||||
|
||||
#define IPQUADPORT(n) \
|
||||
(unsigned int)((n.sin_addr.s_addr)>>24)&0xFF, \
|
||||
(unsigned int)((n.sin_addr.s_addr)>>16)&0xFF, \
|
||||
(unsigned int)((n.sin_addr.s_addr)>>8)&0xFF, \
|
||||
(unsigned int)((n.sin_addr.s_addr)&0xFF), \
|
||||
(unsigned int)((n.sin_addr.s_addr)) & 0xFF, \
|
||||
(unsigned int)((n.sin_addr.s_addr)>>8) & 0xFF, \
|
||||
(unsigned int)((n.sin_addr.s_addr)>>16) & 0xFF, \
|
||||
(unsigned int)((n.sin_addr.s_addr)>>24) & 0xFF, \
|
||||
(unsigned int)(ntohs(n.sin_port))
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user