@@ -305,13 +305,19 @@ int platform_direct_blockdev()
}
int
-platform_align_blockdev(void)
+align_blockdev(void)
{
if (!max_block_alignment)
return getpagesize();
return max_block_alignment;
}
+int
+platform_align_blockdev(void)
+{
+ return align_blockdev();
+}
+
/* How many CPUs are online? */
int
nproc(void)
@@ -24,6 +24,7 @@ char *findblockpath(char *path);
int platform_direct_blockdev(void);
int direct_blockdev(void);
int platform_align_blockdev(void);
+int align_blockdev(void);
unsigned long platform_physmem(void); /* in kilobytes */
void platform_findsizes(char *path, int fd, long long *sz, int *bsz);
void findsizes(char *path, int fd, long long *sz, int *bsz);
@@ -1030,7 +1030,7 @@ libxfs_destroy(
int
libxfs_device_alignment(void)
{
- return platform_align_blockdev();
+ return align_blockdev();
}
void