mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
9034f43c75
Summary: Avoid the cost of dynamically querying whether we are in a FUSE request handler or not by passing a flag. Reviewed By: genevievehelsel Differential Revision: D22710397 fbshipit-source-id: 7c62f45dfc227416c91070842a349b9d0c626cba
27 lines
534 B
C++
27 lines
534 B
C++
/*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This software may be used and distributed according to the terms of the
|
|
* GNU General Public License version 2.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
namespace facebook {
|
|
namespace eden {
|
|
|
|
/**
|
|
* If a return value, whether the caller is responsible for invalidating the
|
|
* kernel's cache.
|
|
*
|
|
* If an argument, whether the callee is responsible for invalidating the
|
|
* kernel's cache.
|
|
*/
|
|
enum class InvalidationRequired : bool {
|
|
No,
|
|
Yes,
|
|
};
|
|
|
|
} // namespace eden
|
|
} // namespace facebook
|