From: Miao Xie Date: Mon, 26 Nov 2012 08:43:45 +0000 (+0000) Subject: Btrfs: get write access when doing resize fs X-Git-Tag: v3.8-rc1~71^2~48 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=198605a8e2077f174c9834c97b836f535e4e56dd;p=pandora-kernel.git Btrfs: get write access when doing resize fs Steps to reproduce: # mkfs.btrfs # mount -o ro # mount -o ro # mount -o remount,rw # umount # btrfs fi resize 10g We re-sized a R/O filesystem. The reason is that we just check the R/O flag of the super block object. It is not enough, because the kernel may set the R/O flag only for the mount point. We need invoke mnt_want_write_file() to do a full check. Signed-off-by: Miao Xie Signed-off-by: Chris Mason --- Reading git-diff-tree failed