aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ubifs
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-06-03 07:38:50 -0400
committerArtem Bityutskiy <dedekind1@gmail.com>2011-07-04 03:54:33 -0400
commit0a541b14e819f972d14f29d17cb9fd8b4b71222e (patch)
treeb996e3d7aeb4d05e398b805792e8d16c840edbf1 /fs/ubifs
parentd3b2578f56e0a77b9e261d83e9b5a0a666b82980 (diff)
UBIFS: stop re-defining UBI operations
Now when we use UBIFS helpers for all the I/O, we can remove the horrible hack of re-defining UBI I/O functions. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'fs/ubifs')
-rw-r--r--fs/ubifs/debug.c2
-rw-r--r--fs/ubifs/debug.h7
2 files changed, 0 insertions, 9 deletions
diff --git a/fs/ubifs/debug.c b/fs/ubifs/debug.c
index 059c586b5ef8..3a7344124f30 100644
--- a/fs/ubifs/debug.c
+++ b/fs/ubifs/debug.c
@@ -27,8 +27,6 @@
27 * various local functions of those subsystems. 27 * various local functions of those subsystems.
28 */ 28 */
29 29
30#define UBIFS_DBG_PRESERVE_UBI
31
32#include "ubifs.h" 30#include "ubifs.h"
33#include <linux/module.h> 31#include <linux/module.h>
34#include <linux/debugfs.h> 32#include <linux/debugfs.h>
diff --git a/fs/ubifs/debug.h b/fs/ubifs/debug.h
index b0b005b97279..b5bc09deeb32 100644
--- a/fs/ubifs/debug.h
+++ b/fs/ubifs/debug.h
@@ -305,13 +305,6 @@ 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
308#ifndef UBIFS_DBG_PRESERVE_UBI
309#define ubi_leb_write dbg_leb_write
310#define ubi_leb_change dbg_leb_change
311#define ubi_leb_unmap dbg_leb_unmap
312#define ubi_leb_map dbg_leb_map
313#endif
314
315int dbg_leb_write(struct ubi_volume_desc *desc, int lnum, const void *buf, 308int dbg_leb_write(struct ubi_volume_desc *desc, int lnum, const void *buf,
316 int offs, int len, int dtype); 309 int offs, int len, int dtype);
317int dbg_leb_change(struct ubi_volume_desc *desc, int lnum, const void *buf, 310int dbg_leb_change(struct ubi_volume_desc *desc, int lnum, const void *buf,