diff --git a/scst/src/scst_lib.c b/scst/src/scst_lib.c index 9cbe8c743..b20303b6b 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -8932,7 +8932,11 @@ void scst_vfs_unlink_and_put(struct nameidata *nd) #else void scst_vfs_unlink_and_put(struct path *path) { +#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0) vfs_unlink(path->dentry->d_parent->d_inode, path->dentry); +#else + vfs_unlink(path->dentry->d_parent->d_inode, path->dentry, NULL); +#endif path_put(path); } #endif