Re: [PATCH] btrfs: add ability to query/change feature bits online

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Aug 27, 2013 at 03:17:54PM -0400, Jeff Mahoney wrote:
> +static int btrfs_ioctl_add_features(struct file *file, void __user *arg)
> +{
...

		spin_lock(&fs_info->super_lock);

> +		flags = btrfs_super_compat_flags(super_block);
> +		flags |= features.compat_flags;
> +		btrfs_set_super_compat_flags(super_block, flags);
> +
> +		flags = btrfs_super_compat_ro_flags(super_block);
> +		flags |= features.compat_ro_flags;
> +		btrfs_set_super_compat_ro_flags(super_block, flags);
> +
> +		flags = btrfs_super_incompat_flags(super_block);
> +		flags |= features.incompat_flags;
> +		btrfs_set_super_incompat_flags(super_block, flags);

		spin_unlock(&fs_info->super_lock);

> +		return btrfs_end_transaction(trans, root);
> +	}
> +
> +	return 0;
> +}
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux