]> git.karo-electronics.de Git - linux-beck.git/commit
UBIFS: call dbg_is_power_cut() instead of reading c->dbg->pc_happened
authorshengyong <shengyong1@huawei.com>
Wed, 23 Sep 2015 09:11:39 +0000 (09:11 +0000)
committerRichard Weinberger <richard@nod.at>
Sat, 3 Oct 2015 18:40:21 +0000 (20:40 +0200)
commit8f6983abe31f37d953197c3ede14b1d1321affee
tree8842fa91979790d7688c88cfeb10b0d7fe7a53f4
parentf9a113d65fa56d8e8e662e37ec2fbeac0d52aa01
UBIFS: call dbg_is_power_cut() instead of reading c->dbg->pc_happened

Call dbg_is_power_cut() to emulate power cut instead of reading
c->dbg->pc_happened. Otherwise, the function becomes dead code.

Signed-off-by: Sheng Yong <shengyong1@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/debug.c