1. 15 Nov, 2010 6 commits
    • Rusty Russell's avatar
      tdb2: fix coalesce race #2 · d2a4d6b4
      Rusty Russell authored
      When we find a free block, we need to mark it as used before we drop the
      free lock, even though we've removed it from the list.  Otherwise the
      coalescing code can find it.
      
      This means handing the information we need down to lock_and_alloc, which
      also means we know when we're grabbing a "growing" entry, and can relax
      the heuristics about finding a good-sized block in that case.
      d2a4d6b4
    • Rusty Russell's avatar
      tdb2: coalescing race fix #1 · b5479009
      Rusty Russell authored
      When coalescing, we check the adjacent entry then lock its free list: we
      need to *recheck* after locking, to make sure it's still in that free list.
      b5479009
    • Rusty Russell's avatar
      tdb2: minor optimization for set_header · 8afb9681
      Rusty Russell authored
      We actually only need the bottom 5 bits of the hash value, so don't waste
      8 bytes passing it.
      8afb9681
    • Rusty Russell's avatar
      tdb2: hoist adjust_size · 590eee6f
      Rusty Russell authored
      We're going to want it in get_free() in the next patch, so move it upwards.
      Trivial changes, too: add to size before min length check, and rename growing
      to want_extra.
      590eee6f
    • Rusty Russell's avatar
      tdb2: clean up makefile for tools · fdba839b
      Rusty Russell authored
      fdba839b
    • Rusty Russell's avatar
      tdb2: extra debugging checks · b371060f
      Rusty Russell authored
      b371060f
  2. 17 Nov, 2010 3 commits
  3. 15 Nov, 2010 6 commits
  4. 14 Nov, 2010 1 commit
  5. 15 Nov, 2010 1 commit
    • Rusty Russell's avatar
      ccanlint: fix idempotent handler · f1c96e9d
      Rusty Russell authored
      Test for inserting idempotent header was wrong way around, and we check
      all headers at once, rather than finishing after one.
      
      Also, turn - into _ rather than removing.
      f1c96e9d
  6. 14 Nov, 2010 1 commit
  7. 15 Nov, 2010 1 commit
  8. 14 Nov, 2010 1 commit
  9. 15 Nov, 2010 1 commit
  10. 11 Nov, 2010 1 commit
  11. 10 Nov, 2010 13 commits
  12. 09 Nov, 2010 5 commits
    • Rusty Russell's avatar
      compiler: shorten names of attributes, add UNUSED · 1c005e12
      Rusty Russell authored
      The long names were unwieldy in practice; at risk of clashing, replace
      with shorter versions.
      1c005e12
    • Rusty Russell's avatar
      nfs: add generates C files · 56dd9548
      Rusty Russell authored
      ccanlint won't run rpcgen, so we need the C source in the repo anyway.
      56dd9548
    • Rusty Russell's avatar
      nfs: ccanize a little more. · 05cdb20a
      Rusty Russell authored
      rename libnfs.h to nfs.h (CCAN expects "main" header to match module name).
      tools move into tools/, .x file move into rpc/
      Don't sed the rpcgen files, generate headers in rpc/
      Make tools use <ccan/nfs/nfs.h> as per normal ccan usage.
      05cdb20a
    • Rusty Russell's avatar
      nfs: initial import. · f91748e6
      Rusty Russell authored
      Another Ronnie module!
      f91748e6
    • Rusty Russell's avatar
      ccanlint: rework so checks have more structure. · 7a163ea2
      Rusty Russell authored
      Previously each check returned a void *, but in fact most of them fell into
      similar patterns.  So define 'struct score' and a helper to add files to it,
      and use that.
      
      Under these rules, you get 0/1 if you skip a test because a dependency failed
      which in theory means your score (as a percentage) could drop if you fix
      a test.
      7a163ea2