From: Ilya Dryomov Date: Mon, 16 Jan 2012 20:04:47 +0000 (+0200) Subject: Btrfs: add BTRFS_AVAIL_ALLOC_BIT_SINGLE bit X-Git-Tag: v3.3-rc1~26^2~12^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a46d11a8b06dd0431a3888fbc4856ea13a8e634f;p=pandora-kernel.git Btrfs: add BTRFS_AVAIL_ALLOC_BIT_SINGLE bit Right now on-disk BTRFS_BLOCK_GROUP_* profile bits are used for avail_{data,metadata,system}_alloc_bits fields, which gather info about available allocation profiles in the FS. When chunk is created or read from disk, its profile is OR'ed with the corresponding avail_alloc_bits field. Since SINGLE is denoted by 0 in the on-disk format, currently there is no way to tell when such chunks become avaialble. Restriper needs that information, so add a separate bit for SINGLE profile. This bit is going to be in-memory only, it should never be written out to disk, so it's not a disk format change. However to avoid remappings in future, reserve corresponding on-disk bit. Signed-off-by: Ilya Dryomov --- Reading git-diff-tree failed