]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: commit transaction after setting label and features
authorJeff Mahoney <jeffm@suse.com>
Fri, 7 Feb 2014 13:33:57 +0000 (14:33 +0100)
committerChris Mason <clm@fb.com>
Sun, 9 Feb 2014 01:57:15 +0000 (17:57 -0800)
commitba7864dfb1371634d30f86fc3f1d08945628cbc1
tree807ba712623cff5b6f90f294e6671ca2520901ad
parent13737caba352245016e9b5723b528258ffc6cd5b
btrfs: commit transaction after setting label and features

The set_fslabel ioctl uses btrfs_end_transaction, which means it's
possible that the change will be lost if the system crashes, same for
the newly set features. Let's use btrfs_commit_transaction instead.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/ioctl.c