)]}'
{
  "commit": "61609d01cbb3ab865c8cccaf85e6837c47096480",
  "tree": "144e176568328a6fcd9c01853c3f88fd6bc1a08e",
  "parents": [
    "347486bb108fa6e0fd2753c1be3519d6be2516ed"
  ],
  "author": {
    "name": "Yuri Tikhonov",
    "email": "yur@emcraft.com",
    "time": "Mon Apr 13 14:40:11 2009 -0700"
  },
  "committer": {
    "name": "Linus Torvalds",
    "email": "torvalds@linux-foundation.org",
    "time": "Mon Apr 13 15:04:32 2009 -0700"
  },
  "message": "shmem: fix division by zero\n\nFix a division by zero which we have in shmem_truncate_range() and\nshmem_unuse_inode() when using big PAGE_SIZE values (e.g.  256kB on\nppc44x).\n\nWith 256kB PAGE_SIZE, the ENTRIES_PER_PAGEPAGE constant becomes too large\n(0x1.0000.0000) on a 32-bit kernel, so this patch just changes its type\nfrom \u0027unsigned long\u0027 to \u0027unsigned long long\u0027.\n\nHugh: reverted its unsigned long longs in shmem_truncate_range() and\nshmem_getpage(): the pagecache index cannot be more than an unsigned long,\nso the divisions by zero occurred in unreached code.  It\u0027s a pity we need\nany ULL arithmetic here, but I found no pretty way to avoid it.\n\nSigned-off-by: Yuri Tikhonov \u003cyur@emcraft.com\u003e\nSigned-off-by: Hugh Dickins \u003chugh@veritas.com\u003e\nCc: Paul Mackerras \u003cpaulus@samba.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": "d94d2e9146bc4dfa5d946449274be75419f0b8da",
      "old_mode": 33188,
      "old_path": "mm/shmem.c",
      "new_id": "28024ce8b8fdd6c298de4f672321b1e32fca4653",
      "new_mode": 33188,
      "new_path": "mm/shmem.c"
    }
  ]
}
