cifs: return proper error code in statfs(2)
[sfrench/cifs-2.6.git] / fs / cifs / cifsfs.c
index d43e935d2df4365371200276509d4c72bab13289..099ad9f3660bb28db1b6a9aea9538282b41c6455 100644 (file)
@@ -290,7 +290,7 @@ cifs_statfs(struct dentry *dentry, struct kstatfs *buf)
                rc = server->ops->queryfs(xid, tcon, cifs_sb, buf);
 
        free_xid(xid);
-       return 0;
+       return rc;
 }
 
 static long cifs_fallocate(struct file *file, int mode, loff_t off, loff_t len)