diff options
author | Filipe Manana <fdmanana@suse.com> | 2016-04-29 13:14:42 +0100 |
---|---|---|
committer | Filipe Manana <fdmanana@suse.com> | 2016-05-13 01:59:19 +0100 |
commit | c4aba9545430ed0f842d0833072f990a42da90f0 (patch) | |
tree | 7fcde1ac6f1a1cbeea481f97dbbf79b763b40cfb /mm/swap_cgroup.c | |
parent | 3dc9e8f76720fbbd9c56a11775932733fe13d214 (diff) | |
download | op-kernel-dev-c4aba9545430ed0f842d0833072f990a42da90f0.zip op-kernel-dev-c4aba9545430ed0f842d0833072f990a42da90f0.tar.gz |
Btrfs: pin log earlier when renaming
We were pinning the log right after the first step in the rename operation
(inserting inode ref for the new name in the destination directory)
instead of doing it before. This behaviour was introduced in 2009 for some
reason that was not mentioned neither on the changelog nor any comment,
with the drawback of a small time window where concurrent log writers can
end up logging the new inode reference for the inode we are renaming while
the rename operation is in progress (so that we can end up with a log
containing both the new and old references). As of today there's no reason
to not pin the log before that first step anymore, so just fix this.
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Diffstat (limited to 'mm/swap_cgroup.c')
0 files changed, 0 insertions, 0 deletions