Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f6e2485b authored by liquan.zhou's avatar liquan.zhou Committed by Rohit Sekhar
Browse files

mm: Mount tmpfs on /data with tmpfs in production mode

[2][FP4-263] mount tmpfs on /data with tmpfs in production mode
 ###%%%comment:mount tmpfs on /data with tmpfs in production mode
 ###%%%bug number:FP4-263
 ###%%%product name:sm7225_r_fp4
 ###%%%root cause:Coding
 ###%%%Bug category:T2M
 ###%%%Module_Impact:kernel
 ###%%%Test_Suggestion:no
 ###%%%Solution:add
 ###%%%Test_Report:pass
 ###%%%VAL Can Test:no

Change-Id: Ib7375478971c75a1f6cfb8c7e22a5797161ce89f
parent e9d38a68
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -3240,6 +3240,14 @@ static const struct xattr_handler shmem_trusted_xattr_handler = {
	.set = shmem_xattr_handler_set,
};

//FP4-263, mount tmpfs on /data with tmpfs in production mode, liquan.zhou.t2m, 20210624
// Task: 9949950, should support user.* in production mode
static const struct xattr_handler shmem_user_xattr_handler = {
	.prefix = XATTR_USER_PREFIX,
	.get = shmem_xattr_handler_get,
	.set = shmem_xattr_handler_set,
};

static const struct xattr_handler *shmem_xattr_handlers[] = {
#ifdef CONFIG_TMPFS_POSIX_ACL
	&posix_acl_access_xattr_handler,
@@ -3247,6 +3255,7 @@ static const struct xattr_handler *shmem_xattr_handlers[] = {
#endif
	&shmem_security_xattr_handler,
	&shmem_trusted_xattr_handler,
	&shmem_user_xattr_handler, // Task: 9949950  //FP4-263, mount tmpfs on /data with tmpfs in production mode, liquan.zhou.t2m, 20210624
	NULL
};