Esempio n. 1
0
static int
zpl_remount_fs(struct super_block *sb, int *flags, char *data)
{
	int error;
	error = -zfs_remount(sb, flags, data);
	ASSERT3S(error, <=, 0);

	return (error);
}
Esempio n. 2
0
static int
zpl_remount_fs(struct super_block *sb, int *flags, char *data)
{
    zfs_sb_t *zsb = sb->s_fs_info;
    fstrans_cookie_t cookie;
    int error;

    error = zpl_parse_options(zsb->z_mntopts->z_osname, data,
                              zsb->z_mntopts, B_TRUE);
    if (error)
        return (error);

    cookie = spl_fstrans_mark();
    error = -zfs_remount(sb, flags, zsb->z_mntopts);
    spl_fstrans_unmark(cookie);
    ASSERT3S(error, <=, 0);

    return (error);
}