]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
commitf42eed7cba7f83197b0ffbb023e7d89a0b2fd71d
treeb5590faffe190cd1401945e13c66684bec2f5b48
parent1f42596ec0a7d3d50a494d95e3f1afbd117250f8
UBIFS: harmonize znode flag helpers

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