From: David Sterba Date: Wed, 4 Jun 2014 23:59:57 +0000 (+0200) Subject: btrfs: use DIV_ROUND_UP instead of open-coded variants X-Git-Tag: fixes-against-v3.18-rc2~120^2~112 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed6078f70335f158ca79790a0d0708ce558a6e9a;p=pandora-kernel.git btrfs: use DIV_ROUND_UP instead of open-coded variants The form (value + PAGE_CACHE_SIZE - 1) >> PAGE_CACHE_SHIFT is equivalent to (value + PAGE_CACHE_SIZE - 1) / PAGE_CACHE_SIZE The rest is a simple subsitution, no difference in the generated assembly code. Signed-off-by: David Sterba Signed-off-by: Chris Mason --- Reading git-diff-tree failed