From: Sage Weil Date: Tue, 26 Jul 2011 18:26:41 +0000 (-0700) Subject: ceph: only queue capsnap if caps are dirty X-Git-Tag: v3.1-rc1~220^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e77dc3e9c061e50c67e2e1a604d0a370f40db298;p=pandora-kernel.git ceph: only queue capsnap if caps are dirty We used to go into this branch if i_wrbuffer_ref_head was non-zero. This was an ancient check from before we were careful about dealing with all kinds of caps (and not just dirty pages). It is cleaner to only queue a capsnap if there is an actual dirty cap. If we are racing with... something...we will end up here with ci->i_wrbuffer_refs but no dirty caps. Reviewed-by: Yehuda Sadeh Signed-off-by: Sage Weil --- Reading git-diff-tree failed