UBIFS: harmonize znode flag helpers
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 30 May 2011 11:45:30 +0000 (14:45 +0300)
committerArtem Bityutskiy <dedekind1@gmail.com>
Mon, 4 Jul 2011 07:54:27 +0000 (10:54 +0300)
We have 3 znode flags: cow, obsolete, dirty. For the last flag we have a
'ubifs_zn_dirty()' helper function, but for the other 2 flags we use
'test_bit()' directly.

This patch makes the situation more consistent and introduces helpers for the
other 2 flags: 'ubifs_zn_cow()' and 'ubifs_zn_obsolete()'.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
fs/ubifs/commit.c
fs/ubifs/misc.h
fs/ubifs/tnc.c
fs/ubifs/tnc_commit.c

Simple merge
diff --cc fs/ubifs/misc.h
Simple merge
diff --cc fs/ubifs/tnc.c
Simple merge
Simple merge