summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorJan Schmidt <list.btrfs@jan-o-sch.net>2011-12-01 14:35:19 +0100
committerJan Schmidt <list.btrfs@jan-o-sch.net>2012-01-05 15:11:55 +0100
commit6bf7e080d5bcb0d399ee38ce3dabbfad64448192 (patch)
tree954fc4c3ae899b1bb4b89af03582a81546eda4bf /fs
parent4692cf58aa7b81f721c1653d48db99ea41421d58 (diff)
downloadop-kernel-dev-6bf7e080d5bcb0d399ee38ce3dabbfad64448192.zip
op-kernel-dev-6bf7e080d5bcb0d399ee38ce3dabbfad64448192.tar.gz
Btrfs: make sure we're not using obsolete code in btrfs_get_extent
There's code in btrfs_get_extent that should never be used. This patch turns a WARN_ON(1) into a BUG(), hoping we can remove the transaction code from btrfs_get_extent soon. Signed-off-by: Jan Schmidt <list.btrfs@jan-o-sch.net>
Diffstat (limited to 'fs')
-rw-r--r--fs/btrfs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index ea81938..603d740 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -5022,7 +5022,7 @@ again:
}
flush_dcache_page(page);
} else if (create && PageUptodate(page)) {
- WARN_ON(1);
+ BUG();
if (!trans) {
kunmap(page);
free_extent_map(em);
OpenPOWER on IntegriCloud