ext4_bcache: fix return value of ext4_buf_lowest_lru (lba -> lru)
authorngkaho1234 <ngkaho1234@gmail.com>
Mon, 23 Nov 2015 13:39:29 +0000 (13:39 +0000)
committergkostka <kostka.grzegorz@gmail.com>
Mon, 23 Nov 2015 16:08:25 +0000 (17:08 +0100)
lwext4/ext4_bcache.c

index 31145645f2cc13fe6b5cd9ec7e958c7316a4d028..fb106a4cb068309cc91b6ac7ab9bc85660290633 100644 (file)
@@ -126,7 +126,7 @@ ext4_buf_lookup(struct ext4_bcache *bc, uint64_t lba)
 
 struct ext4_buf *ext4_buf_lowest_lru(struct ext4_bcache *bc)
 {
-       return RB_MIN(ext4_buf_lba, &bc->lba_root);
+       return RB_MIN(ext4_buf_lru, &bc->lru_root);
 }
 
 void ext4_bcache_drop_buf(struct ext4_bcache *bc, struct ext4_buf *buf)