jdb/jbd2: factor out common functions from the jbd[2] header files

The state bits and the lock functions of jbd and jbd2 are
identical.  Share them.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
This commit is contained in:
Thomas Gleixner 2011-10-27 04:38:18 -04:00 • committed by Theodore Ts'o
commit 446066724c
3 changed files with 70 additions and 127 deletions