mirror of
https://github.com/torvalds/linux.git
synced 2024-11-12 07:01:57 +00:00
Btrfs: fix RHEL test for ClearPageFsMisc
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>
This commit is contained in:
parent
5707e3b6f7
commit
5036f53868
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user