Btrfs: Simplify num_stripes's calculation logical for __btrfs_alloc_chunk()
authorZhao Lei <zhaolei@cn.fujitsu.com>
Thu, 25 Mar 2010 12:32:59 +0000 (12:32 +0000)
committerChris Mason <chris.mason@oracle.com>
Wed, 31 Mar 2010 01:19:09 +0000 (21:19 -0400)
commitf3eae7e8a5ed124bbc781e18ea10c21856017322
tree5e275277720e220ac3c9c2e3dcc404c39a76bbe8
parentab59381ea43f81c977cbd09add26950aaf6cb9fe
Btrfs: Simplify num_stripes's calculation logical for __btrfs_alloc_chunk()

We can use this simple method to make source more readable.

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/volumes.c