summaryrefslogtreecommitdiffstats
path: root/xlators/performance/io-cache/src/page.c
diff options
context:
space:
mode:
authorRaghavendra Gowdappa <rgowdapp@redhat.com>2018-11-16 16:27:17 +0530
committerRaghavendra G <rgowdapp@redhat.com>2018-11-28 15:11:59 +0000
commit18b6d7ce7d490e807815270918a17a4b392a829d (patch)
tree7ca2d0da54400db14fefc36663f360a06c4c2fc8 /xlators/performance/io-cache/src/page.c
parent9f9f46ff2d30ff87a6a4f8c2af491ea1aa92fbb2 (diff)
libglusterfs: rename macros roof and floor to not conflict with math.h
Change-Id: I666eeb63ebd000711b3f793b948d4e0c04b1a242 Signed-off-by: Raghavendra Gowdappa <rgowdapp@redhat.com> Updates: bz#1644629
Diffstat (limited to 'xlators/performance/io-cache/src/page.c')
-rw-r--r--xlators/performance/io-cache/src/page.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/performance/io-cache/src/page.c b/xlators/performance/io-cache/src/page.c
index c376ade0fba..d2cbe2499a4 100644
--- a/xlators/performance/io-cache/src/page.c
+++ b/xlators/performance/io-cache/src/page.c
@@ -42,7 +42,7 @@ __ioc_page_get(ioc_inode_t *ioc_inode, off_t offset)
table = ioc_inode->table;
GF_VALIDATE_OR_GOTO("io-cache", ioc_inode, out);
- rounded_offset = floor(offset, table->page_size);
+ rounded_offset = gf_floor(offset, table->page_size);
page = rbthash_get(ioc_inode->cache.page_table, &rounded_offset,
sizeof(rounded_offset));
@@ -253,7 +253,7 @@ __ioc_page_create(ioc_inode_t *ioc_inode, off_t offset)
table = ioc_inode->table;
GF_VALIDATE_OR_GOTO("io-cache", table, out);
- rounded_offset = floor(offset, table->page_size);
+ rounded_offset = gf_floor(offset, table->page_size);
newpage = GF_CALLOC(1, sizeof(*newpage), gf_ioc_mt_ioc_newpage_t);
if (newpage == NULL) {