diff options
author | David Howells <dhowells@redhat.com> | 2020-06-13 01:58:51 +0300 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2020-06-15 17:41:02 +0300 |
commit | 1f32ef79897052ef7d3d154610d8d6af95abde83 (patch) | |
tree | fe3ccf578175dc55a56649013676cb78150866b1 /fs/squashfs | |
parent | bb413489288e4e457353bac513fddb6330d245ca (diff) | |
download | linux-1f32ef79897052ef7d3d154610d8d6af95abde83.tar.xz |
afs: afs_write_end() should change i_size under the right lock
Fix afs_write_end() to change i_size under vnode->cb_lock rather than
->wb_lock so that it doesn't race with afs_vnode_commit_status() and
afs_getattr().
The ->wb_lock is only meant to guard access to ->wb_keys which isn't
accessed by that piece of code.
Fixes: 4343d00872e1 ("afs: Get rid of the afs_writeback record")
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'fs/squashfs')
0 files changed, 0 insertions, 0 deletions