aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ubifs/tnc_commit.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-05-16 12:53:46 -0400
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-05-16 12:53:46 -0400
commitf70b7e52aa23c9aea5346b9730b402fb55f9079b (patch)
tree20882b6e8345b8836d395248fd7f31fce7d09236 /fs/ubifs/tnc_commit.c
parent1baafd28dc17422f10be9b2a3a75432154e3abc7 (diff)
UBIFS: remove Kconfig debugging option
Have the debugging stuff always compiled-in instead. It simplifies maintanance a lot. Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'fs/ubifs/tnc_commit.c')
-rw-r--r--fs/ubifs/tnc_commit.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/fs/ubifs/tnc_commit.c b/fs/ubifs/tnc_commit.c
index e8cf891185ec..ef5df1e24dca 100644
--- a/fs/ubifs/tnc_commit.c
+++ b/fs/ubifs/tnc_commit.c
@@ -61,11 +61,9 @@ static int make_idx_node(struct ubifs_info *c, struct ubifs_idx_node *idx,
61 } 61 }
62 ubifs_prepare_node(c, idx, len, 0); 62 ubifs_prepare_node(c, idx, len, 0);
63 63
64#ifdef CONFIG_UBIFS_FS_DEBUG
65 znode->lnum = lnum; 64 znode->lnum = lnum;
66 znode->offs = offs; 65 znode->offs = offs;
67 znode->len = len; 66 znode->len = len;
68#endif
69 67
70 err = insert_old_idx_znode(c, znode); 68 err = insert_old_idx_znode(c, znode);
71 69
@@ -456,11 +454,9 @@ static int layout_in_empty_space(struct ubifs_info *c)
456 454
457 offs = buf_offs + used; 455 offs = buf_offs + used;
458 456
459#ifdef CONFIG_UBIFS_FS_DEBUG
460 znode->lnum = lnum; 457 znode->lnum = lnum;
461 znode->offs = offs; 458 znode->offs = offs;
462 znode->len = len; 459 znode->len = len;
463#endif
464 460
465 /* Update the parent */ 461 /* Update the parent */
466 zp = znode->parent; 462 zp = znode->parent;
@@ -536,10 +532,8 @@ static int layout_in_empty_space(struct ubifs_info *c)
536 break; 532 break;
537 } 533 }
538 534
539#ifdef CONFIG_UBIFS_FS_DEBUG
540 c->dbg->new_ihead_lnum = lnum; 535 c->dbg->new_ihead_lnum = lnum;
541 c->dbg->new_ihead_offs = buf_offs; 536 c->dbg->new_ihead_offs = buf_offs;
542#endif
543 537
544 return 0; 538 return 0;
545} 539}
@@ -881,13 +875,11 @@ static int write_index(struct ubifs_info *c)
881 } 875 }
882 offs = buf_offs + used; 876 offs = buf_offs + used;
883 877
884#ifdef CONFIG_UBIFS_FS_DEBUG
885 if (lnum != znode->lnum || offs != znode->offs || 878 if (lnum != znode->lnum || offs != znode->offs ||
886 len != znode->len) { 879 len != znode->len) {
887 ubifs_err("inconsistent znode posn"); 880 ubifs_err("inconsistent znode posn");
888 return -EINVAL; 881 return -EINVAL;
889 } 882 }
890#endif
891 883
892 /* Grab some stuff from znode while we still can */ 884 /* Grab some stuff from znode while we still can */
893 cnext = znode->cnext; 885 cnext = znode->cnext;
@@ -982,13 +974,11 @@ static int write_index(struct ubifs_info *c)
982 break; 974 break;
983 } 975 }
984 976
985#ifdef CONFIG_UBIFS_FS_DEBUG
986 if (lnum != c->dbg->new_ihead_lnum || 977 if (lnum != c->dbg->new_ihead_lnum ||
987 buf_offs != c->dbg->new_ihead_offs) { 978 buf_offs != c->dbg->new_ihead_offs) {
988 ubifs_err("inconsistent ihead"); 979 ubifs_err("inconsistent ihead");
989 return -EINVAL; 980 return -EINVAL;
990 } 981 }
991#endif
992 982
993 c->ihead_lnum = lnum; 983 c->ihead_lnum = lnum;
994 c->ihead_offs = buf_offs; 984 c->ihead_offs = buf_offs;