sapling/eden/fs/fuse/Invalidation.h
Chad Austin 9034f43c75 make unlink and rmdir explicit about kernel cache invalidation
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
2020-07-28 14:47:40 -07:00

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