btrfs: properly register fs backing device
authorJens Axboe <jens.axboe@oracle.com>
Fri, 12 Jun 2009 12:43:40 +0000 (14:43 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 16 Jun 2009 06:21:03 +0000 (08:21 +0200)
commitad081f1430515d0b727eba99ec435a526c61a599
tree0d76c5feb597d6b8d062699e48f695e17ce9223a
parent0989a025d2f4f9f51ea641bd26c563c53dc63f55
btrfs: properly register fs backing device

btrfs assigns this bdi to all inodes on that file system, so make
sure it's registered. This isn't really important now, but will be
when we put dirty inodes there. Even now, we miss the stats when the
bdi isn't visible.

Also fixes failure to check bdi_init() return value, and bad inherit of
->capabilities flags from the default bdi.

Acked-by: Chris Mason <chris.mason@oracle.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
fs/btrfs/disk-io.c