Skip to content

Commit

Permalink
Btrfs: fix RHEL test for ClearPageFsMisc
Browse files Browse the repository at this point in the history
Newer RHEL5 kernels define both ClearPageFSMisc and
ClearPageChecked, so test for both before redefining.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
---

Signed-off-by: Chris Mason <chris.mason@oracle.com>
  • Loading branch information
Eric Sandeen authored and Chris Mason committed Sep 25, 2008
1 parent 5707e3b commit 5036f53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/btrfs/ctree.h
Original file line number Diff line number Diff line change
Expand Up @@ -1648,7 +1648,7 @@ int btrfs_csum_truncate(struct btrfs_trans_handle *trans,
/* inode.c */

/* RHEL and EL kernels have a patch that renames PG_checked to FsMisc */
#ifdef ClearPageFsMisc
#if defined(ClearPageFsMisc) && !defined(ClearPageChecked)
#define ClearPageChecked ClearPageFsMisc
#define SetPageChecked SetPageFsMisc
#define PageChecked PageFsMisc
Expand Down

0 comments on commit 5036f53

Please sign in to comment.