]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: erofs: remove incomplete cleancache
authorGao Xiang <gaoxiang25@huawei.com>
Tue, 13 Aug 2019 02:30:53 +0000 (10:30 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Aug 2019 10:50:55 +0000 (12:50 +0200)
cleancache was not fully implemented in EROFS.
In addition, it's tend to remove the whole cleancache in
related attempt [1].

[1] https://lore.kernel.org/linux-fsdevel/20190527103207.13287-3-jgross@suse.com/
Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Link: https://lore.kernel.org/r/20190813023054.73126-2-gaoxiang25@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/erofs/data.c
drivers/staging/erofs/internal.h

index 75b859e48084ed0da0b68c8ba4cc9ba2b489597f..4cdb743c8b8df99c93cf686873c33f7d8c30c806 100644 (file)
@@ -201,12 +201,6 @@ static inline struct bio *erofs_read_raw_page(struct bio *bio,
                goto has_updated;
        }
 
-       if (cleancache_get_page(page) == 0) {
-               err = 0;
-               SetPageUptodate(page);
-               goto has_updated;
-       }
-
        /* note that for readpage case, bio also equals to NULL */
        if (bio &&
            /* not continuous */
index 118e7c7e4d4dd49e838303ee04b948a48718db26..4ce5991c381fd04cc6c7c5cf860c69c6b1198415 100644 (file)
@@ -15,7 +15,6 @@
 #include <linux/pagemap.h>
 #include <linux/bio.h>
 #include <linux/buffer_head.h>
-#include <linux/cleancache.h>
 #include <linux/slab.h>
 #include <linux/vmalloc.h>
 #include "erofs_fs.h"