X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=folly%2Fexperimental%2Fio%2FHugePages.h;h=07fd8de6e99a72dc14bbf45af9291260a9d0190a;hb=cd1bdc912603c0358ba733d379a74ae90ab3a437;hp=cd0e617e794dcf9e3502ed080717fd8bbc595c78;hpb=275ca94d04e44f28cfa411668eb1c1dd8db90b80;p=folly.git diff --git a/folly/experimental/io/HugePages.h b/folly/experimental/io/HugePages.h index cd0e617e..07fd8de6 100644 --- a/folly/experimental/io/HugePages.h +++ b/folly/experimental/io/HugePages.h @@ -1,5 +1,5 @@ /* - * Copyright 2015 Facebook, Inc. + * Copyright 2012-present Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,14 +14,12 @@ * limitations under the License. */ -#ifndef FOLLY_IO_HUGEPAGES_H_ -#define FOLLY_IO_HUGEPAGES_H_ +#pragma once #include #include #include #include -#include #include #include @@ -29,11 +27,12 @@ #include #include +#include namespace folly { struct HugePageSize : private boost::totally_ordered { - explicit HugePageSize(size_t s) : size(s) { } + explicit HugePageSize(size_t s) : size(s) {} fs::path filePath(const fs::path& relpath) const { return mountPoint / relpath; @@ -78,6 +77,4 @@ const HugePageSize* getHugePageSize(size_t size = 0); */ const HugePageSize* getHugePageSizeForDevice(dev_t device); -} // namespace folly - -#endif /* FOLLY_IO_HUGEPAGES_H_ */ +} // namespace folly