Whamcloud - gitweb
LU-5322 libcfs: handle vfs_rename change in 3.15+ kernels
[fs/lustre-release.git] / lustre / include / linux / lustre_compat25.h
index 4b6fddf..4ec8e55 100644 (file)
@@ -342,6 +342,8 @@ static inline struct dentry *d_make_root(struct inode *root)
 
 #ifdef HAVE_VFS_RENAME_5ARGS
 #define ll_vfs_rename(a, b, c, d) vfs_rename(a, b, c, d, NULL)
+#elif defined HAVE_VFS_RENAME_6ARGS
+#define ll_vfs_rename(a, b, c, d) vfs_rename(a, b, c, d, NULL, 0)
 #else
 #define ll_vfs_rename(a, b, c, d) vfs_rename(a, b, c, d)
 #endif