shmem.c (a4c366f01f10073e0220656561b875627ff7cd90) | shmem.c (4081f7446d95a9d3ced12dc04ff02c187a761e90) |
---|---|
1/* 2 * Resizable virtual memory filesystem for Linux. 3 * 4 * Copyright (C) 2000 Linus Torvalds. 5 * 2000 Transmeta Corp. 6 * 2000-2001 Christoph Rohland 7 * 2000-2001 SAP AG 8 * 2002 Red Hat Inc. --- 1410 unchanged lines hidden (view full) --- 1419 1420 mutex_unlock(&shmem_swaplist_mutex); 1421 BUG_ON(folio_mapped(folio)); 1422 swap_writepage(&folio->page, wbc); 1423 return 0; 1424 } 1425 1426 mutex_unlock(&shmem_swaplist_mutex); | 1/* 2 * Resizable virtual memory filesystem for Linux. 3 * 4 * Copyright (C) 2000 Linus Torvalds. 5 * 2000 Transmeta Corp. 6 * 2000-2001 Christoph Rohland 7 * 2000-2001 SAP AG 8 * 2002 Red Hat Inc. --- 1410 unchanged lines hidden (view full) --- 1419 1420 mutex_unlock(&shmem_swaplist_mutex); 1421 BUG_ON(folio_mapped(folio)); 1422 swap_writepage(&folio->page, wbc); 1423 return 0; 1424 } 1425 1426 mutex_unlock(&shmem_swaplist_mutex); |
1427 put_swap_page(&folio->page, swap); | 1427 put_swap_folio(folio, swap); |
1428redirty: 1429 folio_mark_dirty(folio); 1430 if (wbc->for_reclaim) 1431 return AOP_WRITEPAGE_ACTIVATE; /* Return with folio locked */ 1432 folio_unlock(folio); 1433 return 0; 1434} 1435 --- 2854 unchanged lines hidden --- | 1428redirty: 1429 folio_mark_dirty(folio); 1430 if (wbc->for_reclaim) 1431 return AOP_WRITEPAGE_ACTIVATE; /* Return with folio locked */ 1432 folio_unlock(folio); 1433 return 0; 1434} 1435 --- 2854 unchanged lines hidden --- |