X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=fs%2Fdcache.c;h=a88948b8bd17d8b16c42af20ee55bcf47f358923;hb=7612bd8483bdc8cd723716a7097851819e6b8a72;hp=2347cdb15abbc18b43e7254059aab2b50aeb6962;hpb=60ad4466821a96913a9b567115e194ed1087c2d7;p=mirror_ubuntu-bionic-kernel.git diff --git a/fs/dcache.c b/fs/dcache.c index 2347cdb15abb..a88948b8bd17 100644 --- a/fs/dcache.c +++ b/fs/dcache.c @@ -795,6 +795,7 @@ relock: /** * prune_dcache_sb - shrink the dcache + * @sb: superblock * @nr_to_scan: number of entries to try to free * * Attempt to shrink the superblock dcache LRU by @nr_to_scan entries. This is @@ -1728,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))