)]}'
{
  "commit": "4c9c08ec05c66766fbbc1e352d1dc62933fbc85c",
  "tree": "3192265aa4b4ea16783acd8b55b4eb5e3a8924cc",
  "parents": [
    "790f4d8444fa4bed79d2b441212eec2167414c65"
  ],
  "author": {
    "name": "Chao Yu",
    "email": "chao@kernel.org",
    "time": "Wed Sep 11 11:53:33 2024 +0800"
  },
  "committer": {
    "name": "Zorro Lang",
    "email": "zlang@kernel.org",
    "time": "Tue Oct 08 11:20:59 2024 +0800"
  },
  "message": "src/min_dio_alignment: don\u0027t return invalid dio_offset_align\n\nIf returned parameters of statx() are: a)STATX_DIOALIGN is set in\nstx_mask, b)stx.stx_dio_offset_align is zero, it indicates filesystem\nsupports DIO, but the file doesn\u0027t.\n\nIt needs to avoid returning zeroed stx.stx_dio_offset_align value,\ninstead, we can fallthrough to get alignment size of block device or\npage size, otherwise, it may cause potential deadloop, e.g.\ngeneric/465:\n\nalign\u003dstx_dio_offset_align(it equals to zero)\npage_size\u003d4096\nwhile [ $align -le $page_size ]; do\n    echo \"$AIO_TEST -a $align -d $testfile.$align\" \u003e\u003e $seqres.full\n    $AIO_TEST -a $align -d $testfile.$align 2\u003e\u00261 | tee -a $seqres.full\n    align\u003d$((align * 2))\ndone\n\nCc: Christoph Hellwig \u003chch@lst.de\u003e\nCc: Eric Biggers \u003cebiggers@kernel.org\u003e\nSigned-off-by: Chao Yu \u003cchao@kernel.org\u003e\nReviewed-by: Christoph Hellwig \u003chch@lst.de\u003e\nSigned-off-by: Zorro Lang \u003czlang@kernel.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "5a7c7d9f241b7ed413fc4ad8aee1133d00d5471e",
      "old_mode": 33188,
      "old_path": "src/min_dio_alignment.c",
      "new_id": "866fba1546c4a2b31edfc7a6bfe5550088c56955",
      "new_mode": 33188,
      "new_path": "src/min_dio_alignment.c"
    }
  ]
}
