diff options
author | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2001-03-30 13:32:39 +0000 |
---|---|---|
committer | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2001-03-30 13:32:39 +0000 |
commit | e407c2f5a611e30b05ea095f8b17d39fb5a7ebfa (patch) | |
tree | d0cc954519880e5e05b459938548e7f503f0a7bf | |
parent | 301a1ad315bd7881adcf0df33c589e0a74c059f4 (diff) |
merge in 2.4.3 kernel change.
-rw-r--r-- | linux-core/drm_bufs.c | 8 | ||||
-rw-r--r-- | linux/drm_bufs.h | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/linux-core/drm_bufs.c b/linux-core/drm_bufs.c index 63cfb0d4..f310eced 100644 --- a/linux-core/drm_bufs.c +++ b/linux-core/drm_bufs.c @@ -768,18 +768,18 @@ int DRM(mapbufs)( struct inode *inode, struct file *filp, goto done; } - down( ¤t->mm->mmap_sem ); + down_write( ¤t->mm->mmap_sem ); virtual = do_mmap( filp, 0, map->size, PROT_READ | PROT_WRITE, MAP_SHARED, (unsigned long)map->offset ); - up( ¤t->mm->mmap_sem ); + up_write( ¤t->mm->mmap_sem ); } else { - down( ¤t->mm->mmap_sem ); + down_write( ¤t->mm->mmap_sem ); virtual = do_mmap( filp, 0, dma->byte_count, PROT_READ | PROT_WRITE, MAP_SHARED, 0 ); - up( ¤t->mm->mmap_sem ); + up_write( ¤t->mm->mmap_sem ); } if ( virtual > -1024UL ) { /* Real error */ diff --git a/linux/drm_bufs.h b/linux/drm_bufs.h index 63cfb0d4..f310eced 100644 --- a/linux/drm_bufs.h +++ b/linux/drm_bufs.h @@ -768,18 +768,18 @@ int DRM(mapbufs)( struct inode *inode, struct file *filp, goto done; } - down( ¤t->mm->mmap_sem ); + down_write( ¤t->mm->mmap_sem ); virtual = do_mmap( filp, 0, map->size, PROT_READ | PROT_WRITE, MAP_SHARED, (unsigned long)map->offset ); - up( ¤t->mm->mmap_sem ); + up_write( ¤t->mm->mmap_sem ); } else { - down( ¤t->mm->mmap_sem ); + down_write( ¤t->mm->mmap_sem ); virtual = do_mmap( filp, 0, dma->byte_count, PROT_READ | PROT_WRITE, MAP_SHARED, 0 ); - up( ¤t->mm->mmap_sem ); + up_write( ¤t->mm->mmap_sem ); } if ( virtual > -1024UL ) { /* Real error */ |