]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: make sure we don't overflow the free space cache crc page
authorChris Mason <chris.mason@oracle.com>
Fri, 3 Jun 2011 05:26:53 +0000 (01:26 -0400)
committerChris Mason <chris.mason@oracle.com>
Sat, 4 Jun 2011 12:03:43 +0000 (08:03 -0400)
commitdf0202b78b5cba8518b5c2bc2b0fc8acc201443f
tree9f73c5419e905066653660ec33f8d5efeaa3a148
parent32c1b341d6502f3fa614022ad516e884e76945ec
Btrfs: make sure we don't overflow the free space cache crc page

The free space cache uses only one page for crcs right now,
which means we can't have a cache file bigger than the
crcs we can fit in the first page.  This adds a check to
enforce that restriction.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/free-space-cache.c