Skip to contentSkip to conversation

crush:Make the function crush_ln static

PATCH Ilya Dryomov 1 participant 6 messages Jun 9, 2015 – Jun 16, 2015 5 messages not in the archive

Subsystems (2)
lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 14 lines · Nicholas Krause

This makes the function, crush_ln static now due to having only one caller in its own definition and declaration file of mapper.c

---
 net/ceph/crush/mapper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/ceph/crush/mapper.c +0 -0
index 5b47736..86778d4 100644

net/ceph/crush/mapper.c static int bucket_straw_choose(struct crush_bucket_straw *bucket, · line 245

Quoted 8 lines
net/ceph/crush/mapper.c +1 -1
@@ -239,7 +239,7 @@ static int bucket_straw_choose(struct crush_bucket_straw *bucket,
 }
 
 // compute 2^44*log2(input+1)
-uint64_t crush_ln(unsigned xin)
+static uint64_t crush_ln(unsigned xin)
 {
     unsigned x=xin, x1;
     int iexpon, index1, index2;

This is tied up with a bunch of style cleanups, I'll apply it after they are sorted out.

Thanks,

Ilya

#2 lore raw
Quoted 17 lines · Ilya Dryomov
Quoted 16 lines · Nicholas Krause

This makes the function, crush_ln static now due to having only one caller in its own definition and declaration file of mapper.c

---
 net/ceph/crush/mapper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/ceph/crush/mapper.c +0 -0
index 5b47736..86778d4 100644
@@ -239,7 +239,7 @@ static int bucket_straw_choose(struct crush_bucket_straw *bucket,
 }
 
Quoted 9 lines

net/ceph/crush/mapper.c static int bucket_straw_choose(struct crush_bucket_straw *bucket, · line 245

Quoted 6 lines
net/ceph/crush/mapper.c +1 -1
 // compute 2^44*log2(input+1)
-uint64_t crush_ln(unsigned xin)
+static uint64_t crush_ln(unsigned xin)
 {
     unsigned x=xin, x1;
     int iexpon, index1, index2;

This is tied up with a bunch of style cleanups, I'll apply it after they are sorted out.

I folded your patch into a cleanup commit [1] that also fixed crush_ln() formatting - I hope you don't mind.

[1] https://github.com/ceph/ceph-client/commit/45c7a1f5df419e53c17f2eeb5680d6fb20a07162

Thanks,

Ilya

#4 lore raw
In reply to a message not in the archive
Quoted 3 lines · nick

Ilya,
That's fine I do have a unrelated question through. I have over 90 patches lying around in terms of cleanups/ fixes and need help getting them merged. Should I just resend them or wait until the end of this merge window.

Are all of those ceph patches?

Thanks,

Ilya

#6 lore raw
In reply to a message not in the archive
Quoted 8 lines · nick
Quoted 5 lines · Ilya Dryomov
Quoted 3 lines · nick

Ilya,
That's fine I do have a unrelated question through. I have over 90 patches lying around in terms of cleanups/ fixes and need help getting them merged. Should I just resend them or wait until the end of this merge window.

Quoted 7 lines
Quoted 6 lines

Are all of those ceph patches?

Thanks,

Ilya

No there all over networking stack including drivers.

I'd suggest reaching out to the respective maintainers, especially if those ~90 patches can be broken into a few chunks that a small number of people can deal with.

If that doesn't get you anywhere, try resending the whole batch to [email protected]. Jiri may be able to merge it through his trivial tree.

Thanks,

Ilya

#8 lore raw
In reply to a message not in the archive
Quoted 10 lines · nick
Quoted 7 lines · Ilya Dryomov
Quoted 3 lines · nick

Ilya,
That's fine I do have a unrelated question through. I have over 90 patches lying around in terms of cleanups/ fixes and need help getting them merged. Should I just resend them or wait until the end of this merge window.

Are all of those ceph patches?

Quoted 7 lines
Quoted 4 lines

Thanks,

Ilya

Ilya,
Sorry for the second email but two of them are. I just checked, would you like me to resend these two patches.

No need to resend, just point them out in a reply.

Thanks,

Ilya

#10 lore raw
In reply to a message not in the archive
Quoted 24 lines · nick
Quoted 21 lines · Ilya Dryomov
Quoted 10 lines · nick
Quoted 7 lines · Ilya Dryomov
Quoted 3 lines · nick

Ilya,
That's fine I do have a unrelated question through. I have over 90 patches lying around in terms of cleanups/ fixes and need help getting them merged. Should I just resend them or wait until the end of this merge window.

Are all of those ceph patches?

Quoted 7 lines
Quoted 4 lines

Thanks,

Ilya

Ilya,
Sorry for the second email but two of them are. I just checked, would you like me to resend these two patches.

No need to resend, just point them out in a reply.

Quoted 8 lines
Quoted 4 lines

Thanks,

Ilya

The two patches have these subject headers:
ceph:Remove the unused marco AES_KEY_SIZE
ceph:Make the function ceph_monmap_contains bool
If you can't find them I will resend them.

I can't - looks like ceph-devel wasn't CC'ed. Please resend.

Thanks,

Ilya