sapling/eden
Adam Simpkins b324323ad4 make inode unloading methods non-const
Summary:
Update InodeMap::onInodeUnreferenced() to take a pointer to a non-const
InodeBase.  This allows the methods it calls, including
InodeBase::updateOverlayHeader() to be non-const.

Using non-const InodeBase objects seems to make sense here since the inode is
in the process of being destroyed.

In a future diff I plan to update FileInode::updateOverlayHeader() to share the
same code as normal file methods to ensure that the overlay file is open.  This
modifies the FileInode state's open refcount, so it is useful to have this
method be non-const for that purpose.

Reviewed By: chadaustin

Differential Revision: D7407424

fbshipit-source-id: 541656c7b9b283c5e5650445de5bbdbaae3fc57f
2018-03-27 11:23:42 -07:00
..
cli Fixed a race condition between initialization of RequestContext and its lookup. 2018-03-26 14:48:23 -07:00
docs add an overview doc for our threading strategy 2017-12-12 12:51:23 -08:00
fs make inode unloading methods non-const 2018-03-27 11:23:42 -07:00
hooks Remove TARGETS files 2018-02-20 19:57:45 -08:00
integration send FUSE invalidation requests in a separate thread 2018-03-27 11:23:42 -07:00
py Remove TARGETS files 2018-02-20 19:57:45 -08:00
scripts unmount stale edenfs mounts in eden doctor 2018-01-19 11:06:51 -08:00
third-party Remove TARGETS files 2018-02-20 19:57:45 -08:00
AUTODEPS Set up arc lint to run autodeps automatically for Eden. 2017-11-21 18:23:41 -08:00
DEFS have hg_import_helper.py use the local mercurial code during tests 2018-02-15 22:11:38 -08:00