[Ocfs2-commits] manish commits r1163 - trunk/src
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Mon Jun 21 17:13:01 CDT 2004
Author: manish
Date: 2004-06-21 16:12:59 -0500 (Mon, 21 Jun 2004)
New Revision: 1163
Modified:
trunk/src/ocfs_compat.h
Log:
Recent 2.4's have sb_set_blocksize
Modified: trunk/src/ocfs_compat.h
===================================================================
--- trunk/src/ocfs_compat.h 2004-06-21 21:09:45 UTC (rev 1162)
+++ trunk/src/ocfs_compat.h 2004-06-21 21:12:59 UTC (rev 1163)
@@ -75,24 +75,19 @@
} while (size > 256);
return bits;
}
-#endif
static inline int sb_set_blocksize(struct super_block *sb, int size)
{
int bits;
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,18)
- if (set_blocksize(sb->s_dev, size) < 0)
- return 0;
-#else
set_blocksize(sb->s_dev, size);
-#endif
sb->s_blocksize = size;
for (bits = 9, size >>= 9; size >>= 1; bits++)
;
sb->s_blocksize_bits = bits;
return sb->s_blocksize;
}
+#endif
typedef long sector_t;
More information about the Ocfs2-commits
mailing list