client: fix ipquad macro

This commit is contained in:
Sage Weil 2008-03-07 10:32:40 -08:00
parent 1674afe7ee
commit 542e4d65a3
3 changed files with 4 additions and 12 deletions

View File

@ -142,7 +142,6 @@ int ceph_fill_inode(struct inode *inode, struct ceph_mds_reply_inode *info)
}
ci->time = jiffies;
return 0;
}

View File

@ -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

View File

@ -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))
/*