X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=fs%2Faio.c;h=76ce0cc3ee4ec8833844a0537bde55ef90fed78d;hb=0a55a1fbed0b65ed52491caada7d2e936573d464;hp=1f32da13d39ee603cfd42e3d2af8f318f8bb0ea3;hpb=2c87f7a38f930ef6f6a7bdd04aeb82ce3971b54b;p=linux-2.6-microblaze.git diff --git a/fs/aio.c b/fs/aio.c index 1f32da13d39e..76ce0cc3ee4e 100644 --- a/fs/aio.c +++ b/fs/aio.c @@ -323,16 +323,13 @@ static void aio_free_ring(struct kioctx *ctx) } } -static int aio_ring_mremap(struct vm_area_struct *vma, unsigned long flags) +static int aio_ring_mremap(struct vm_area_struct *vma) { struct file *file = vma->vm_file; struct mm_struct *mm = vma->vm_mm; struct kioctx_table *table; int i, res = -EINVAL; - if (flags & MREMAP_DONTUNMAP) - return -EINVAL; - spin_lock(&mm->ioctx_lock); rcu_read_lock(); table = rcu_dereference(mm->ioctx_table);