Actions
Cleanup #468
closedmds: use enum for LOCK_* in mds/locks.h
% Done:
0%
Tags:
Backport:
Reviewed:
Affected Versions:
Component(FS):
Labels (FS):
Pull request ID:
Description
We just fixed a bug that (I think?) the compiler would have warned about.. in->get_state() LOCK_MIX instead of lock->get_state() LOCK_MIX.
Although keep in mind the SimpleLock state member has a specific number of bits so that it encodes properly (and aligns efficiently?). Maybe get_state() should cast the return value to a lock_state_t or something?
Actions