]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
prio_tree: fix fs/block_dev.c for removal of prio_tree
authorStephen Rothwell <sfr@canb.auug.org.au>
Tue, 2 Oct 2012 06:02:56 +0000 (16:02 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 8 Oct 2012 03:14:58 +0000 (14:14 +1100)
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Michel Lespinasse <walken@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/block_dev.c

index 246a81ea2f1109707fe39d970635938f16c1056a..165b01f1b314c2078bd6d7eee1050487e1491452 100644 (file)
@@ -27,6 +27,7 @@
 #include <linux/namei.h>
 #include <linux/log2.h>
 #include <linux/cleancache.h>
+#include <linux/rbtree.h>
 #include <asm/uaccess.h>
 #include "internal.h"
 
@@ -132,7 +133,7 @@ int set_blocksize(struct block_device *bdev, int size)
        /* Check that the block device is not memory mapped */
        mapping = bdev->bd_inode->i_mapping;
        mutex_lock(&mapping->i_mmap_mutex);
-       if (!prio_tree_empty(&mapping->i_mmap) ||
+       if (!RB_EMPTY_ROOT(&mapping->i_mmap) ||
            !list_empty(&mapping->i_mmap_nonlinear)) {
                mutex_unlock(&mapping->i_mmap_mutex);
                percpu_up_write(&bdev->bd_block_size_semaphore);