From: Jan Kara Date: Thu, 4 Jun 2009 13:26:49 +0000 (+0200) Subject: vfs: Set special lockdep map for dirs only if not set by fs X-Git-Tag: v2.6.31-rc1~23^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a7aa12f3911853a3574d47d567b81a2a5df7208;p=pandora-kernel.git vfs: Set special lockdep map for dirs only if not set by fs Some filesystems need to set lockdep map for i_mutex differently for different directories. For example OCFS2 has system directories (for orphan inode tracking and for gathering all system files like journal or quota files into a single place) which have different locking locking rules than standard directories. For a filesystem setting lockdep map is naturaly done when the inode is read but we have to modify unlock_new_inode() not to overwrite the lockdep map the filesystem has set. Acked-by: peterz@infradead.org CC: mingo@redhat.com Signed-off-by: Jan Kara Signed-off-by: Joel Becker --- Reading git-diff-tree failed