OSDN Git Service

gfs2: Fix mmap locking for write faults
authorAndreas Gruenbacher <agruenba@redhat.com>
Sat, 15 May 2021 15:27:14 +0000 (17:27 +0200)
committerAndreas Gruenbacher <agruenba@redhat.com>
Fri, 21 May 2021 03:16:38 +0000 (05:16 +0200)
commitb7f55d928e75557295c1ac280c291b738905b6fb
treee4bdc7866e6d0e3f9868a1d08edcecf14b179412
parentf5456b5d67cf812fd31fe3e130ca216b2e0908e5
gfs2: Fix mmap locking for write faults

When a write fault occurs, we need to take the inode glock of the underlying
inode in exclusive mode.  Otherwise, there's no guarantee that the dirty page
will be written back to disk.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/file.c