From: Yan, Zheng Date: Thu, 6 Nov 2014 07:09:41 +0000 (+0800) Subject: ceph: introduce global empty snap context X-Git-Tag: omap-for-v3.19/fixes-rc1~47^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97c85a828f36bbfffe9d77b977b65a5872b6cad4;p=pandora-kernel.git ceph: introduce global empty snap context Current snaphost code does not properly handle moving inode from one empty snap realm to another empty snap realm. After changing inode's snap realm, some dirty pages' snap context can be not equal to inode's i_head_snap. This can trigger BUG() in ceph_put_wrbuffer_cap_refs() The fix is introduce a global empty snap context for all empty snap realm. This avoids triggering the BUG() for filesystem with no snapshot. Fixes: http://tracker.ceph.com/issues/9928 Signed-off-by: Yan, Zheng Reviewed-by: Ilya Dryomov --- Reading git-diff-tree failed