diff options
author | Dave Kleikamp <dave.kleikamp@oracle.com> | 2011-06-20 14:00:27 -0400 |
---|---|---|
committer | Dave Kleikamp <dave.kleikamp@oracle.com> | 2011-07-25 12:01:12 -0400 |
commit | 3c2c22628599006047781946b317a16d9ff3883d (patch) | |
tree | e332dc2127efbfaad4a0a51b26b607113909b2aa /fs/jfs/jfs_txnmgr.c | |
parent | b6844e8f64920cdee620157252169ba63afb0c89 (diff) |
jfs: clean up some compiler warnings
jfs has a few variables being set but never used.
Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Diffstat (limited to 'fs/jfs/jfs_txnmgr.c')
-rw-r--r-- | fs/jfs/jfs_txnmgr.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/jfs/jfs_txnmgr.c b/fs/jfs/jfs_txnmgr.c index f6cc0c09ec63..af9606057dde 100644 --- a/fs/jfs/jfs_txnmgr.c +++ b/fs/jfs/jfs_txnmgr.c | |||
@@ -1143,7 +1143,6 @@ int txCommit(tid_t tid, /* transaction identifier */ | |||
1143 | struct jfs_log *log; | 1143 | struct jfs_log *log; |
1144 | struct tblock *tblk; | 1144 | struct tblock *tblk; |
1145 | struct lrd *lrd; | 1145 | struct lrd *lrd; |
1146 | int lsn; | ||
1147 | struct inode *ip; | 1146 | struct inode *ip; |
1148 | struct jfs_inode_info *jfs_ip; | 1147 | struct jfs_inode_info *jfs_ip; |
1149 | int k, n; | 1148 | int k, n; |
@@ -1310,7 +1309,7 @@ int txCommit(tid_t tid, /* transaction identifier */ | |||
1310 | */ | 1309 | */ |
1311 | lrd->type = cpu_to_le16(LOG_COMMIT); | 1310 | lrd->type = cpu_to_le16(LOG_COMMIT); |
1312 | lrd->length = 0; | 1311 | lrd->length = 0; |
1313 | lsn = lmLog(log, tblk, lrd, NULL); | 1312 | lmLog(log, tblk, lrd, NULL); |
1314 | 1313 | ||
1315 | lmGroupCommit(log, tblk); | 1314 | lmGroupCommit(log, tblk); |
1316 | 1315 | ||
@@ -2935,7 +2934,6 @@ int jfs_sync(void *arg) | |||
2935 | { | 2934 | { |
2936 | struct inode *ip; | 2935 | struct inode *ip; |
2937 | struct jfs_inode_info *jfs_ip; | 2936 | struct jfs_inode_info *jfs_ip; |
2938 | int rc; | ||
2939 | tid_t tid; | 2937 | tid_t tid; |
2940 | 2938 | ||
2941 | do { | 2939 | do { |
@@ -2961,7 +2959,7 @@ int jfs_sync(void *arg) | |||
2961 | */ | 2959 | */ |
2962 | TXN_UNLOCK(); | 2960 | TXN_UNLOCK(); |
2963 | tid = txBegin(ip->i_sb, COMMIT_INODE); | 2961 | tid = txBegin(ip->i_sb, COMMIT_INODE); |
2964 | rc = txCommit(tid, 1, &ip, 0); | 2962 | txCommit(tid, 1, &ip, 0); |
2965 | txEnd(tid); | 2963 | txEnd(tid); |
2966 | mutex_unlock(&jfs_ip->commit_mutex); | 2964 | mutex_unlock(&jfs_ip->commit_mutex); |
2967 | 2965 | ||