)]}'
{
  "commit": "4ef67a8c95f32ed0c8c6ed5fe01d1dd16358350e",
  "tree": "82e66c1da3bbe63345edb27d7e64e3245df729ee",
  "parents": [
    "2b75869bba676c248d8d25ae6d2bd9221dfffdb6"
  ],
  "author": {
    "name": "NeilBrown",
    "email": "neilb@suse.de",
    "time": "Tue Oct 14 16:57:26 2014 +1100"
  },
  "committer": {
    "name": "Greg Kroah-Hartman",
    "email": "gregkh@linuxfoundation.org",
    "time": "Fri Nov 07 10:54:38 2014 -0800"
  },
  "message": "sysfs/kernfs: make read requests on pre-alloc files use the buffer.\n\nTo match the previous patch which used the pre-alloc buffer for\nwrites, this patch causes reads to use the same buffer.\nThis is not strictly necessary as the current seq_read() will allocate\non first read, so user-space can trigger the required pre-alloc.  But\nconsistency is valuable.\n\nThe read function is somewhat simpler than seq_read() and, for example,\ndoes not support reading from an offset into the file: reads must be\nat the start of the file.\n\nAs seq_read() does not use the prealloc buffer, -\u003eseq_show is\nincompatible with -\u003eprealloc and caused an EINVAL return from open().\nsysfs code which calls into kernfs always chooses the correct function.\n\nAs the buffer is shared with writes and other reads, the mutex is\nextended to cover the copy_to_user.\n\nSigned-off-by: NeilBrown \u003cneilb@suse.de\u003e\nReviewed-by: Tejun Heo \u003ctj@kernel.org\u003e\nSigned-off-by: Greg Kroah-Hartman \u003cgregkh@linuxfoundation.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "70186e2e692a5b7134e00d34bb085a3bc8811df5",
      "old_mode": 33188,
      "old_path": "fs/kernfs/file.c",
      "new_id": "697390ea47b8fe20c301526bbeaddb505b7ab820",
      "new_mode": 33188,
      "new_path": "fs/kernfs/file.c"
    },
    {
      "type": "modify",
      "old_id": "4ad3721a991c112b210809ec21a9a86a4f4a9e0b",
      "old_mode": 33188,
      "old_path": "fs/sysfs/file.c",
      "new_id": "dfe928a9540f38701ad0bc1f28df5b0ffe31d39e",
      "new_mode": 33188,
      "new_path": "fs/sysfs/file.c"
    }
  ]
}
