Commit 40dbd07
Al Viro
ext4: don't access the source subdirectory content on same-directory rename
We can't really afford locking the source on same-directory rename;
currently vfs_rename() tries to do that, but it will have to be changed.
The logics in ext4 is lazy and goes looking for ".." in source even in
same-directory case. It's not hard to get rid of that, leaving that
behaviour only for cross-directory case; that VFS can get locks safely
(and will keep doing that after the coming changes).
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>1 parent 7307b73 commit 40dbd07
1 file changed
Lines changed: 13 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3591 | 3591 | | |
3592 | 3592 | | |
3593 | 3593 | | |
3594 | | - | |
| 3594 | + | |
3595 | 3595 | | |
3596 | 3596 | | |
3597 | 3597 | | |
| 3598 | + | |
| 3599 | + | |
| 3600 | + | |
| 3601 | + | |
3598 | 3602 | | |
3599 | 3603 | | |
3600 | 3604 | | |
| |||
3612 | 3616 | | |
3613 | 3617 | | |
3614 | 3618 | | |
| 3619 | + | |
| 3620 | + | |
| 3621 | + | |
3615 | 3622 | | |
3616 | 3623 | | |
3617 | 3624 | | |
| |||
3900 | 3907 | | |
3901 | 3908 | | |
3902 | 3909 | | |
3903 | | - | |
| 3910 | + | |
3904 | 3911 | | |
3905 | 3912 | | |
3906 | 3913 | | |
| |||
3964 | 3971 | | |
3965 | 3972 | | |
3966 | 3973 | | |
3967 | | - | |
| 3974 | + | |
3968 | 3975 | | |
3969 | 3976 | | |
3970 | 3977 | | |
| |||
3987 | 3994 | | |
3988 | 3995 | | |
3989 | 3996 | | |
3990 | | - | |
| 3997 | + | |
3991 | 3998 | | |
3992 | 3999 | | |
3993 | 4000 | | |
| |||
4114 | 4121 | | |
4115 | 4122 | | |
4116 | 4123 | | |
4117 | | - | |
4118 | | - | |
| 4124 | + | |
4119 | 4125 | | |
4120 | 4126 | | |
4121 | 4127 | | |
4122 | 4128 | | |
4123 | | - | |
4124 | | - | |
| 4129 | + | |
4125 | 4130 | | |
4126 | 4131 | | |
4127 | 4132 | | |
| |||
0 commit comments