[Ocfs2-commits] mfasheh commits r2589 -
branches/readonly-operation/fs/ocfs2
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Fri Sep 16 19:08:30 CDT 2005
Author: mfasheh
Date: 2005-09-16 19:08:28 -0500 (Fri, 16 Sep 2005)
New Revision: 2589
Modified:
branches/readonly-operation/fs/ocfs2/alloc.c
branches/readonly-operation/fs/ocfs2/dir.c
branches/readonly-operation/fs/ocfs2/file.c
branches/readonly-operation/fs/ocfs2/inode.c
branches/readonly-operation/fs/ocfs2/journal.c
branches/readonly-operation/fs/ocfs2/localalloc.c
branches/readonly-operation/fs/ocfs2/namei.c
branches/readonly-operation/fs/ocfs2/suballoc.c
Log:
* remove unecessary casts
Modified: branches/readonly-operation/fs/ocfs2/alloc.c
===================================================================
--- branches/readonly-operation/fs/ocfs2/alloc.c 2005-09-16 23:54:51 UTC (rev 2588)
+++ branches/readonly-operation/fs/ocfs2/alloc.c 2005-09-17 00:08:28 UTC (rev 2589)
@@ -1164,7 +1164,7 @@
handle = ocfs2_start_trans(osb, handle, OCFS2_TRUNCATE_LOG_UPDATE);
if (IS_ERR(handle)) {
- status = (int) PTR_ERR(handle);
+ status = PTR_ERR(handle);
handle = NULL;
mlog_errno(status);
goto bail;
@@ -1374,7 +1374,7 @@
handle = ocfs2_start_trans(osb, NULL,
OCFS2_TRUNCATE_LOG_UPDATE);
if (IS_ERR(handle)) {
- status = (int) PTR_ERR(handle);
+ status = PTR_ERR(handle);
mlog_errno(status);
goto bail_up;
}
@@ -1858,7 +1858,7 @@
fe, el);
handle = ocfs2_start_trans(osb, NULL, credits);
if (IS_ERR(handle)) {
- status = (int) PTR_ERR(handle);
+ status = PTR_ERR(handle);
handle = NULL;
mlog_errno(status);
goto bail;
Modified: branches/readonly-operation/fs/ocfs2/dir.c
===================================================================
--- branches/readonly-operation/fs/ocfs2/dir.c 2005-09-16 23:54:51 UTC (rev 2588)
+++ branches/readonly-operation/fs/ocfs2/dir.c 2005-09-17 00:08:28 UTC (rev 2589)
@@ -452,7 +452,7 @@
handle = ocfs2_start_trans(osb, handle, credits);
if (IS_ERR(handle)) {
- status = (int) PTR_ERR(handle);
+ status = PTR_ERR(handle);
handle = NULL;
mlog_errno(status);
goto bail;
Modified: branches/readonly-operation/fs/ocfs2/file.c
===================================================================
--- branches/readonly-operation/fs/ocfs2/file.c 2005-09-16 23:54:51 UTC (rev 2588)
+++ branches/readonly-operation/fs/ocfs2/file.c 2005-09-17 00:08:28 UTC (rev 2589)
@@ -443,7 +443,7 @@
handle = ocfs2_start_trans(osb, NULL, OCFS2_INODE_UPDATE_CREDITS);
if (IS_ERR(handle)) {
- status = (int) PTR_ERR(handle);
+ status = PTR_ERR(handle);
mlog_errno(status);
goto out;
}
@@ -521,7 +521,7 @@
handle = ocfs2_start_trans(osb, NULL,
OCFS2_INODE_UPDATE_CREDITS);
if (IS_ERR(handle)) {
- status = (int) PTR_ERR(handle);
+ status = PTR_ERR(handle);
handle = NULL;
mlog_errno(status);
goto bail;
@@ -839,7 +839,7 @@
credits = ocfs2_calc_extend_credits(osb->sb, fe, clusters_to_add);
handle = ocfs2_start_trans(osb, handle, credits);
if (IS_ERR(handle)) {
- status = (int) PTR_ERR(handle);
+ status = PTR_ERR(handle);
handle = NULL;
mlog_errno(status);
goto leave;
@@ -1075,7 +1075,7 @@
handle = ocfs2_start_trans(osb, NULL, OCFS2_INODE_UPDATE_CREDITS);
if (IS_ERR(handle)) {
- status = (int) PTR_ERR(handle);
+ status = PTR_ERR(handle);
mlog_errno(status);
goto bail;
}
Modified: branches/readonly-operation/fs/ocfs2/inode.c
===================================================================
--- branches/readonly-operation/fs/ocfs2/inode.c 2005-09-16 23:54:51 UTC (rev 2588)
+++ branches/readonly-operation/fs/ocfs2/inode.c 2005-09-17 00:08:28 UTC (rev 2589)
@@ -429,7 +429,7 @@
handle = ocfs2_start_trans(osb, handle, OCFS2_INODE_UPDATE_CREDITS);
if (IS_ERR(handle)) {
- status = (int) PTR_ERR(handle);
+ status = PTR_ERR(handle);
handle = NULL;
mlog_errno(status);
goto bail;
@@ -497,7 +497,7 @@
handle = ocfs2_start_trans(osb, NULL, OCFS2_DELETE_INODE_CREDITS);
if (IS_ERR(handle)) {
- status = (int) PTR_ERR(handle);
+ status = PTR_ERR(handle);
mlog_errno(status);
goto bail_unlock;
}
Modified: branches/readonly-operation/fs/ocfs2/journal.c
===================================================================
--- branches/readonly-operation/fs/ocfs2/journal.c 2005-09-16 23:54:51 UTC (rev 2588)
+++ branches/readonly-operation/fs/ocfs2/journal.c 2005-09-17 00:08:28 UTC (rev 2589)
@@ -183,7 +183,7 @@
if (IS_ERR(handle->k_handle)) {
up_read(&osb->journal->j_trans_barrier);
- ret = (int)PTR_ERR(handle->k_handle);
+ ret = PTR_ERR(handle->k_handle);
handle->k_handle = NULL;
mlog_errno(ret);
Modified: branches/readonly-operation/fs/ocfs2/localalloc.c
===================================================================
--- branches/readonly-operation/fs/ocfs2/localalloc.c 2005-09-16 23:54:51 UTC (rev 2588)
+++ branches/readonly-operation/fs/ocfs2/localalloc.c 2005-09-17 00:08:28 UTC (rev 2589)
@@ -416,7 +416,7 @@
handle = ocfs2_start_trans(osb, handle, OCFS2_WINDOW_MOVE_CREDITS);
if (IS_ERR(handle)) {
- status = (int) PTR_ERR(handle);
+ status = PTR_ERR(handle);
handle = NULL;
mlog_errno(status);
goto bail;
@@ -907,7 +907,7 @@
handle = ocfs2_start_trans(osb, handle, OCFS2_WINDOW_MOVE_CREDITS);
if (IS_ERR(handle)) {
- status = (int) PTR_ERR(handle);
+ status = PTR_ERR(handle);
handle = NULL;
mlog_errno(status);
goto bail;
Modified: branches/readonly-operation/fs/ocfs2/namei.c
===================================================================
--- branches/readonly-operation/fs/ocfs2/namei.c 2005-09-16 23:54:51 UTC (rev 2588)
+++ branches/readonly-operation/fs/ocfs2/namei.c 2005-09-17 00:08:28 UTC (rev 2589)
@@ -370,7 +370,7 @@
handle = ocfs2_start_trans(osb, handle, OCFS2_MKNOD_CREDITS);
if (IS_ERR(handle)) {
- status = (int) PTR_ERR(handle);
+ status = PTR_ERR(handle);
handle = NULL;
mlog_errno(status);
goto leave;
@@ -685,7 +685,7 @@
handle = ocfs2_start_trans(osb, handle, OCFS2_LINK_CREDITS);
if (IS_ERR(handle)) {
- err = (int) PTR_ERR(handle);
+ err = PTR_ERR(handle);
handle = NULL;
mlog_errno(err);
goto bail;
@@ -850,7 +850,7 @@
handle = ocfs2_start_trans(osb, handle, OCFS2_UNLINK_CREDITS);
if (IS_ERR(handle)) {
- status = (int) PTR_ERR(handle);
+ status = PTR_ERR(handle);
handle = NULL;
mlog_errno(status);
goto leave;
@@ -1248,7 +1248,7 @@
handle = ocfs2_start_trans(osb, handle, OCFS2_RENAME_CREDITS);
if (IS_ERR(handle)) {
- status = (int) PTR_ERR(handle);
+ status = PTR_ERR(handle);
handle = NULL;
mlog_errno(status);
goto bail;
@@ -1606,7 +1606,7 @@
handle = ocfs2_start_trans(osb, handle, credits);
if (IS_ERR(handle)) {
- status = (int) PTR_ERR(handle);
+ status = PTR_ERR(handle);
handle = NULL;
mlog_errno(status);
goto bail;
Modified: branches/readonly-operation/fs/ocfs2/suballoc.c
===================================================================
--- branches/readonly-operation/fs/ocfs2/suballoc.c 2005-09-16 23:54:51 UTC (rev 2588)
+++ branches/readonly-operation/fs/ocfs2/suballoc.c 2005-09-17 00:08:28 UTC (rev 2589)
@@ -258,7 +258,7 @@
le16_to_cpu(cl->cl_cpg));
handle = ocfs2_start_trans(osb, handle, credits);
if (IS_ERR(handle)) {
- status = (int) PTR_ERR(handle);
+ status = PTR_ERR(handle);
handle = NULL;
mlog_errno(status);
goto bail;
More information about the Ocfs2-commits
mailing list