Skip to content

Commit

Permalink
UBIFS: stop re-defining UBI operations
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Artem Bityutskiy authored and Artem Bityutskiy committed Jul 4, 2011
1 parent d3b2578 commit 0a541b1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
2 changes: 0 additions & 2 deletions fs/ubifs/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
* various local functions of those subsystems.
*/

#define UBIFS_DBG_PRESERVE_UBI

#include "ubifs.h"
#include <linux/module.h>
#include <linux/debugfs.h>
Expand Down
7 changes: 0 additions & 7 deletions fs/ubifs/debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -305,13 +305,6 @@ int dbg_check_inode_size(struct ubifs_info *c, const struct inode *inode,
int dbg_check_data_nodes_order(struct ubifs_info *c, struct list_head *head);
int dbg_check_nondata_nodes_order(struct ubifs_info *c, struct list_head *head);

#ifndef UBIFS_DBG_PRESERVE_UBI
#define ubi_leb_write dbg_leb_write
#define ubi_leb_change dbg_leb_change
#define ubi_leb_unmap dbg_leb_unmap
#define ubi_leb_map dbg_leb_map
#endif

int dbg_leb_write(struct ubi_volume_desc *desc, int lnum, const void *buf,
int offs, int len, int dtype);
int dbg_leb_change(struct ubi_volume_desc *desc, int lnum, const void *buf,
Expand Down

0 comments on commit 0a541b1

Please sign in to comment.