diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-09-24 11:48:04 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 15:41:59 -0400 |
commit | 2b1f55b0f0d0d1a66470ef4ea2696cd5dd741a12 (patch) | |
tree | 980019fac9b0891e682bc7d9a8c8a58284b467fc /fs/btrfs/ctree.h | |
parent | 9b49c9b9f93e148815f2544d0c91f43b6d72eea9 (diff) |
Remove Btrfs compat code for older kernels
Btrfs had compatibility code for kernels back to 2.6.18. These have
been removed, and will be maintained in a separate backport
git tree from now on.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 138c157bbc45..3b3c1ca50c5d 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -1472,12 +1472,9 @@ static inline u32 btrfs_level_size(struct btrfs_root *root, int level) { | |||
1472 | ((unsigned long)(btrfs_leaf_data(leaf) + \ | 1472 | ((unsigned long)(btrfs_leaf_data(leaf) + \ |
1473 | btrfs_item_offset_nr(leaf, slot))) | 1473 | btrfs_item_offset_nr(leaf, slot))) |
1474 | 1474 | ||
1475 | static inline struct dentry *fdentry(struct file *file) { | 1475 | static inline struct dentry *fdentry(struct file *file) |
1476 | #if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,18) | 1476 | { |
1477 | return file->f_dentry; | ||
1478 | #else | ||
1479 | return file->f_path.dentry; | 1477 | return file->f_path.dentry; |
1480 | #endif | ||
1481 | } | 1478 | } |
1482 | 1479 | ||
1483 | /* extent-tree.c */ | 1480 | /* extent-tree.c */ |