set_pte(dir, pte_mkdirty(mk_pte(page, vma->vm_page_prot)));
swap_free(entry);
get_page(page);
- // ++vma->vm_mm->rss;
vx_rsspages_inc(vma->vm_mm);
}
static struct gendisk *stram_disk;
static struct request_queue *stram_queue;
-static spinlock_t stram_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(stram_lock);
int __init stram_device_init(void)
{