• Amir Goldstein's avatar
    ovl: reorder ovl_want_write() after ovl_inode_lock() · 162d0644
    Amir Goldstein authored
    Make the locking order of ovl_inode_lock() strictly between the two
    vfs stacked layers, i.e.:
    - ovl vfs locks: sb_writers, inode_lock, ...
    - ovl_inode_lock
    - upper vfs locks: sb_writers, inode_lock, ...
    
    To that effect, move ovl_want_write() into the helpers ovl_nlink_start()
    and ovl_copy_up_start which currently take the ovl_inode_lock() after
    ovl_want_write().
    Signed-off-by: default avatarAmir Goldstein <amir73il@gmail.com>
    162d0644
export.c 22.9 KB