Whamcloud - gitweb
LU-9859 libcfs: remove cfs_size_round() 09/51009/4
authorJames Simmons <jsimmons@infradead.org>
Tue, 16 May 2023 13:59:15 +0000 (09:59 -0400)
committerOleg Drokin <green@whamcloud.com>
Sat, 19 Aug 2023 05:37:02 +0000 (05:37 +0000)
Now that everyone is moved to round_up() we can safely remove the
macro cfs_size_round().

Test-Parameters: trivial
Change-Id: If8e1aff5e89007eeb38c5810c68282d51e37f019
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/51009
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Timothy Day <timday@amazon.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
libcfs/include/libcfs/libcfs_private.h

index 9b80be4..0cd7774 100644 (file)
@@ -259,12 +259,4 @@ int libcfs_debug_mark_buffer(const char *text);
 /* logical equivalence */
 #define equi(a, b) (!!(a) == !!(b))
 
-#ifndef HAVE_CFS_SIZE_ROUND
-static inline size_t cfs_size_round(size_t val)
-{
-       return round_up(val, 8);
-}
-#define HAVE_CFS_SIZE_ROUND
-#endif
-
 #endif