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)
commit768e9dfe820abdcfb6683e05c60b8634f1a4ffce
tree193f5ea645f4f96a85d3ac877abf8e9d6eb1b390
parenta874a63e1389c1daabd5abe4e4faaf9d63daf474
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