• Jan Kara's avatar
    vfs: Set special lockdep map for dirs only if not set by fs · 9a7aa12f
    Jan Kara authored
    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: default avatarJan Kara <jack@suse.cz>
    Signed-off-by: default avatarJoel Becker <joel.becker@oracle.com>
    9a7aa12f
inode.c 41 KB