-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: YongminTai <[email protected]>
- Loading branch information
1 parent
b5cbad1
commit 334ae0c
Showing
1 changed file
with
61 additions
and
0 deletions.
There are no files selected for viewing
61 changes: 61 additions & 0 deletions
61
patches/linux/0226-PNM-ZSWAP-fix-the-risk-of-GPL-v2.0-voliation.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
From df5b5a5d2fae89054e6ddb274249778d4a58de79 Mon Sep 17 00:00:00 2001 | ||
From: "mao.chen" <[email protected]> | ||
Date: Tue, 31 Oct 2023 23:41:33 +0800 | ||
Subject: [PATCH 226/226] [PNM][ZSWAP]fix the risk of GPL v2.0 voliation | ||
|
||
Add original copyright information in pnm_zswap.c | ||
and pnm_zswap_lib.c to avoid the risk of GPL v2.0 | ||
voliation | ||
|
||
BREAKING CHANGE: no | ||
|
||
Resolve: MCS23-1803 | ||
|
||
Signed-off-by: mao.chen <[email protected]> | ||
--- | ||
lib/pnm/zswap/pnm_zswap_lib.c | 8 ++++++++ | ||
mm/pnm/pnm_zswap.c | 11 +++++++++++ | ||
2 files changed, 19 insertions(+) | ||
|
||
diff --git a/lib/pnm/zswap/pnm_zswap_lib.c b/lib/pnm/zswap/pnm_zswap_lib.c | ||
index 3d77275c5..2e3d03e8c 100644 | ||
--- a/lib/pnm/zswap/pnm_zswap_lib.c | ||
+++ b/lib/pnm/zswap/pnm_zswap_lib.c | ||
@@ -1,5 +1,13 @@ | ||
// SPDX-License-Identifier: GPL-2.0 | ||
/* Copyright(c) 2021-2023 Samsung LTD. All rights reserved. */ | ||
+/* | ||
+ * zpool memory storage api | ||
+ * | ||
+ * Copyright (C) 2014 Dan Streetman | ||
+ * | ||
+ * This is a common frontend for memory storage pool implementations. | ||
+ * Typically, this is used to store compressed memory. | ||
+ */ | ||
|
||
#include <asm/page.h> /* PAGE_SIZE */ | ||
#include <linux/cdev.h> /* cdev definition */ | ||
diff --git a/mm/pnm/pnm_zswap.c b/mm/pnm/pnm_zswap.c | ||
index f5614554a..5e84e8dca 100644 | ||
--- a/mm/pnm/pnm_zswap.c | ||
+++ b/mm/pnm/pnm_zswap.c | ||
@@ -1,5 +1,16 @@ | ||
// SPDX-License-Identifier: GPL-2.0 | ||
/* Copyright(c) 2021-2023 Samsung LTD. All rights reserved. */ | ||
+/* | ||
+ * zswap.c - zswap driver file | ||
+ * | ||
+ * zswap is a backend for frontswap that takes pages that are in the process | ||
+ * of being swapped out and attempts to compress and store them in a | ||
+ * RAM-based memory pool. This can result in a significant I/O reduction on | ||
+ * the swap device and, in the case where decompressing from RAM is faster | ||
+ * than reading from the swap device, can also improve workload performance. | ||
+ * | ||
+ * Copyright (C) 2012 Seth Jennings <[email protected]> | ||
+ */ | ||
|
||
#include <asm/msr.h> | ||
#include <asm/timer.h> | ||
-- | ||
2.34.1 | ||
|