]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - fs/xfs/linux-2.6/xfs_quotaops.c
Merge git://git.infradead.org/~dwmw2/iommu-2.6.31
[mv-sheeva.git] / fs / xfs / linux-2.6 / xfs_quotaops.c
index 94d9a633d3d91bd6df491d67c425ebf8acf80f6a..cb6e2cca214f4b82528571c11e7dcd3138c7bf37 100644 (file)
@@ -50,9 +50,11 @@ xfs_fs_quota_sync(
 {
        struct xfs_mount        *mp = XFS_M(sb);
 
+       if (sb->s_flags & MS_RDONLY)
+               return -EROFS;
        if (!XFS_IS_QUOTA_RUNNING(mp))
                return -ENOSYS;
-       return -xfs_sync_inodes(mp, SYNC_DELWRI);
+       return -xfs_sync_data(mp, 0);
 }
 
 STATIC int