diff options
author | Josef Bacik <[email protected]> | 2019-11-19 13:59:20 -0500 |
---|---|---|
committer | David Sterba <[email protected]> | 2019-12-13 14:09:23 +0100 |
commit | 943eb3bf25f4a7b745dd799e031be276aa104d82 (patch) | |
tree | a649d2de74efae956436897461ba66cbf0ed3557 /lib/netdev-notifier-error-inject.c | |
parent | db8fe64f9ce61d1d89d3c3c34d111a43afb9f053 (diff) |
btrfs: don't double lock the subvol_sem for rename exchange
If we're rename exchanging two subvols we'll try to lock this lock
twice, which is bad. Just lock once if either of the ino's are subvols.
Fixes: cdd1fedf8261 ("btrfs: add support for RENAME_EXCHANGE and RENAME_WHITEOUT")
CC: [email protected] # 4.4+
Signed-off-by: Josef Bacik <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions