From: David Howells Subject: Re: [PATCH 2/3] FS-Cache: Reduce cookie ref count if submit fails. Date: Wed, 27 Aug 2014 15:31:39 +0100 Message-ID: <32705.1409149899@warthog.procyon.org.uk> References: <53EB992D.6040608@adfin.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: linux-fsdevel@vger.kernel.org, NeilBrown , linux-cachefs@redhat.com, linux-kernel@vger.kernel.org To: Milosz Tanski Return-path: In-Reply-To: <53EB992D.6040608@adfin.com> Content-ID: <32704.1409149899.1@warthog.procyon.org.uk> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-cachefs-bounces@redhat.com Errors-To: linux-cachefs-bounces@redhat.com List-Id: linux-fsdevel.vger.kernel.org Milosz Tanski wrote: > + if (__fscache_unuse_cookie(cookie)) > + __fscache_wake_unused_cookie(cookie); I've replaced these two lines with "fscache_unuse_cookie(cookie);" as NeilBrown suggested. David