]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: init dentry shared_gen with invalid value
authorPatrick Donnelly <pdonnell@ibm.com>
Wed, 19 Feb 2025 17:49:09 +0000 (12:49 -0500)
committerPatrick Donnelly <pdonnell@ibm.com>
Thu, 27 Feb 2025 18:41:56 +0000 (13:41 -0500)
commit4f8d1d38a38d44ec9984912effdb9d166128ccb1
tree2c9e8241e041b74a5f08c86350b40f092bb71f9f
parentbac86c20d0e92a9aec5dc758f2dade35b02777b1
client: init dentry shared_gen with invalid value

Directories and dentries are initialized with value 0 which makes detecting a
null  (or placeholder) dentry created via Client::get_or_create difficult.  We
already do checks to see if a dentry is invalid when the directory's shared_gen
changes so use an invalid value for these synthetic dentries until they can be
appropriately updated from Client::update_dentry_lease.

Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
src/client/Dentry.h