From: Sage Weil Date: Tue, 24 Aug 2010 15:44:16 +0000 (-0700) Subject: ceph: maintain i_head_snapc when any caps are dirty, not just for data X-Git-Tag: v2.6.36-rc3~12^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d8cb26d7dcb911f110b7762bd5941e8f009d6c3;p=pandora-kernel.git ceph: maintain i_head_snapc when any caps are dirty, not just for data We used to use i_head_snapc to keep track of which snapc the current epoch of dirty data was dirtied under. It is used by queue_cap_snap to set up the cap_snap. However, since we queue cap snaps for any dirty caps, not just for dirty file data, we need to keep a valid i_head_snapc anytime we have dirty|flushing caps. This fixes a NULL pointer deref in queue_cap_snap when writing back dirty caps without data (e.g., snaptest-authwb.sh). Signed-off-by: Sage Weil --- Reading git-diff-tree failed