)]}'
{
  "commit": "a077a6cdb3454a6f3eea7ea178d8280ff0f04ef2",
  "tree": "3923cd1f7417ed340f5ce86a18811eff69f90821",
  "parents": [
    "2fed4a94bc850d66a755fb1a4d1439266d566b6d"
  ],
  "author": {
    "name": "Damien Le Moal",
    "email": "dlemoal@kernel.org",
    "time": "Thu May 30 14:40:32 2024 +0900"
  },
  "committer": {
    "name": "Greg Kroah-Hartman",
    "email": "gregkh@linuxfoundation.org",
    "time": "Thu Jul 11 12:47:18 2024 +0200"
  },
  "message": "null_blk: Do not allow runt zone with zone capacity smaller then zone size\n\n[ Upstream commit b164316808ec5de391c3e7b0148ec937d32d280d ]\n\nA zoned device with a smaller last zone together with a zone capacity\nsmaller than the zone size does make any sense as that does not\ncorrespond to any possible setup for a real device:\n1) For ZNS and zoned UFS devices, all zones are always the same size.\n2) For SMR HDDs, all zones always have the same capacity.\nIn other words, if we have a smaller last runt zone, then this zone\ncapacity should always be equal to the zone size.\n\nAdd a check in null_init_zoned_dev() to prevent a configuration to have\nboth a smaller zone size and a zone capacity smaller than the zone size.\n\nSigned-off-by: Damien Le Moal \u003cdlemoal@kernel.org\u003e\nReviewed-by: Niklas Cassel \u003ccassel@kernel.org\u003e\nReviewed-by: Bart Van Assche \u003cbvanassche@acm.org\u003e\nLink: https://lore.kernel.org/r/20240530054035.491497-2-dlemoal@kernel.org\nSigned-off-by: Jens Axboe \u003caxboe@kernel.dk\u003e\nSigned-off-by: Sasha Levin \u003csashal@kernel.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "b0264b3df6f3d92d48e6adddf808383ccc7c0f15",
      "old_mode": 33188,
      "old_path": "drivers/block/null_blk/zoned.c",
      "new_id": "206c2a7a5100e335680bb83d43e1743b36db29d8",
      "new_mode": 33188,
      "new_path": "drivers/block/null_blk/zoned.c"
    }
  ]
}
