mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 10:54:35 +03:00
Linux 3.6 compat, sget()
As of Linux commit 9249e17fe094d853d1ef7475dd559a2cc7e23d42 the mount flags are now passed to sget() so they can be used when initializing a new superblock. ZFS never uses sget() in this fashion so we can simply pass a zero and add a zpl_sget() compatibility wrapper. Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Issue #873
This commit is contained in:
committed by
Brian Behlendorf
parent
af26c4d4ab
commit
3c20361075
@@ -920,8 +920,8 @@ zfsctl_lookup_objset(struct super_block *sb, uint64_t objsetid, zfs_sb_t **zsbp)
|
||||
* race cannot occur to an expired mount point because
|
||||
* we hold the zsb->z_ctldir_lock to prevent the race.
|
||||
*/
|
||||
sbp = sget(&zpl_fs_type, zfsctl_test_super,
|
||||
zfsctl_set_super, &id);
|
||||
sbp = zpl_sget(&zpl_fs_type, zfsctl_test_super,
|
||||
zfsctl_set_super, 0, &id);
|
||||
if (IS_ERR(sbp)) {
|
||||
error = -PTR_ERR(sbp);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user