Skip to contentSkip to conversation

syscalls/swapoff/swapoff01: remove the check for BTRFS

PATCH New QI Fuli 2 participants 2 messages Mar 20, 2021 – Mar 22, 2021

lore
Share & tools
lore

QI Fuli

author
#0 lore raw

PATCH 1/1 syscalls/swapoff/swapoff01: remove the check for BTRFS

From: QI Fuli <[email protected]>

remove the redundant task as BTRFS is checked in is_swap_supported()

Fixes eadffb391("syscalls/swapoff/swapoff0{1,2}: use helpers to check

support status")

---
 testcases/kernel/syscalls/swapoff/swapoff01.c | 7 -------
 1 file changed, 7 deletions(-)
testcases/kernel/syscalls/swapoff/swapoff01.c +0 -7
index 87a217a89..1a707625a 100644
@@ -34,8 +34,6 @@ static void verify_swapoff(void);
 char *TCID = "swapoff01";
 int TST_TOTAL = 1;
 
-static long fs_type;
-
 int main(int ac, char **av)
 {
 	int lc;
@@ -56,11 +54,6 @@ int main(int ac, char **av)
 static void verify_swapoff(void)
 {
 	if (ltp_syscall(__NR_swapon, "./swapfile01", 0) != 0) {
-		if (fs_type == TST_BTRFS_MAGIC && errno == EINVAL) {
-			tst_brkm(TCONF, cleanup,
-			         "Swapfiles on BTRFS are not implemented");
-		}
-
 		tst_resm(TBROK, "Failed to turn on the swap file"
 			 ", skipping test iteration");
 		return;

--
2.29.2

#1 lore raw

PATCH 1/1 syscalls/swapoff/swapoff01: remove the check for BTRFS

Quoted 6 lines · QI Fuli

From: QI Fuli <[email protected]>

remove the redundant task as BTRFS is checked in is_swap_supported()

Fixes eadffb391("syscalls/swapoff/swapoff0{1,2}: use helpers to check

support status")

Thanks for the cleanup, pushed.

Signature · 5 lines
Regards,
Li Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20210322/f5a83514/attachment.htm>