summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/async-thread.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-06-11 17:09:48 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:03 -0400
commitd05e5a4dad985acc938e62d9752c813647dedd9d (patch)
tree05d7f372b6b7a63df97b177d5b380a63d31af87a /fs/btrfs/async-thread.c
parent15ada040d7cd68d7853938a92b116292cc16a2f3 (diff)
downloadblackbird-op-linux-d05e5a4dad985acc938e62d9752c813647dedd9d.tar.gz
blackbird-op-linux-d05e5a4dad985acc938e62d9752c813647dedd9d.zip
Btrfs: Add backport for the kthread work on kernels older than 2.6.20
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/async-thread.c')
-rw-r--r--fs/btrfs/async-thread.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/fs/btrfs/async-thread.c b/fs/btrfs/async-thread.c
index 2911b67bd6f7..8b9e2cf50606 100644
--- a/fs/btrfs/async-thread.c
+++ b/fs/btrfs/async-thread.c
@@ -16,10 +16,17 @@
* Boston, MA 021110-1307, USA.
*/
+#include <linux/version.h>
#include <linux/kthread.h>
#include <linux/list.h>
#include <linux/spinlock.h>
-#include <linux/freezer.h>
+
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,20)
+# include <linux/freezer.h>
+#else
+# include <linux/sched.h>
+#endif
+
#include "async-thread.h"
/*
OpenPOWER on IntegriCloud