• J
    vfs: Set special lockdep map for dirs only if not set by fs · 9a7aa12f
    Jan Kara 提交于
    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: NJan Kara <jack@suse.cz>
    Signed-off-by: NJoel Becker <joel.becker@oracle.com>
    9a7aa12f
inode.c 41.0 KB