)]}'
{
  "commit": "a9cc799eca0c798ab5dd8648564fc2025bdd9bd2",
  "tree": "8776d8ba707dd7e87fd282335ef3ed66ba9973b4",
  "parents": [
    "398007f863a4af2b4a5a07219c5a617f1a098115"
  ],
  "author": {
    "name": "Eric Sandeen",
    "email": "sandeen@sandeen.net",
    "time": "Wed Feb 03 17:50:13 2010 +0000"
  },
  "committer": {
    "name": "Alex Elder",
    "email": "aelder@sgi.com",
    "time": "Mon Mar 01 16:33:41 2010 -0600"
  },
  "message": "xfs: increase readdir buffer size\n\nWhile doing some testing of readdir perf a while back,\nI noticed that the buffer size we\u0027re using internally is\nsmaller than what glibc gives us by default.  Upping this\nsize helped a bit, and seems safe.\n\nglibc\u0027s __alloc_dir() does:\n\n  const size_t default_allocation \u003d (4 * BUFSIZ \u003c sizeof (struct dirent64)\n                                     ? sizeof (struct dirent64) : 4 * BUFSIZ);\n  const size_t small_allocation \u003d (BUFSIZ \u003c sizeof (struct dirent64)\n                                   ? sizeof (struct dirent64) : BUFSIZ);\n  size_t allocation \u003d default_allocation;\n#ifdef _STATBUF_ST_BLKSIZE\n  if (statp !\u003d NULL \u0026\u0026 default_allocation \u003c statp-\u003est_blksize)\n    allocation \u003d statp-\u003est_blksize;\n#endif\n\nand\n\n#define _G_BUFSIZ 8192\n#define _IO_BUFSIZ _G_BUFSIZ\n# define BUFSIZ _IO_BUFSIZ\n\nso the default buffer is 4 * 8192 \u003d 32768\n(except in the unlikely case of blocks \u003e 32k....)\n\nSigned-off-by: Eric Sandeen \u003csandeen@sandeen.net\u003e\nReviewed-by: Christoph Hellwig \u003chch@lst.de\u003e\nSigned-off-by: Alex Elder \u003caelder@sgi.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "e4caeb28ce2edab5b77f7149adc288b0f51d23b6",
      "old_mode": 33188,
      "old_path": "fs/xfs/linux-2.6/xfs_file.c",
      "new_id": "3805ada9874706b4a9f134def7a21bc70c124da7",
      "new_mode": 33188,
      "new_path": "fs/xfs/linux-2.6/xfs_file.c"
    }
  ]
}
