]> git.baikalelectronics.ru Git - kernel.git/commit
hugetlbfs: return negative error code for bad mount option
authorAkinobu Mita <akinobu.mita@gmail.com>
Tue, 21 Apr 2009 19:24:05 +0000 (12:24 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 21 Apr 2009 20:41:48 +0000 (13:41 -0700)
commitc9a985f030114fdf274fdab387def480d9eaf4ee
tree7848a312993bee19c0096b2e4cb08b15140fd08c
parent309f22cfa20339963b38a9a1e4f81e9a6d5c4e1b
hugetlbfs: return negative error code for bad mount option

This fixes the following BUG:

  # mount -o size=MM -t hugetlbfs none /huge
  hugetlbfs: Bad value 'MM' for mount option 'size=MM'
  ------------[ cut here ]------------
  kernel BUG at fs/super.c:996!

Due to

BUG_ON(!mnt->mnt_sb);

in vfs_kern_mount().

Also, remove unused #include <linux/quotaops.h>

Cc: William Irwin <wli@holomorphy.com>
Cc: <stable@kernel.org>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/hugetlbfs/inode.c