scst_lib: Port to Linux kernel v6.3

Support for the following fs changes in the Linux kernel v6.3:
- abf08576afe3 ("fs: port vfs_*() helpers to struct mnt_idmap")
This commit is contained in:
Gleb Chesnokov
2023-02-27 12:04:14 +03:00
parent 83ff524b6c
commit 1cf04b01a5

View File

@@ -15063,9 +15063,12 @@ void scst_vfs_unlink_and_put(struct path *path)
vfs_unlink(path->dentry->d_parent->d_inode, path->dentry);
#elif LINUX_VERSION_CODE < KERNEL_VERSION(5, 12, 0)
vfs_unlink(path->dentry->d_parent->d_inode, path->dentry, NULL);
#else
#elif LINUX_VERSION_CODE < KERNEL_VERSION(6, 3, 0)
vfs_unlink(&init_user_ns, path->dentry->d_parent->d_inode, path->dentry,
NULL);
#else
vfs_unlink(&nop_mnt_idmap, path->dentry->d_parent->d_inode, path->dentry,
NULL);
#endif
path_put(path);
}