Skip to content
Commit 162d0644 authored by Amir Goldstein's avatar Amir Goldstein
Browse files

ovl: reorder ovl_want_write() after ovl_inode_lock()



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>
parent d08d3b3c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment