]> 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)
commitd7571bcd47003c01148a544bb65c857358d944d1
tree2e8c8c1266bb00d67d241e1b514a905d61d85d4d
parentae01b15ea2bd7ea98787a9e5c65577bc36f00bba
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