UBIFS: use correct flags in lprops
The UBIFS lpt tree is in many aspects similar to the TNC tree, and we have similar flags for these trees. And by mistake we use the COW_ZNODE flag for LPT in some places, instead of the right flag COW_CNODE. And this works only because these two constants have the same value. This patch makes all the LPT code to use COW_CNODE and also changes COW_CNODE constant value to make sure we do not misuse the flags any more. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
This commit is contained in:

committed by
Artem Bityutskiy

parent
f42eed7cba
commit
3766244769
@@ -230,14 +230,14 @@ enum {
|
||||
* LPT cnode flag bits.
|
||||
*
|
||||
* DIRTY_CNODE: cnode is dirty
|
||||
* COW_CNODE: cnode is being committed and must be copied before writing
|
||||
* OBSOLETE_CNODE: cnode is being committed and has been copied (or deleted),
|
||||
* so it can (and must) be freed when the commit is finished
|
||||
* so it can (and must) be freed when the commit is finished
|
||||
* COW_CNODE: cnode is being committed and must be copied before writing
|
||||
*/
|
||||
enum {
|
||||
DIRTY_CNODE = 0,
|
||||
COW_CNODE = 1,
|
||||
OBSOLETE_CNODE = 2,
|
||||
OBSOLETE_CNODE = 1,
|
||||
COW_CNODE = 2,
|
||||
};
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user