mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
UBIFS: add missing ui pointer in debugging code
If UBIFS_DEBUG is defined an additional assertion of the ui_lock spinlock in do_writepage cannot compile because the ui pointer has not been previously declared. Fix this by declaring and initializing the ui pointer in case UBIFS_DEBUG is defined. Signed-off-by: Daniel Golle <[email protected]> Signed-off-by: Artem Bityutskiy <[email protected]>
This commit is contained in:
parent
151d6b21f9
commit
a0fd59511e
1 changed files with 1 additions and 0 deletions
|
|
@ -903,6 +903,7 @@ static int do_writepage(struct page *page, int len)
|
|||
struct ubifs_info *c = inode->i_sb->s_fs_info;
|
||||
|
||||
#ifdef UBIFS_DEBUG
|
||||
struct ubifs_inode *ui = ubifs_inode(inode);
|
||||
spin_lock(&ui->ui_lock);
|
||||
ubifs_assert(page->index <= ui->synced_i_size << PAGE_CACHE_SIZE);
|
||||
spin_unlock(&ui->ui_lock);
|
||||
|
|
|
|||
Loading…
Reference in a new issue