[Ocfs2-commits] manish commits r993 - trunk/src
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Wed Jun 2 21:17:58 CDT 2004
Author: manish
Date: 2004-06-02 20:17:56 -0500 (Wed, 02 Jun 2004)
New Revision: 993
Modified:
trunk/src/alloc.c
Log:
Check status for all uses of ocfs_journal_access
Modified: trunk/src/alloc.c
===================================================================
--- trunk/src/alloc.c 2004-06-03 01:05:22 UTC (rev 992)
+++ trunk/src/alloc.c 2004-06-03 01:17:56 UTC (rev 993)
@@ -1194,8 +1194,14 @@
* the length */
if (k >= 0 && OCFS_EXTENT_MERGEABLE (&(extent->extents[k]), actualDiskOffset)) {
OCFS_BH_PUT_DATA(extent_bh);
- ocfs_journal_access(handle, extent_bh,
- OCFS_JOURNAL_ACCESS_WRITE);
+
+ status = ocfs_journal_access(handle, extent_bh,
+ OCFS_JOURNAL_ACCESS_WRITE);
+ if (status < 0) {
+ LOG_ERROR_STATUS (status);
+ goto finally;
+ }
+
extent = OCFS_BH_GET_DATA_WRITE(extent_bh);
extent->extents[k].num_bytes += actualLength;
@@ -1210,8 +1216,14 @@
if (k != OCFS_MAX_DATA_EXTENTS) {
/* we can just add next extent */
OCFS_BH_PUT_DATA(extent_bh);
- ocfs_journal_access(handle, extent_bh,
- OCFS_JOURNAL_ACCESS_WRITE);
+
+ status = ocfs_journal_access(handle, extent_bh,
+ OCFS_JOURNAL_ACCESS_WRITE);
+ if (status < 0) {
+ LOG_ERROR_STATUS (status);
+ goto finally;
+ }
+
extent = OCFS_BH_GET_DATA_WRITE(extent_bh);
extent->extents[k].file_off = FileEntry->alloc_size;
@@ -1288,8 +1300,14 @@
}
OCFS_BH_PUT_DATA(extent_bh);
- ocfs_journal_access(handle, extent_bh,
- OCFS_JOURNAL_ACCESS_WRITE);
+
+ status = ocfs_journal_access(handle, extent_bh,
+ OCFS_JOURNAL_ACCESS_WRITE);
+ if (status < 0) {
+ LOG_ERROR_STATUS (status);
+ goto finally;
+ }
+
extent = OCFS_BH_GET_DATA_WRITE(extent_bh);
extent->next_data_ext = newExtentOff;
More information about the Ocfs2-commits
mailing list