]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: allow metadata blocks larger than the page size
authorChris Mason <chris.mason@oracle.com>
Fri, 6 Aug 2010 17:21:20 +0000 (13:21 -0400)
committerChris Mason <chris.mason@oracle.com>
Mon, 26 Mar 2012 20:50:37 +0000 (16:50 -0400)
commitf8abc7420159d4b0f1586f5bc52e30cbac4972a6
tree05405dc1e9c86d67dbb02ddf063bd0c137ce6707
parent93fe9bdcd9eed849a5af0c021ef67c2db8145984
Btrfs: allow metadata blocks larger than the page size

A few years ago the btrfs code to support blocks lager than
the page size was disabled to fix a few corner cases in the
page cache handling.  This fixes the code to properly support
large metadata blocks again.

Since current kernels will crash early and often with larger
metadata blocks, this adds an incompat bit so that older kernels
can't mount it.

This also does away with different blocksizes for nodes and leaves.
You get a single block size for all tree blocks.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ctree.h
fs/btrfs/disk-io.c
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h
fs/btrfs/inode-item.c
fs/btrfs/volumes.c