]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: only queue capsnap if caps are dirty
authorSage Weil <sage@newdream.net>
Tue, 26 Jul 2011 18:26:41 +0000 (11:26 -0700)
committerSage Weil <sage@newdream.net>
Tue, 26 Jul 2011 18:26:41 +0000 (11:26 -0700)
commit41243fbef5de58104d1e512508ccf9948b330f57
tree8ed497994e3e1b9949c3d6907ed901ff502b1f5e
parent48d9b4193d0b04e9d9341c78800235712611dca3
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 <yehuda@hq.newdream.net>
Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/snap.c