X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fncpfs%2Fmmap.c;h=5fb8e87164873fdaae4da07d77452a9ccec74ebd;hb=5e3b93f248c98873cc843e83092bb8da92ac85a2;hp=bae04d66b4ab07c24b140cb431be9e1572547cf7;hpb=a91482bdcc2e0f6035702e46f1b99043a0893346;p=linux-2.6.git diff --git a/fs/ncpfs/mmap.c b/fs/ncpfs/mmap.c index bae04d66b..5fb8e8716 100644 --- a/fs/ncpfs/mmap.c +++ b/fs/ncpfs/mmap.c @@ -123,7 +123,7 @@ int ncp_mmap(struct file *file, struct vm_area_struct *vma) if (((vma->vm_end - vma->vm_start) >> PAGE_SHIFT) + vma->vm_pgoff > (1U << (32 - PAGE_SHIFT))) return -EFBIG; - if (!IS_RDONLY(inode) || (file && MNT_IS_RDONLY(file->f_vfsmnt))) { + if (!IS_RDONLY(inode)) { inode->i_atime = CURRENT_TIME; }