]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - fs/file_table.c
vfs: fix renameat to retry on ESTALE errors
[mirror_ubuntu-bionic-kernel.git] / fs / file_table.c
index a72bf9ddd0d2b56781bc84b591f45ff4e4627a93..de9e9653d611f57c9a1ae6a0f8c34ed25cd961c0 100644 (file)
@@ -458,8 +458,8 @@ void mark_files_ro(struct super_block *sb)
                spin_unlock(&f->f_lock);
                if (file_check_writeable(f) != 0)
                        continue;
+               __mnt_drop_write(f->f_path.mnt);
                file_release_write(f);
-               mnt_drop_write_file(f);
        } while_file_list_for_each_entry;
        lg_global_unlock(&files_lglock);
 }