mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
vfs: renumber DCACHE_xyz flags, remove some stale ones
Gcc tends to generate better code with small integers, including the DCACHE_xyz flag tests - so move the common ones to be first in the list. Also just remove the unused DCACHE_INOTIFY_PARENT_WATCHED and DCACHE_AUTOFS_PENDING values, their users no longer exists in the source tree. And add a "unlikely()" to the DCACHE_OP_COMPARE test, since we want the common case to be a nice straight-line fall-through. Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
7cd4767e69
commit
830c0f0edc
2 changed files with 14 additions and 18 deletions
|
|
@ -1729,7 +1729,7 @@ seqretry:
|
|||
*/
|
||||
if (read_seqcount_retry(&dentry->d_seq, *seq))
|
||||
goto seqretry;
|
||||
if (parent->d_flags & DCACHE_OP_COMPARE) {
|
||||
if (unlikely(parent->d_flags & DCACHE_OP_COMPARE)) {
|
||||
if (parent->d_op->d_compare(parent, *inode,
|
||||
dentry, i,
|
||||
tlen, tname, name))
|
||||
|
|
|
|||
Loading…
Reference in a new issue