ceph: queue_cap_snap should always queue dirty context
authorSage Weil <sage@newdream.net>
Tue, 13 Apr 2010 18:41:22 +0000 (11:41 -0700)
committerSage Weil <sage@newdream.net>
Tue, 13 Apr 2010 19:28:31 +0000 (12:28 -0700)
This simplifies the calling convention, and fixes a bug where we queue a
capsnap with a context other than i_head_snapc (the one that matches the
dirty pages).  The result was a BUG at fs/ceph/caps.c:2178 on writeback
completion when a capsnap matching the writeback snapc could not be found.

Signed-off-by: Sage Weil <sage@newdream.net>

No differences found