Whamcloud - gitweb
LU-2800 autoconf: remove LC_BLKDEV_PUT_2ARGS test
[fs/lustre-release.git] / lustre / include / linux / lustre_compat25.h
index cd3e386..902aeb6 100644 (file)
@@ -124,12 +124,6 @@ static inline void ll_set_fs_pwd(struct fs_struct *fs, struct vfsmount *mnt,
         generic_permission(inode, mask, check_acl)
 #endif
 
-#ifdef HAVE_BLKDEV_PUT_2ARGS
-#define ll_blkdev_put(a, b) blkdev_put(a, b)
-#else
-#define ll_blkdev_put(a, b) blkdev_put(a)
-#endif
-
 #ifdef HAVE_DENTRY_OPEN_USE_PATH
 #define ll_dentry_open(a,b,c)  dentry_open(a,b,c)
 #else
@@ -422,13 +416,15 @@ static inline int ll_quota_off(struct super_block *sb, int off, int remount)
 #define ll_d_hlist_for_each_entry(dentry, p, i_dentry, alias) \
         hlist_for_each_entry(dentry, p, i_dentry, alias)
 #endif
+#define DECLARE_LL_D_HLIST_NODE_PTR(name) struct ll_d_hlist_node *name
 #else
 #define ll_d_hlist_node list_head
 #define ll_d_hlist_empty(list) list_empty(list)
 #define ll_d_hlist_entry(ptr, type, name) list_entry(ptr.next, type, name)
 #define ll_d_hlist_for_each(tmp, i_dentry) list_for_each(tmp, i_dentry)
 #define ll_d_hlist_for_each_entry(dentry, p, i_dentry, alias) \
-        p = NULL; list_for_each_entry(dentry, i_dentry, alias)
+       list_for_each_entry(dentry, i_dentry, alias)
+#define DECLARE_LL_D_HLIST_NODE_PTR(name) /* nothing */
 #endif