[Ocfs2-commits] jlbec commits r1617 - trunk/src
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Tue Nov 2 14:22:14 CST 2004
Author: jlbec
Date: 2004-11-02 14:22:12 -0600 (Tue, 02 Nov 2004)
New Revision: 1617
Modified:
trunk/src/aops.c
Log:
o Fix a NULL osb in direct_IO_get_blocks()
Modified: trunk/src/aops.c
===================================================================
--- trunk/src/aops.c 2004-11-02 02:53:33 UTC (rev 1616)
+++ trunk/src/aops.c 2004-11-02 20:22:12 UTC (rev 1617)
@@ -515,6 +515,7 @@
LOG_ERROR_STR("ocfs_direct_IO_get_blocks: inode or bh_result is null");
return -EIO;
}
+ osb = OCFS_SB(inode->i_sb);
blocksize_bits = inode->i_sb->s_blocksize_bits;
/* make sure we're up to date... */
@@ -537,7 +538,7 @@
/* NOTE: create flag is set when we ?may? have to allocate some
blocks for the file. */
if (create &&
- (vbo_max > ocfs2_clusters_to_bytes(osb->sb,
+ (vbo_max > ocfs2_clusters_to_bytes(inode->i_sb,
OCFS_I(inode)->ip_clusters))) {
/* WARNING: How much do we really want to extend the file? */
status = ocfs_extend_file(osb, inode, vbo_max);
More information about the Ocfs2-commits
mailing list