summaryrefslogtreecommitdiffstats
path: root/fs/nfs_common
diff options
context:
space:
mode:
authorDavide Italiano <dccitaliano@gmail.com>2015-04-06 22:09:15 -0700
committerDavid Sterba <dsterba@suse.com>2016-04-04 16:25:28 +0200
commit2a162ce93232eb78124601996744f8eafec845ab (patch)
treeb834d3ea66baeeab145c1c11dd15addf732b567f /fs/nfs_common
parent232cad8413a0bfbd25f11cc19fd13dfd85e1d8ad (diff)
downloadop-kernel-dev-2a162ce93232eb78124601996744f8eafec845ab.zip
op-kernel-dev-2a162ce93232eb78124601996744f8eafec845ab.tar.gz
Btrfs: Improve FL_KEEP_SIZE handling in fallocate
- We call inode_size_ok() only if FL_KEEP_SIZE isn't specified. - As an optimisation we can skip the call if (off + len) isn't greater than the current size of the file. This operation is called under the lock so the less work we do, the better. - If we call inode_size_ok() pass to it the correct value rather than a more conservative estimation. Signed-off-by: Davide Italiano <dccitaliano@gmail.com> Reviewed-by: Liu Bo <bo.li.liu@oracle.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/nfs_common')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud