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/
This archive was generated by hypermail 2b29 : Fri Sep 15 2000 - 21:00:21 EST