Skip to content
Commit ab93dbec authored by Chris Mason's avatar Chris Mason
Browse files

Btrfs: take i_mutex before generic_write_checks



btrfs_file_write was incorrectly calling generic_write_checks without
taking i_mutex.  This lead to problems with racing around i_size when
doing O_APPEND writes.

The fix here is to move i_mutex higher.

Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent 35d62a94
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment