diff options
author | Chandan Rajendra <chandan@linux.vnet.ibm.com> | 2016-01-21 13:26:03 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-02-01 21:24:29 +0300 |
commit | 27772b68f6994f0011690899c31717b7cbec51c9 (patch) | |
tree | 51c06f3d06a72082de3e63e6c7c2a9a710d4369b /fs/btrfs/ioctl.c | |
parent | 5a2834f808fd71d056f810b832a5f8869420e3ea (diff) | |
download | linux-27772b68f6994f0011690899c31717b7cbec51c9.tar.xz |
Btrfs: Clean pte corresponding to page straddling i_size
When extending a file by either "truncate up" or by writing beyond i_size, the
page which had i_size needs to be marked "read only" so that future writes to
the page via mmap interface causes btrfs_page_mkwrite() to be invoked. If not,
a write performed after extending the file via the mmap interface will find
the page to be writaeable and continue writing to the page without invoking
btrfs_page_mkwrite() i.e. we end up writing to a file without reserving disk
space.
Signed-off-by: Chandan Rajendra <chandan@linux.vnet.ibm.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ioctl.c')
0 files changed, 0 insertions, 0 deletions