From: Nikolay Borisov Date: Tue, 27 Jun 2017 07:02:25 +0000 (+0300) Subject: btrfs: Use explicit round_down call rather than open-coding it X-Git-Tag: v4.14-rc1~80^2~102 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=e5600fd6fc7d1924ff77681128a364e1dad4435b;p=linux.git btrfs: Use explicit round_down call rather than open-coding it No functional changes. Signed-off-by: Nikolay Borisov Reviewed-by: David Sterba Signed-off-by: David Sterba --- diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index c665af0727e6..b011753ce8bb 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -4762,7 +4762,7 @@ static int __btrfs_alloc_chunk(struct btrfs_trans_handle *trans, btrfs_cmp_device_info, NULL); /* round down to number of usable stripes */ - ndevs -= ndevs % devs_increment; + ndevs = round_down(ndevs, devs_increment); if (ndevs < devs_increment * sub_stripes || ndevs < devs_min) { ret = -ENOSPC;