<div dir="ltr"><br><div class="gmail_extra">Hey Kent,<br><br><div class="gmail_quote">On Fri, Jan 4, 2013 at 6:50 PM, Kent Overstreet <span dir="ltr"><<a href="mailto:koverstreet@google.com" target="_blank">koverstreet@google.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">I've (finally!) got a bcache branch hacked up that ought to be suitable<br>


to go upstream, possibly in staging initially.<br>
<br>
It's currently closer to the dev branch than the stable branch, plus<br>
some additional minor changes to make it all more self contained. The<br>
code has seen a decent amount of testing and I think it's in good shape,<br>
but I'd like it if it could see a bit more testing before I see about<br>
pushing it upstream.<br>
<br>
If anyone wants to try it out, checkout the bcache-for-staging branch.<br>
It's against Linux 3.7.</blockquote><div><br></div><div>I pulled your 'bcache-for-staging' code into a 'dm-devel-cache-bcache' branch on my github:</div><div><a href="https://github.com/snitm/linux">https://github.com/snitm/linux</a><br>

</div><div><br></div><div>Purpose is to have a single kernel to compare dm-cache and bcache.  My branch is against 3.8-rc2.  While importing your code I needed the following change to get bcache to compile:</div><div><a href="https://github.com/snitm/linux/commit/400b1257e93975864fd6c4b827537a0234551253">https://github.com/snitm/linux/commit/400b1257e93975864fd6c4b827537a0234551253</a><br>

</div><div><br></div><div>It now builds without issue but I haven't tested the resulting bcache to know if I broke the sysfs interface due to s/cache/bcache/ on some local variables, I don't think I did but I'll defer to you.  (BTW those crafty sysfs macros you have were pretty opaque; not really seeing what they buy in the grand scheme.  And #include "sysfs.c" is different than any code I've seen in the kernel).</div>

</div></div></div>