]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/nfs/dir.c
Merge branch 'devel'
[linux-2.6-omap-h63xx.git] / fs / nfs / dir.c
index d583654a0b397fef8b63b4e883284db153dc3625..f288b3ecab4afad46334d311ac301f7a2e1e1fa4 100644 (file)
@@ -967,7 +967,8 @@ static int is_atomic_open(struct inode *dir, struct nameidata *nd)
        if (nd->flags & LOOKUP_DIRECTORY)
                return 0;
        /* Are we trying to write to a read only partition? */
-       if (IS_RDONLY(dir) && (nd->intent.open.flags & (O_CREAT|O_TRUNC|FMODE_WRITE)))
+       if (__mnt_is_readonly(nd->path.mnt) &&
+           (nd->intent.open.flags & (O_CREAT|O_TRUNC|FMODE_WRITE)))
                return 0;
        return 1;
 }