lkml.org 
[lkml]   [2000]   [Sep]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patchlet] Minor cleanup in mm/swapfile.c (2.4.0t8)
Hi.

This patch does minor and strightforward cleanup in mm/swapfile.c.

--- linux-240test8-clean/mm/swapfile.c Thu Aug 10 16:29:54 2000
+++ linux/mm/swapfile.c Wed Sep 13 20:40:15 2000
@@ -101,7 +101,7 @@

while (1) {
p = &swap_info[type];
- if ((p->flags & SWP_WRITEOK) == SWP_WRITEOK) {
+ if (p->flags & SWP_WRITEOK) {
swap_device_lock(p);
offset = scan_swap_map(p, count);
swap_device_unlock(p);
@@ -418,7 +418,7 @@
swap_list_lock();
for (type = swap_list.head; type >= 0; type = swap_info[type].next) {
p = swap_info + type;
- if ((p->flags & SWP_WRITEOK) == SWP_WRITEOK) {
+ if (p->flags & SWP_WRITEOK) {
if (p->swap_file) {
if (p->swap_file == nd.dentry)
break;
@@ -799,7 +799,7 @@

for (i = 0; i < nr_swapfiles; i++) {
unsigned int j;
- if ((swap_info[i].flags & SWP_WRITEOK) != SWP_WRITEOK)
+ if (!(swap_info[i].flags & SWP_WRITEOK))
continue;
for (j = 0; j < swap_info[i].max; ++j) {
switch (swap_info[i].swap_map[j]) {

--
Regards,
Rasmus(rasmus@jaquet.dk)

With searching comes loss
and the presence of absence:
"My Novel" not found. --- Error messages in haiku
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:38    [W:0.047 / U:47.428 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site