lkml.org 
[lkml]   [2012]   [Oct]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 17/22] ncpfs: drop vmtruncate
>  		if (attr->ia_size != i_size_read(inode)) {
> - result = vmtruncate(inode, attr->ia_size);
> + result = inode_newsize_ok(inode, attr->ia_size);
> if (result)
> goto out;
> +
> + truncate_setsize(inode, attr->ia_size);
> mark_inode_dirty(inode);

inode_newsize_ok already is done as part of inode_change_ok earlier on.


\
 
 \ /
  Last update: 2012-10-13 19:01    [W:0.034 / U:0.368 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site