diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2009-08-27 16:34:19 +0300 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2009-09-10 09:58:11 +0300 |
commit | e3c3efc243462d67ba9fa7f67620dcbc4597bf0a (patch) | |
tree | ae29cf8fade7c9bfac77f7ceff0381e775d80c0d /fs/ubifs/debug.h | |
parent | 8c6866b071cb242584df287dbd342e5815e8407f (diff) | |
download | linux-e3c3efc243462d67ba9fa7f67620dcbc4597bf0a.tar.gz linux-e3c3efc243462d67ba9fa7f67620dcbc4597bf0a.tar.bz2 linux-e3c3efc243462d67ba9fa7f67620dcbc4597bf0a.zip |
UBIFS: add inode size debugging check
Add one more check to UBIFS - a check that makes sure that there
are no data nodes beyond inode size. And few commantaries fixes
along the line.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Reviewed-by: Adrian Hunter <Adrian.Hunter@nokia.com>
Diffstat (limited to 'fs/ubifs/debug.h')
-rw-r--r-- | fs/ubifs/debug.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ubifs/debug.h b/fs/ubifs/debug.h index c1cd73b2e06e..fe2c9274c6a9 100644 --- a/fs/ubifs/debug.h +++ b/fs/ubifs/debug.h @@ -321,6 +321,8 @@ void dbg_check_heap(struct ubifs_info *c, struct ubifs_lpt_heap *heap, int cat, int dbg_check_lprops(struct ubifs_info *c); int dbg_check_lpt_nodes(struct ubifs_info *c, struct ubifs_cnode *cnode, int row, int col); +int dbg_check_inode_size(struct ubifs_info *c, const struct inode *inode, + loff_t size); /* Force the use of in-the-gaps method for testing */ @@ -460,6 +462,7 @@ void dbg_debugfs_exit_fs(struct ubifs_info *c); #define dbg_check_heap(c, heap, cat, add_pos) ({}) #define dbg_check_lprops(c) 0 #define dbg_check_lpt_nodes(c, cnode, row, col) 0 +#define dbg_check_inode_size(c, inode, size) 0 #define dbg_force_in_the_gaps_enabled 0 #define dbg_force_in_the_gaps() 0 #define dbg_failure_mode 0 |