]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: check write access to mount earlier while creating snapshots
authorLiu Bo <liubo2009@cn.fujitsu.com>
Fri, 29 Jun 2012 09:58:46 +0000 (03:58 -0600)
committerChris Mason <chris.mason@fusionio.com>
Mon, 23 Jul 2012 20:27:56 +0000 (16:27 -0400)
commitb6bbe51fd8a8c7f62bf8b4b7091beac94cdff5c5
treeacf5fe5d438b24592345ec6aa172a15700b4019d
parentad6653bec0cf72cfc35cf1533340a52f46c5d69d
Btrfs: check write access to mount earlier while creating snapshots

Move check of write access to mount into upper functions so that we can
use mnt_want_write_file instead, which is faster than mnt_want_write.

Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com>
fs/btrfs/ioctl.c