From: Jeff Layton Date: Fri, 16 Jan 2015 20:05:55 +0000 (-0500) Subject: ceph: move spinlocking into ceph_encode_locks_to_buffer and ceph_count_locks X-Git-Tag: fixes-v4.0-rc1~159^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c362781cadd37858c3d8f5d18b1e9957d4671298;p=pandora-kernel.git ceph: move spinlocking into ceph_encode_locks_to_buffer and ceph_count_locks There is only a single call site for each of these functions, and the caller takes the i_lock prior to calling them and drops it just afterward. Move the spinlocking into the functions instead. Signed-off-by: Jeff Layton Acked-by: Christoph Hellwig --- Reading git-diff-tree failed