summaryrefslogtreecommitdiffstats
path: root/lib/textsearch.c
diff options
context:
space:
mode:
authorMiao Xie <miaox@cn.fujitsu.com>2010-02-02 09:46:44 +0100
committerChris Mason <chris.mason@oracle.com>2010-02-04 17:31:44 +0100
commitd7ce5843bb28ada6845ab2ae8510ba3f12d33154 (patch)
treec7468abdcaa1d59d789af027984abfdc1bda5248 /lib/textsearch.c
parentBtrfs: make error return negative in btrfs_sync_file() (diff)
downloadlinux-d7ce5843bb28ada6845ab2ae8510ba3f12d33154.tar.xz
linux-d7ce5843bb28ada6845ab2ae8510ba3f12d33154.zip
Btrfs: remove BUG_ON() due to mounting bad filesystem
Mounting a bad filesystem caused a BUG_ON(). The following is steps to reproduce it. # mkfs.btrfs /dev/sda2 # mount /dev/sda2 /mnt # mkfs.btrfs /dev/sda1 /dev/sda2 (the program says that /dev/sda2 was mounted, and then exits. ) # umount /mnt # mount /dev/sda1 /mnt At the third step, mkfs.btrfs exited in the way of make filesystem. So the initialization of the filesystem didn't finish. So the filesystem was bad, and it caused BUG_ON() when mounting it. But BUG_ON() should be called by the wrong code, not user's operation, so I think it is a bug of btrfs. This patch fixes it. Signed-off-by: Miao Xie <miaox@cn.fujitsu.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'lib/textsearch.c')
0 files changed, 0 insertions, 0 deletions