From 439fb28854156a499293f496c832f40e727fbdd5 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Mon, 14 Sep 2020 18:43:06 -0700 Subject: [PATCH] ircd::fs: Relax assertion on buffer length at alignment. --- ircd/fs.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ircd/fs.cc b/ircd/fs.cc index 5abf58e1d..3f6fe0c60 100644 --- a/ircd/fs.cc +++ b/ircd/fs.cc @@ -1807,7 +1807,7 @@ ircd::fs::advise(const map &map, map + offset, len }; - assert(aligned(buf, info::page_size)); + assert(aligned(data(buf), info::page_size)); switch(const auto res(::madvise(data(buf), size(buf), advice)); res) { case 0: