Add samsung specific changes

This commit is contained in:
2025-08-11 14:29:00 +02:00
parent c66122e619
commit 4d134a1294
2688 changed files with 1127995 additions and 11475 deletions

View File

@@ -143,14 +143,3 @@ config EROFS_FS_PCPU_KTHREAD_HIPRI
at higher priority.
If unsure, say N.
config EROFS_FS_ENABLE_LARGE_FOLIOS
bool "EROFS large folio enable"
depends on EROFS_FS
default n
help
This permit erofs large folio option
Samsung MX disable this option because cleancache does not support
large folio yet
If unsure, say Y.

View File

@@ -299,13 +299,7 @@ static int erofs_fill_inode(struct inode *inode)
goto out_unlock;
}
inode->i_mapping->a_ops = &erofs_raw_access_aops;
#ifdef CONFIG_EROFS_ENABLE_LARGE_FOLIOS
/*
* Disable large folios because
* cleancache doesn't support large folios yet
*/
mapping_set_large_folios(inode->i_mapping);
#endif
#ifdef CONFIG_EROFS_FS_ONDEMAND
if (erofs_is_fscache_mode(inode->i_sb))
inode->i_mapping->a_ops = &erofs_fscache_access_aops;

View File

@@ -16,7 +16,6 @@
#include <linux/slab.h>
#include <linux/vmalloc.h>
#include <linux/iomap.h>
#include <linux/cleancache.h>
#include "erofs_fs.h"
/* redefine pr_fmt "erofs: " */

View File

@@ -14,7 +14,6 @@
#include <linux/dax.h>
#include <linux/exportfs.h>
#include "xattr.h"
#include <linux/cleancache.h>
#define CREATE_TRACE_POINTS
#include <trace/events/erofs.h>
@@ -698,8 +697,6 @@ static int erofs_fc_fill_super(struct super_block *sb, struct fs_context *fc)
if (err)
return err;
cleancache_init_fs(sb);
erofs_info(sb, "mounted with root inode @ nid %llu.", ROOT_NID(sbi));
return 0;
}

View File

@@ -153,10 +153,8 @@ static void z_erofs_onlinepage_endio(struct page *page, int err)
if (!(v & ~Z_EROFS_PAGE_EIO)) {
set_page_private(page, 0);
ClearPagePrivate(page);
if (!(v & Z_EROFS_PAGE_EIO)) {
SetPageMappedToDisk(page);
if (!(v & Z_EROFS_PAGE_EIO))
SetPageUptodate(page);
}
unlock_page(page);
}
}
@@ -976,10 +974,6 @@ static int z_erofs_do_read_page(struct z_erofs_decompress_frontend *fe,
int err = 0;
z_erofs_onlinepage_init(page);
if (cleancache_get_page(page) == 0)
goto out;
split = 0;
end = PAGE_SIZE;
repeat: