diff options
| author | 2016-01-21 15:56:04 +0530 | |
|---|---|---|
| committer | 2016-02-01 19:24:29 +0100 | |
| commit | 65bfa6580791f8c01fbc9cd8bd73d92aea53723f (patch) | |
| tree | ecb54b0207e6e84cd109b4537a41266d1203cce7 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
| parent | Btrfs: Clean pte corresponding to page straddling i_size (diff) | |
| download | linux-rng-65bfa6580791f8c01fbc9cd8bd73d92aea53723f.tar.xz linux-rng-65bfa6580791f8c01fbc9cd8bd73d92aea53723f.zip | |
Btrfs: btrfs_ioctl_clone: Truncate complete page after performing clone operation
In subpagesize-blocksize scenario, the "destination offset" argument passed to
the btrfs_ioctl_clone() can be aligned to sectorsize but may not be
necessarily aligned to the machine's page size. In such cases,
truncate_inode_pages_range() ends up zeroing out the partial page and future
read operations will return incorrect data. Hence this commit explicitly
rounds down the "destination offset" to the machine's page size.
Signed-off-by: Chandan Rajendra <chandan@linux.vnet.ibm.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions
