]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: remove redundant r/o check for superblock
authorLiu Bo <liubo2009@cn.fujitsu.com>
Fri, 29 Jun 2012 09:58:47 +0000 (03:58 -0600)
committerChris Mason <chris.mason@fusionio.com>
Mon, 23 Jul 2012 20:27:56 +0000 (16:27 -0400)
commit114190f72ab82311bf19d1e1cedbf8d1b5eec16a
tree193f5ea645f4f96a85d3ac877abf8e9d6eb1b390
parentb6bbe51fd8a8c7f62bf8b4b7091beac94cdff5c5
Btrfs: remove redundant r/o check for superblock

mnt_want_write() and mnt_want_write_file() will check sb->s_flags with
MS_RDONLY, and we don't need to do it ourselves.

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