)]}'
{
  "commit": "d707d31c972b657dfc2efefd0b99cc4e14223dab",
  "tree": "9a6e5a1b3295ead8932022e715baaee955c57d16",
  "parents": [
    "60836eb63b941f407dc2a609f3f0f34fd74ef6c3"
  ],
  "author": {
    "name": "Mingming Cao",
    "email": "cmm@us.ibm.com",
    "time": "Wed Oct 15 22:04:01 2008 -0700"
  },
  "committer": {
    "name": "Linus Torvalds",
    "email": "torvalds@linux-foundation.org",
    "time": "Thu Oct 16 11:21:45 2008 -0700"
  },
  "message": "ext2: fix ext2 block reservation early ENOSPC issue\n\nWe could run into ENOSPC error on ext2, even when there is free blocks on\nthe filesystem.\n\nThe problem is triggered in the case the goal block group has 0 free\nblocks , and the rest block groups are skipped due to the check of\n\"free_blocks \u003c windowsz/2\".  Current code could fall back to non\nreservation allocation to prevent early ENOSPC after examing all the block\ngroups with reservation on , but this code was bypassed if the reservation\nwindow is turned off already, which is true in this case.\n\nThis patch fixed two issues:\n1) We don\u0027t need to turn off block reservation if the goal block group has\n0 free blocks left and continue search for the rest of block groups.\n\nCurrent code the intention is to turn off the block reservation if the\ngoal allocation group has a few (some) free blocks left (not enough for\nmake the desired reservation window),to try to allocation in the goal\nblock group, to get better locality.  But if the goal blocks have 0 free\nblocks, it should leave the block reservation on, and continues search for\nthe next block groups,rather than turn off block reservation completely.\n\n2) we don\u0027t need to check the window size if the block reservation is off.\n\nThe problem was originally found and fixed in ext4.\n\nSigned-off-by: Mingming Cao \u003ccmm@us.ibm.com\u003e\nCc: Theodore Ts\u0027o \u003ctytso@mit.edu\u003e\nSigned-off-by: Andrew Morton \u003cakpm@linux-foundation.org\u003e\nSigned-off-by: Linus Torvalds \u003ctorvalds@linux-foundation.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "10bb02c3f25cfcdee98897b6d7efe96e5f3ae6a1",
      "old_mode": 33188,
      "old_path": "fs/ext2/balloc.c",
      "new_id": "6dac7ba2d22d7ff41855b7866f757417612c09ea",
      "new_mode": 33188,
      "new_path": "fs/ext2/balloc.c"
    }
  ]
}
