]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: don't save the inode cache in non-FS roots
authorliubo <liubo2009@cn.fujitsu.com>
Wed, 1 Jun 2011 09:42:49 +0000 (09:42 +0000)
committerChris Mason <chris.mason@oracle.com>
Sat, 4 Jun 2011 12:03:44 +0000 (08:03 -0400)
commit4dc96567a3f1b40d4763abfee7449d54ae9a0be0
tree945f70453e07c59739c02808f69598f637d35dfa
parentdf0202b78b5cba8518b5c2bc2b0fc8acc201443f
Btrfs: don't save the inode cache in non-FS roots

This adds extra checks to make sure the inode map we are caching really
belongs to a FS root instead of a special relocation tree.  It
prevents crashes during balancing operations.

Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/inode-map.c