The patch titled Subject: include/linux/radix-tree.h: use DIV_ROUND_UP instead of reimplementing its function has been added to the -mm tree. Its filename is radix-tree-use-div_round_up-instead-of-reimplementing-its-function.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/radix-tree-use-div_round_up-instead-of-reimplementing-its-function.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/radix-tree-use-div_round_up-instead-of-reimplementing-its-function.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: zhong jiang <zhongjiang@xxxxxxxxxx> Subject: include/linux/radix-tree.h: use DIV_ROUND_UP instead of reimplementing its function Link: http://lkml.kernel.org/r/1536564900-5944-1-git-send-email-zhongjiang@xxxxxxxxxx Signed-off-by: zhong jiang <zhongjiang@xxxxxxxxxx> Reviewed-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Cc: Matthew Wilcox <willy@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/radix-tree.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/include/linux/radix-tree.h~radix-tree-use-div_round_up-instead-of-reimplementing-its-function +++ a/include/linux/radix-tree.h @@ -75,7 +75,7 @@ static inline bool radix_tree_is_interna #define RADIX_TREE_MAP_MASK (RADIX_TREE_MAP_SIZE-1) #define RADIX_TREE_TAG_LONGS \ - ((RADIX_TREE_MAP_SIZE + BITS_PER_LONG - 1) / BITS_PER_LONG) + DIV_ROUND_UP(RADIX_TREE_MAP_SIZE, BITS_PER_LONG) #define RADIX_TREE_INDEX_BITS (8 /* CHAR_BIT */ * sizeof(unsigned long)) #define RADIX_TREE_MAX_PATH (DIV_ROUND_UP(RADIX_TREE_INDEX_BITS, \ _ Patches currently in -mm which might be from zhongjiang@xxxxxxxxxx are mm-page_owner-align-with-pageblock_nr-pages.patch radix-tree-use-div_round_up-instead-of-reimplementing-its-function.patch