diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-11-19 21:17:22 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-11-19 21:17:22 -0500 |
commit | 15916de835a683bd8133a0d1ac0c982b795ab4ff (patch) | |
tree | 20603c2e0cade00d2e40a3b5390f5def36a02711 /fs/btrfs/compat.h | |
parent | ae20a6afec1cf21919d97303f2d8b737eac5acc7 (diff) | |
download | linux-15916de835a683bd8133a0d1ac0c982b795ab4ff.tar.bz2 |
Btrfs: Fixes for 2.6.28-rc API changes
* open/close_bdev_excl -> open/close_bdev_exclusive
* blkdev_issue_discard takes a GFP mask now
* Fix blkdev_issue_discard usage now that it is enabled
Signed-off-by: Chris Mason <chris.mason@oracle.com>
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) } #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28) +# define __pagevec_lru_add_file __pagevec_lru_add +# define open_bdev_exclusive open_bdev_excl +# define close_bdev_exclusive(bdev, mode) close_bdev_excl(bdev) +#endif + + #endif /* _COMPAT_H_ */ |