From: yangsheng Date: Tue, 11 Nov 2008 07:43:33 +0000 (+0000) Subject: Branch b1_8_gate X-Git-Tag: v1_7_140~1^54 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=146bc669c7ac488ab96fc7b7ba0f9f6a00c37d06;p=fs%2Flustre-release.git Branch b1_8_gate b=17153 i=adilger, robert.read Remove 2.4 check. Author: tappro CVSooi= --- diff --git a/lustre/include/linux/lvfs_linux.h b/lustre/include/linux/lvfs_linux.h index 63b273d..7a1712a 100644 --- a/lustre/include/linux/lvfs_linux.h +++ b/lustre/include/linux/lvfs_linux.h @@ -40,9 +40,7 @@ #include #include #include -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)) #include -#endif #include #include @@ -77,20 +75,10 @@ struct lvfs_dentry_params }; #define LVFS_DENTRY_PARAMS_INIT { .ldp_magic = LVFS_DENTRY_PARAM_MAGIC } -# if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)) -# define BDEVNAME_DECLARE_STORAGE(foo) char foo[BDEVNAME_SIZE] -# define ll_bdevname(SB, STORAGE) __bdevname(kdev_t_to_nr(SB->s_dev), STORAGE) -# define lvfs_sbdev(SB) ((SB)->s_bdev) -# define lvfs_sbdev_type struct block_device * +#define lvfs_sbdev(SB) ((SB)->s_bdev) +#define lvfs_sbdev_type struct block_device * int fsync_bdev(struct block_device *); -# define lvfs_sbdev_sync fsync_bdev -# else -# define BDEVNAME_DECLARE_STORAGE(foo) char __unused_##foo -# define ll_bdevname(SB,STORAGE) ((void)__unused_##STORAGE,bdevname(lvfs_sbdev(SB))) -# define lvfs_sbdev(SB) (kdev_t_to_nr((SB)->s_dev)) -# define lvfs_sbdev_type kdev_t -# define lvfs_sbdev_sync fsync_dev -# endif +#define lvfs_sbdev_sync fsync_bdev /* Instead of calling within lvfs (a layering violation) */ #define lvfs_set_rdonly(obd, sb) \