diff options
Diffstat (limited to 'fs/btrfs/async-thread.c')
-rw-r--r-- | fs/btrfs/async-thread.c | 9 |
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 @@ | |||
16 | * Boston, MA 021110-1307, USA. | 16 | * Boston, MA 021110-1307, USA. |
17 | */ | 17 | */ |
18 | 18 | ||
19 | #include <linux/version.h> | ||
19 | #include <linux/kthread.h> | 20 | #include <linux/kthread.h> |
20 | #include <linux/list.h> | 21 | #include <linux/list.h> |
21 | #include <linux/spinlock.h> | 22 | #include <linux/spinlock.h> |
22 | #include <linux/freezer.h> | 23 | |
24 | #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,20) | ||
25 | # include <linux/freezer.h> | ||
26 | #else | ||
27 | # include <linux/sched.h> | ||
28 | #endif | ||
29 | |||
23 | #include "async-thread.h" | 30 | #include "async-thread.h" |
24 | 31 | ||
25 | /* | 32 | /* |