diff options
author | 2011-07-26 11:26:41 -0700 | |
---|---|---|
committer | 2011-07-26 11:26:41 -0700 | |
commit | e77dc3e9c061e50c67e2e1a604d0a370f40db298 (patch) | |
tree | 8ed497994e3e1b9949c3d6907ed901ff502b1f5e /include/linux/ceph | |
parent | ceph: fix snap writeback when racing with writes (diff) | |
download | linux-dev-e77dc3e9c061e50c67e2e1a604d0a370f40db298.tar.xz linux-dev-e77dc3e9c061e50c67e2e1a604d0a370f40db298.zip |
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>
Diffstat (limited to 'include/linux/ceph')
0 files changed, 0 insertions, 0 deletions