]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: use named constant for bdev blocksize
authorDavid Sterba <dsterba@suse.com>
Thu, 15 Jun 2017 23:48:05 +0000 (01:48 +0200)
committerDavid Sterba <dsterba@suse.com>
Wed, 16 Aug 2017 14:12:04 +0000 (16:12 +0200)
commit49daeef43f4b8bbdeb3316385329551cda8ec0e2
treeae3c17550189c0f83634bd65d2586030a5c90d2d
parent724f7c80d54b1c0c4357f79dd8af68e33c5b00d6
btrfs: use named constant for bdev blocksize

Superblock is read and written using buffer heads, we need to set the
bdev blocksize. The magic constant has been hardcoded in several places,
so replace it with a named constant.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/check-integrity.c
fs/btrfs/disk-io.c
fs/btrfs/disk-io.h
fs/btrfs/volumes.c