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/super.c | |
parent | 8c6866b071cb242584df287dbd342e5815e8407f (diff) |
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/super.c')
-rw-r--r-- | fs/ubifs/super.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c index b541bd75bd1..7e2b3d4d487 100644 --- a/fs/ubifs/super.c +++ b/fs/ubifs/super.c @@ -317,6 +317,8 @@ static int ubifs_write_inode(struct inode *inode, int wait) if (err) ubifs_err("can't write inode %lu, error %d", inode->i_ino, err); + else + err = dbg_check_inode_size(c, inode, ui->ui_size); } ui->dirty = 0; |