Skip to content
Commit f9e83489 authored by Ram Gupta's avatar Ram Gupta Committed by Linus Torvalds
Browse files

fs: Fix to correct the mbcache entries counter



This patch fixes the c_entry_count counter of the mbcache. Currently
it increments the counter first & allocate the cache entry later. In
case of failure to allocate the entry due to insufficient memory this
counter is still left incremented. This patch fixes this anomaly.

Signed-off-by: default avatarRam Gupta <ram.gupta5@gmail.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 2a2da53b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment