aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ubifs/debug.h
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/debug.h
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/debug.h')
-rw-r--r--fs/ubifs/debug.h31
1 files changed, 15 insertions, 16 deletions
diff --git a/fs/ubifs/debug.h b/fs/ubifs/debug.h
index b5bc09deeb32..0ab3757ef0e3 100644
--- a/fs/ubifs/debug.h
+++ b/fs/ubifs/debug.h
@@ -305,12 +305,12 @@ int dbg_check_inode_size(struct ubifs_info *c, const struct inode *inode,
305int dbg_check_data_nodes_order(struct ubifs_info *c, struct list_head *head); 305int dbg_check_data_nodes_order(struct ubifs_info *c, struct list_head *head);
306int dbg_check_nondata_nodes_order(struct ubifs_info *c, struct list_head *head); 306int dbg_check_nondata_nodes_order(struct ubifs_info *c, struct list_head *head);
307 307
308int dbg_leb_write(struct ubi_volume_desc *desc, int lnum, const void *buf, 308int dbg_leb_write(struct ubifs_info *c, int lnum, const void *buf, int offs,
309 int offs, int len, int dtype); 309 int len, int dtype);
310int dbg_leb_change(struct ubi_volume_desc *desc, int lnum, const void *buf, 310int dbg_leb_change(struct ubifs_info *c, int lnum, const void *buf, int len,
311 int len, int dtype); 311 int dtype);
312int dbg_leb_unmap(struct ubi_volume_desc *desc, int lnum); 312int dbg_leb_unmap(struct ubifs_info *c, int lnum);
313int dbg_leb_map(struct ubi_volume_desc *desc, int lnum, int dtype); 313int dbg_leb_map(struct ubifs_info *c, int lnum, int dtype);
314 314
315/* Debugfs-related stuff */ 315/* Debugfs-related stuff */
316int dbg_debugfs_init(void); 316int dbg_debugfs_init(void);
@@ -442,16 +442,15 @@ static inline int
442dbg_check_nondata_nodes_order(struct ubifs_info *c, 442dbg_check_nondata_nodes_order(struct ubifs_info *c,
443 struct list_head *head) { return 0; } 443 struct list_head *head) { return 0; }
444 444
445static inline int dbg_leb_write(struct ubi_volume_desc *desc, 445static inline int dbg_leb_write(struct ubifs_info *c, int lnum,
446 int lnum, const void *buf, 446 const void *buf, int offset,
447 int offset, int len, int dtype) { return 0; } 447 int len, int dtype) { return 0; }
448static inline int dbg_leb_change(struct ubi_volume_desc *desc, 448static inline int dbg_leb_change(struct ubifs_info *c, int lnum,
449 int lnum, const void *buf, 449 const void *buf, int len,
450 int len, int dtype) { return 0; } 450 int dtype) { return 0; }
451static inline int dbg_leb_unmap(struct ubi_volume_desc *desc, 451static inline int dbg_leb_unmap(struct ubifs_info *c, int lnum) { return 0; }
452 int lnum) { return 0; } 452static inline int dbg_leb_map(struct ubifs_info *c, int lnum,
453static inline int dbg_leb_map(struct ubi_volume_desc *desc, 453 int dtype) { return 0; }
454 int lnum, int dtype) { return 0; }
455 454
456static inline int dbg_is_chk_gen(const struct ubifs_info *c) { return 0; } 455static inline int dbg_is_chk_gen(const struct ubifs_info *c) { return 0; }
457static inline int dbg_is_chk_index(const struct ubifs_info *c) { return 0; } 456static inline int dbg_is_chk_index(const struct ubifs_info *c) { return 0; }