[PATCH] ufs: fix oops with `ufs1' type
[firefly-linux-kernel-4.4.55.git] / include / linux / ufs_fs.h
index 7a6babeca25619fdadfe639f5c9696822c7341e0..f26118ea1c58c21605da3af6d5f3f45f0a8e9d84 100644 (file)
@@ -502,8 +502,7 @@ struct ufs_super_block {
 /*
  * Convert cylinder group to base address of its global summary info.
  */
-#define fs_cs(indx) \
-       s_csp[(indx) >> uspi->s_csshift][(indx) & ~uspi->s_csmask]
+#define fs_cs(indx) s_csp[(indx)]
 
 /*
  * Cylinder group block for a file system.