mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-18 03:01:26 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user