]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
jbd/jbd2: relocate bit_spinlock header to jbd_common
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 13 Jun 2013 03:02:35 +0000 (23:02 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 13 Jun 2013 03:02:35 +0000 (23:02 -0400)
The bit_spinlock functions are only used for the jbd_lock_bh_state
functions (and friends) in jbd_common.h and are not directly used
by either of jbd.h or jbd2.h content.

The jbd_common file is new as of commit 446066724c36 ("jdb/jbd2: factor
out common functions from the jbd[2] header files") but common
(and isolated) headers were not considered for factoring at that time.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
include/linux/jbd.h
include/linux/jbd2.h
include/linux/jbd_common.h

index 2439054a6c9a0771a3adebac586df64929b8e913..8685d1be12c71a2d28d8be80b3bbe9ae507e1ee4 100644 (file)
@@ -27,7 +27,6 @@
 #include <linux/buffer_head.h>
 #include <linux/journal-head.h>
 #include <linux/stddef.h>
-#include <linux/bit_spinlock.h>
 #include <linux/mutex.h>
 #include <linux/timer.h>
 #include <linux/lockdep.h>
index a79783faecadb3eff65cd2e8b96ec37b74c0eb28..25d9c9ea7a1463a6ab3e2349c60e857064b7b15b 100644 (file)
@@ -26,7 +26,6 @@
 #include <linux/buffer_head.h>
 #include <linux/journal-head.h>
 #include <linux/stddef.h>
-#include <linux/bit_spinlock.h>
 #include <linux/mutex.h>
 #include <linux/timer.h>
 #include <linux/slab.h>
index b1f708976ffd58ac3e780d30974c76fc60dcd3be..3dc53432355f5edce8a2793a0f639e8f58480c3e 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef _LINUX_JBD_STATE_H
 #define _LINUX_JBD_STATE_H
 
+#include <linux/bit_spinlock.h>
+
 static inline struct buffer_head *jh2bh(struct journal_head *jh)
 {
        return jh->b_bh;