From: Christoph Hellwig Date: Fri, 1 Oct 2010 03:46:31 +0000 (+0200) Subject: hfsplus: add missing extent locking in hfsplus_write_inode X-Git-Tag: v2.6.37-rc1~222^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fcc99f4f2ddb1c39abc05fbb9b32f05b03c7f8f;p=pandora-kernel.git hfsplus: add missing extent locking in hfsplus_write_inode Most of the extent handling code already does proper SMP locking, but hfsplus_write_inode was calling into hfsplus_ext_write_extent without taking the extents_lock. Fix this by splitting hfsplus_ext_write_extent into an internal helper that expects the lock, and a public interface that first acquires it. Also add a few locking asserts and document the locking rules in hfsplus_fs.h. Signed-off-by: Christoph Hellwig --- Reading git-diff-tree failed