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

@@ -10,19 +10,13 @@
* Author: Dan Magenheimer
*/
#include <linux/bitops.h>
#include <linux/module.h>
#include <linux/fs.h>
#include <linux/exportfs.h>
#include <linux/gfp.h>
#include <linux/mm.h>
#include <linux/debugfs.h>
#include <linux/cleancache.h>
#ifdef CONFIG_DDAR
#define AS_SENSITIVE (__GFP_BITS_SHIFT + 5) /* Group of sensitive pages to be cleaned up */
#endif
/*
* cleancache_ops is set by cleancache_register_ops to contain the pointers
* to the cleancache "backend" implementation functions.
@@ -208,15 +202,6 @@ out:
}
EXPORT_SYMBOL(__cleancache_get_page);
#ifdef CONFIG_DDAR
static inline int mapping_sensitive(struct address_space *mapping)
{
if (mapping)
return test_bit(AS_SENSITIVE, &mapping->flags);
return !!mapping;
}
#endif
/*
* "Put" data from a page to cleancache and associate it with the
* (previously-obtained per-filesystem) poolid and the page's,
@@ -237,11 +222,6 @@ void __cleancache_put_page(struct page *page)
return;
}
#ifdef CONFIG_DDAR
if (mapping_sensitive(page->mapping))
return;
#endif
VM_BUG_ON_PAGE(!PageLocked(page), page);
pool_id = page->mapping->host->i_sb->cleancache_poolid;
if (pool_id >= 0 &&