aboutsummaryrefslogtreecommitdiffstats
path: root/etc/init.d
diff options
context:
space:
mode:
authorPrasad Joshi <[email protected]>2011-06-25 15:06:37 +0100
committerBrian Behlendorf <[email protected]>2011-06-27 09:59:52 -0700
commit218b8eafbdcb9bc19fc5a252fdd411fde11bca48 (patch)
tree932881ad78d84aaf61c34144867dbba378817e9e /etc/init.d
parentb312979252c5b566d2f59febcda67f309637e18c (diff)
Use truncate_setsize in zfs_setattr
According to Linux kernel commit 2c27c65e, using truncate_setsize in setattr simplifies the code. Therefore, the patch replaces the call to vmtruncate() with truncate_setsize(). zfs_setattr uses zfs_freesp to free the disk space belonging to the file. As truncate_setsize may release the page cache and flushing the dirty data to disk, it must be called before the zfs_freesp. Suggested-by: Brian Behlendorf <[email protected]> Signed-off-by: Prasad Joshi <[email protected]> Closes #255
Diffstat (limited to 'etc/init.d')
0 files changed, 0 insertions, 0 deletions