diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1997-06-01 03:16:17 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1997-06-01 03:16:17 +0000 |
commit | d8d9b8f76f22b7a16a83e261e64f89ee611f49df (patch) | |
tree | 3067bc130b80d52808e6390c9fc7fc087ec1e33c /mm/filemap.c | |
parent | 19c9bba94152148523ba0f7ef7cffe3d45656b11 (diff) |
Initial revision
Diffstat (limited to 'mm/filemap.c')
-rw-r--r-- | mm/filemap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/filemap.c b/mm/filemap.c index 6f58da546..88c2fd49d 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -171,7 +171,7 @@ int shrink_mmap(int priority, int dma) switch (atomic_read(&page->count)) { case 1: /* If it has been referenced recently, don't free it */ - if (clear_bit(PG_referenced, &page->flags)) + if (test_and_clear_bit(PG_referenced, &page->flags)) break; /* is it a page cache page? */ @@ -1342,7 +1342,7 @@ generic_file_write(struct inode *inode, struct file *file, const char *buf, unsi } lockit: - while (set_bit(PG_locked, &page->flags)) + while (test_and_set_bit(PG_locked, &page->flags)) wait_on_page(page); /* |