diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-07-24 09:51:08 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:04:05 -0400 |
commit | 4881ee5a2e995c6a8999b56de70aa3834369d8ee (patch) | |
tree | bdc4e616fccb851656b16345b9bde8515ee4cff5 /fs/btrfs | |
parent | 89642229a582a5c2b6d2ed8ec16986387d9a9047 (diff) |
Btrfs: Fix some build problems on 2.6.18 based enterprise kernels
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs')
-rw-r--r-- | fs/btrfs/ctree.h | 8 | ||||
-rw-r--r-- | fs/btrfs/locking.c | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 90504ba7f838..8ecac2e77a43 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -1595,6 +1595,14 @@ int btrfs_csum_truncate(struct btrfs_trans_handle *trans, | |||
1595 | struct btrfs_root *root, struct btrfs_path *path, | 1595 | struct btrfs_root *root, struct btrfs_path *path, |
1596 | u64 isize); | 1596 | u64 isize); |
1597 | /* inode.c */ | 1597 | /* inode.c */ |
1598 | |||
1599 | /* RHEL and EL kernels have a patch that renames PG_checked to FsMisc */ | ||
1600 | #ifdef ClearPageFsMisc | ||
1601 | #define ClearPageChecked ClearPageFsMisc | ||
1602 | #define SetPageChecked SetPageFsMisc | ||
1603 | #define PageChecked PageFsMisc | ||
1604 | #endif | ||
1605 | |||
1598 | int btrfs_writepages(struct address_space *mapping, | 1606 | int btrfs_writepages(struct address_space *mapping, |
1599 | struct writeback_control *wbc); | 1607 | struct writeback_control *wbc); |
1600 | int btrfs_create_subvol_root(struct btrfs_root *new_root, | 1608 | int btrfs_create_subvol_root(struct btrfs_root *new_root, |
diff --git a/fs/btrfs/locking.c b/fs/btrfs/locking.c index 27a02376ab14..d617c29787fa 100644 --- a/fs/btrfs/locking.c +++ b/fs/btrfs/locking.c | |||
@@ -20,7 +20,7 @@ | |||
20 | #include <linux/pagemap.h> | 20 | #include <linux/pagemap.h> |
21 | #include <linux/spinlock.h> | 21 | #include <linux/spinlock.h> |
22 | #include <linux/page-flags.h> | 22 | #include <linux/page-flags.h> |
23 | #include <linux/bug.h> | 23 | #include <asm/bug.h> |
24 | #include "ctree.h" | 24 | #include "ctree.h" |
25 | #include "extent_io.h" | 25 | #include "extent_io.h" |
26 | #include "locking.h" | 26 | #include "locking.h" |