)]}'
{
  "commit": "dfe86cba7676d58db8de7e623f5e72f1b0d3ca35",
  "tree": "ed7e6a267c50e0ba2374dc6895515d7a100961a3",
  "parents": [
    "81d73a32d775ae9674ea6edf0b5b721fc3bc57d9"
  ],
  "author": {
    "name": "Adrian Hunter",
    "email": "adrian.hunter@nokia.com",
    "time": "Wed Aug 11 14:17:46 2010 -0700"
  },
  "committer": {
    "name": "Linus Torvalds",
    "email": "torvalds@linux-foundation.org",
    "time": "Thu Aug 12 08:43:30 2010 -0700"
  },
  "message": "mmc: add erase, secure erase, trim and secure trim operations\n\nSD/MMC cards tend to support an erase operation.  In addition, eMMC v4.4\ncards can support secure erase, trim and secure trim operations that are\nall variants of the basic erase command.\n\nSD/MMC device attributes \"erase_size\" and \"preferred_erase_size\" have been\nadded.\n\n\"erase_size\" is the minimum size, in bytes, of an erase operation.  For\nMMC, \"erase_size\" is the erase group size reported by the card.  Note that\n\"erase_size\" does not apply to trim or secure trim operations where the\nminimum size is always one 512 byte sector.  For SD, \"erase_size\" is 512\nif the card is block-addressed, 0 otherwise.\n\nSD/MMC cards can erase an arbitrarily large area up to and\nincluding the whole card.  When erasing a large area it may\nbe desirable to do it in smaller chunks for three reasons:\n\n    1. A single erase command will make all other I/O on the card\n       wait.  This is not a problem if the whole card is being erased, but\n       erasing one partition will make I/O for another partition on the\n       same card wait for the duration of the erase - which could be a\n       several minutes.\n\n    2. To be able to inform the user of erase progress.\n\n    3. The erase timeout becomes too large to be very useful.\n       Because the erase timeout contains a margin which is multiplied by\n       the size of the erase area, the value can end up being several\n       minutes for large areas.\n\n\"erase_size\" is not the most efficient unit to erase (especially for SD\nwhere it is just one sector), hence \"preferred_erase_size\" provides a good\nchunk size for erasing large areas.\n\nFor MMC, \"preferred_erase_size\" is the high-capacity erase size if a card\nspecifies one, otherwise it is based on the capacity of the card.\n\nFor SD, \"preferred_erase_size\" is the allocation unit size specified by\nthe card.\n\n\"preferred_erase_size\" is in bytes.\n\nSigned-off-by: Adrian Hunter \u003cadrian.hunter@nokia.com\u003e\nAcked-by: Jens Axboe \u003caxboe@kernel.dk\u003e\nCc: Kyungmin Park \u003ckmpark@infradead.org\u003e\nCc: Madhusudhan Chikkature \u003cmadhu.cr@ti.com\u003e\nCc: Christoph Hellwig \u003chch@lst.de\u003e\nCc: Ben Gardiner \u003cbengardiner@nanometrics.ca\u003e\nCc: \u003clinux-mmc@vger.kernel.org\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": "9e642c5bf5267907e1ad032db26b989ff94c8edf",
      "old_mode": 33188,
      "old_path": "Documentation/00-INDEX",
      "new_id": "8dfc6708a257219d5a39ef1fd1021064cb29d553",
      "new_mode": 33188,
      "new_path": "Documentation/00-INDEX"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "fca586f5b8539cb8dac5c22bfbbe0fa5f4987bb4",
      "new_mode": 33188,
      "new_path": "Documentation/mmc/00-INDEX"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "ff2bd685bced95526ab79e66859cd2697b0f5d1f",
      "new_mode": 33188,
      "new_path": "Documentation/mmc/mmc-dev-attrs.txt"
    },
    {
      "type": "modify",
      "old_id": "83240faa1dc86973a063b39c97a9961ce0cfafa8",
      "old_mode": 33188,
      "old_path": "drivers/mmc/core/core.c",
      "new_id": "5db49b124ffa158793e0cfb3d1db72321679d440",
      "new_mode": 33188,
      "new_path": "drivers/mmc/core/core.c"
    },
    {
      "type": "modify",
      "old_id": "a811c52a165957219bc55e03f7fbe1faab43379f",
      "old_mode": 33188,
      "old_path": "drivers/mmc/core/core.h",
      "new_id": "9d9eef50e5d1976fb5d9874a00f4cf2db77c540a",
      "new_mode": 33188,
      "new_path": "drivers/mmc/core/core.h"
    },
    {
      "type": "modify",
      "old_id": "ccba3869c0293a92cb27cfcaa73d855b01156ba9",
      "old_mode": 33188,
      "old_path": "drivers/mmc/core/mmc.c",
      "new_id": "6909a54c39beac1a8ca277f317f43c4a4ea9d583",
      "new_mode": 33188,
      "new_path": "drivers/mmc/core/mmc.c"
    },
    {
      "type": "modify",
      "old_id": "e6d7d9fab4460c84c6527af77a19309c4c5c4d1c",
      "old_mode": 33188,
      "old_path": "drivers/mmc/core/sd.c",
      "new_id": "0f5241085557488dbfb674a60474fe7709719d44",
      "new_mode": 33188,
      "new_path": "drivers/mmc/core/sd.c"
    },
    {
      "type": "modify",
      "old_id": "63772e7e7608c5f2d1c8229b5978e1c55fd0b796",
      "old_mode": 33188,
      "old_path": "drivers/mmc/core/sd_ops.c",
      "new_id": "797cdb5887fd0a7cd0be254f23b4acc843f3ce4d",
      "new_mode": 33188,
      "new_path": "drivers/mmc/core/sd_ops.c"
    },
    {
      "type": "modify",
      "old_id": "9742d8a3066483bbadbcd6b79b9c24004d115035",
      "old_mode": 33188,
      "old_path": "drivers/mmc/core/sd_ops.h",
      "new_id": "ffc2305d905fcc2c121a0d32a171846d835ec41b",
      "new_mode": 33188,
      "new_path": "drivers/mmc/core/sd_ops.h"
    },
    {
      "type": "modify",
      "old_id": "4d893eaf8174f920f0b89008cc2009742a7102d3",
      "old_mode": 33188,
      "old_path": "include/linux/mmc/card.h",
      "new_id": "6b7525099e56a943f014c9fbfcc0c6bc45b62579",
      "new_mode": 33188,
      "new_path": "include/linux/mmc/card.h"
    },
    {
      "type": "modify",
      "old_id": "e4898e9eeb5971753b0447b4399177748460eade",
      "old_mode": 33188,
      "old_path": "include/linux/mmc/core.h",
      "new_id": "7429033acb663dc4974a5ecdf44b696da416976d",
      "new_mode": 33188,
      "new_path": "include/linux/mmc/core.h"
    },
    {
      "type": "modify",
      "old_id": "513ff0376b095eddf23da6ce905d9d10233804ac",
      "old_mode": 33188,
      "old_path": "include/linux/mmc/host.h",
      "new_id": "1575b52c3bfafa663d0fcfbea24c91269dfa83cb",
      "new_mode": 33188,
      "new_path": "include/linux/mmc/host.h"
    },
    {
      "type": "modify",
      "old_id": "52ce98866287c84ef08b959c7d9d5bff71680bed",
      "old_mode": 33188,
      "old_path": "include/linux/mmc/mmc.h",
      "new_id": "dd11ae51fb68e8b847300a5fe78ac049c9ef8605",
      "new_mode": 33188,
      "new_path": "include/linux/mmc/mmc.h"
    },
    {
      "type": "modify",
      "old_id": "f310062cffb41d6400bf7dbf4da0c84d3d17d4dc",
      "old_mode": 33188,
      "old_path": "include/linux/mmc/sd.h",
      "new_id": "3fd85e088cc3fd7547f3f7a6b31b8df1a2e86a3c",
      "new_mode": 33188,
      "new_path": "include/linux/mmc/sd.h"
    }
  ]
}
