git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d1ebbc
)
ufs_trunc_branch(): massage towards killing recursion
author
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 18 Jun 2015 21:23:34 +0000
(17:23 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Mon, 6 Jul 2015 21:39:46 +0000
(17:39 -0400)
We always have 0 < depth2 <= depth in there, so
if (--depth) {
if (--depth2)
A
B
} else {
C // not using depth2
}
D // not using depth2
is equivalent to
if (--depth2)
A with s/depth/depth - 1/
if (--depth)
B
else
C
D
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ufs/inode.c
patch
|
blob
|
history
diff --cc
fs/ufs/inode.c
Simple merge