]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: add BUG_ON to avoid unnecessary flow
authorJaegeuk Kim <jaegeuk@kernel.org>
Tue, 29 Mar 2016 23:13:45 +0000 (16:13 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 15 Apr 2016 15:49:47 +0000 (08:49 -0700)
commit12bae2a101dcac7ce365bd704bc3fa5f6cd17fd3
tree2e8c8c1266bb00d67d241e1b514a905d61d85d4d
parent999eb3e405994a07be23665134c44edbf8b9b309
f2fs: add BUG_ON to avoid unnecessary flow

This patch adds BUG_ON instead of retrying loop.
In the case of node pages, we already got this inode page, but unlocked it.
By the fact that we don't truncate any node pages in operations, the page's
mapping should be unchangeable.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/node.c