debug.c (b29e2679d0da91c60d3ac190d9c3bd65ac2f68c5) debug.c (7c46d0ae29ba880963db283706950de7aa86c0a0)
1/*
2 * This file is part of UBIFS.
3 *
4 * Copyright (C) 2006-2008 Nokia Corporation
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 2 as published by
8 * the Free Software Foundation.

--- 1146 unchanged lines hidden (view full) ---

1155
1156 mutex_lock(&ui->ui_mutex);
1157 spin_lock(&ui->ui_lock);
1158 if (ui->ui_size != ui->synced_i_size && !ui->dirty) {
1159 ubifs_err("ui_size is %lld, synced_i_size is %lld, but inode "
1160 "is clean", ui->ui_size, ui->synced_i_size);
1161 ubifs_err("i_ino %lu, i_mode %#x, i_size %lld", inode->i_ino,
1162 inode->i_mode, i_size_read(inode));
1/*
2 * This file is part of UBIFS.
3 *
4 * Copyright (C) 2006-2008 Nokia Corporation
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 2 as published by
8 * the Free Software Foundation.

--- 1146 unchanged lines hidden (view full) ---

1155
1156 mutex_lock(&ui->ui_mutex);
1157 spin_lock(&ui->ui_lock);
1158 if (ui->ui_size != ui->synced_i_size && !ui->dirty) {
1159 ubifs_err("ui_size is %lld, synced_i_size is %lld, but inode "
1160 "is clean", ui->ui_size, ui->synced_i_size);
1161 ubifs_err("i_ino %lu, i_mode %#x, i_size %lld", inode->i_ino,
1162 inode->i_mode, i_size_read(inode));
1163 dbg_dump_stack();
1163 dump_stack();
1164 err = -EINVAL;
1165 }
1166 spin_unlock(&ui->ui_lock);
1167 mutex_unlock(&ui->ui_mutex);
1168 return err;
1169}
1170
1171/*

--- 2022 unchanged lines hidden ---
1164 err = -EINVAL;
1165 }
1166 spin_unlock(&ui->ui_lock);
1167 mutex_unlock(&ui->ui_mutex);
1168 return err;
1169}
1170
1171/*

--- 2022 unchanged lines hidden ---