)]}'
{
  "commit": "3f86a82aeb03e6100f7ab39f4702e033a5e38166",
  "tree": "6d598b5b55c78828f13aee9baffe7350ae18c274",
  "parents": [
    "4254bba17d92d53822a56ebc2a0c1eb7e2a71155"
  ],
  "author": {
    "name": "Kent Overstreet",
    "email": "koverstreet@google.com",
    "time": "Thu Sep 06 15:35:01 2012 -0700"
  },
  "committer": {
    "name": "Jens Axboe",
    "email": "axboe@kernel.dk",
    "time": "Sun Sep 09 10:35:39 2012 +0200"
  },
  "message": "block: Consolidate bio_alloc_bioset(), bio_kmalloc()\n\nPreviously, bio_kmalloc() and bio_alloc_bioset() behaved slightly\ndifferent because there was some almost-duplicated code - this fixes\nsome of that.\n\nThe important change is that previously bio_kmalloc() always set\nbi_io_vec \u003d bi_inline_vecs, even if nr_iovecs \u003d\u003d 0 - unlike\nbio_alloc_bioset(). This would cause bio_has_data() to return true; I\ndon\u0027t know if this resulted in any actual bugs but it was certainly\nwrong.\n\nbio_kmalloc() and bio_alloc_bioset() also have different arbitrary\nlimits on nr_iovecs - 1024 (UIO_MAXIOV) for bio_kmalloc(), 256\n(BIO_MAX_PAGES) for bio_alloc_bioset(). This patch doesn\u0027t fix that, but\nat least they\u0027re enforced closer together and hopefully they will be\nfixed in a later patch.\n\nThis\u0027ll also help with some future cleanups - there are a fair number of\nfunctions that allocate bios (e.g. bio_clone()), and now they don\u0027t have\nto be duplicated for bio_alloc(), bio_alloc_bioset(), and bio_kmalloc().\n\nSigned-off-by: Kent Overstreet \u003ckoverstreet@google.com\u003e\nCC: Jens Axboe \u003caxboe@kernel.dk\u003e\nv7: Re-add dropped comments, improv patch description\nSigned-off-by: Jens Axboe \u003caxboe@kernel.dk\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "736ef12f5191d871585e4734611b409d795c1cf6",
      "old_mode": 33188,
      "old_path": "fs/bio.c",
      "new_id": "191b9b86c2723da019bfd0f5ec26de26d9e00cb8",
      "new_mode": 33188,
      "new_path": "fs/bio.c"
    },
    {
      "type": "modify",
      "old_id": "04944c91fae7951f2cb9759d7e60f9518d1173c1",
      "old_mode": 33188,
      "old_path": "include/linux/bio.h",
      "new_id": "fbe35b17555572cb959a205144690f5d1d18e9d8",
      "new_mode": 33188,
      "new_path": "include/linux/bio.h"
    }
  ]
}
