diff options
Diffstat (limited to 'fs/btrfs/compat.h')
-rw-r--r-- | fs/btrfs/compat.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/compat.h b/fs/btrfs/compat.h index d39a768e65ff..b3349a66999d 100644 --- a/fs/btrfs/compat.h +++ b/fs/btrfs/compat.h | |||
@@ -1,6 +1,9 @@ | |||
1 | #ifndef _COMPAT_H_ | 1 | #ifndef _COMPAT_H_ |
2 | #define _COMPAT_H_ | 2 | #define _COMPAT_H_ |
3 | 3 | ||
4 | #if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,26) | ||
5 | #define trylock_page(page) (!TestSetPageLocked(page)) | ||
6 | #endif | ||
4 | 7 | ||
5 | /* | 8 | /* |
6 | * Even if AppArmor isn't enabled, it still has different prototypes. | 9 | * Even if AppArmor isn't enabled, it still has different prototypes. |