Commit 5036f538 authored by Eric Sandeen's avatar Eric Sandeen Committed by Chris Mason

Btrfs: fix RHEL test for ClearPageFsMisc

Newer RHEL5 kernels define both ClearPageFSMisc and
ClearPageChecked, so test for both before redefining.
Signed-off-by: default avatarEric Sandeen <sandeen@redhat.com>
---
Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent 5707e3b6
...@@ -1648,7 +1648,7 @@ int btrfs_csum_truncate(struct btrfs_trans_handle *trans, ...@@ -1648,7 +1648,7 @@ int btrfs_csum_truncate(struct btrfs_trans_handle *trans,
/* inode.c */ /* inode.c */
/* RHEL and EL kernels have a patch that renames PG_checked to FsMisc */ /* RHEL and EL kernels have a patch that renames PG_checked to FsMisc */
#ifdef ClearPageFsMisc #if defined(ClearPageFsMisc) && !defined(ClearPageChecked)
#define ClearPageChecked ClearPageFsMisc #define ClearPageChecked ClearPageFsMisc
#define SetPageChecked SetPageFsMisc #define SetPageChecked SetPageFsMisc
#define PageChecked PageFsMisc #define PageChecked PageFsMisc
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment