diff options
Diffstat (limited to 'fs/btrfs/compat.h')
-rw-r--r-- | fs/btrfs/compat.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/btrfs/compat.h b/fs/btrfs/compat.h index cd6598b169df..dd1defdbfa36 100644 --- a/fs/btrfs/compat.h +++ b/fs/btrfs/compat.h | |||
@@ -21,4 +21,11 @@ static inline struct dentry *d_obtain_alias(struct inode *inode) | |||
21 | } | 21 | } |
22 | #endif | 22 | #endif |
23 | 23 | ||
24 | #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28) | ||
25 | # define __pagevec_lru_add_file __pagevec_lru_add | ||
26 | # define open_bdev_exclusive open_bdev_excl | ||
27 | # define close_bdev_exclusive(bdev, mode) close_bdev_excl(bdev) | ||
28 | #endif | ||
29 | |||
30 | |||
24 | #endif /* _COMPAT_H_ */ | 31 | #endif /* _COMPAT_H_ */ |