aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ubifs/io.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-06-03 07:51:41 -0400
committerArtem Bityutskiy <dedekind1@gmail.com>2011-07-04 03:54:33 -0400
commitf57cb188ccd9c0242111d99b7283eda7827746c4 (patch)
tree687b8b3f6e91594461f663ebd6568b9a534d8e32 /fs/ubifs/io.c
parent0a541b14e819f972d14f29d17cb9fd8b4b71222e (diff)
UBIFS: remove custom list of superblocks
This is a clean-up of the power-cut emulation code - remove the custom list of superblocks which we maintained to find the superblock by the UBI volume descriptor. We do not need that crud any longer, because now we can get the superblock as a function argument. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'fs/ubifs/io.c')
-rw-r--r--fs/ubifs/io.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/ubifs/io.c b/fs/ubifs/io.c
index a0c5fb4b6fa..9228950a658 100644
--- a/fs/ubifs/io.c
+++ b/fs/ubifs/io.c
@@ -125,7 +125,7 @@ int ubifs_leb_write(struct ubifs_info *c, int lnum, const void *buf, int offs,
125 if (!dbg_is_tst_rcvry(c)) 125 if (!dbg_is_tst_rcvry(c))
126 err = ubi_leb_write(c->ubi, lnum, buf, offs, len, dtype); 126 err = ubi_leb_write(c->ubi, lnum, buf, offs, len, dtype);
127 else 127 else
128 err = dbg_leb_write(c->ubi, lnum, buf, offs, len, dtype); 128 err = dbg_leb_write(c, lnum, buf, offs, len, dtype);
129 if (err) { 129 if (err) {
130 ubifs_err("writing %d bytes to LEB %d:%d failed, error %d", 130 ubifs_err("writing %d bytes to LEB %d:%d failed, error %d",
131 len, lnum, offs, err); 131 len, lnum, offs, err);
@@ -146,7 +146,7 @@ int ubifs_leb_change(struct ubifs_info *c, int lnum, const void *buf, int len,
146 if (!dbg_is_tst_rcvry(c)) 146 if (!dbg_is_tst_rcvry(c))
147 err = ubi_leb_change(c->ubi, lnum, buf, len, dtype); 147 err = ubi_leb_change(c->ubi, lnum, buf, len, dtype);
148 else 148 else
149 err = dbg_leb_change(c->ubi, lnum, buf, len, dtype); 149 err = dbg_leb_change(c, lnum, buf, len, dtype);
150 if (err) { 150 if (err) {
151 ubifs_err("changing %d bytes in LEB %d failed, error %d", 151 ubifs_err("changing %d bytes in LEB %d failed, error %d",
152 len, lnum, err); 152 len, lnum, err);
@@ -166,7 +166,7 @@ int ubifs_leb_unmap(struct ubifs_info *c, int lnum)
166 if (!dbg_is_tst_rcvry(c)) 166 if (!dbg_is_tst_rcvry(c))
167 err = ubi_leb_unmap(c->ubi, lnum); 167 err = ubi_leb_unmap(c->ubi, lnum);
168 else 168 else
169 err = dbg_leb_unmap(c->ubi, lnum); 169 err = dbg_leb_unmap(c, lnum);
170 if (err) { 170 if (err) {
171 ubifs_err("unmap LEB %d failed, error %d", lnum, err); 171 ubifs_err("unmap LEB %d failed, error %d", lnum, err);
172 ubifs_ro_mode(c, err); 172 ubifs_ro_mode(c, err);
@@ -185,7 +185,7 @@ int ubifs_leb_map(struct ubifs_info *c, int lnum, int dtype)
185 if (!dbg_is_tst_rcvry(c)) 185 if (!dbg_is_tst_rcvry(c))
186 err = ubi_leb_map(c->ubi, lnum, dtype); 186 err = ubi_leb_map(c->ubi, lnum, dtype);
187 else 187 else
188 err = dbg_leb_map(c->ubi, lnum, dtype); 188 err = dbg_leb_map(c, lnum, dtype);
189 if (err) { 189 if (err) {
190 ubifs_err("mapping LEB %d failed, error %d", lnum, err); 190 ubifs_err("mapping LEB %d failed, error %d", lnum, err);
191 ubifs_ro_mode(c, err); 191 ubifs_ro_mode(c, err);