[GFS2] Remove pointless argument relating to truncate

For some reason a function pointer was being passed through
the truncate code which only ever took one value. This removes
the function pointer and replaces it with a single call to
the function in question.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
This commit is contained in:
Steven Whitehouse
2006-01-24 10:37:06 +00:00
parent 8ca05c60de
commit aa6a85a971
3 changed files with 8 additions and 12 deletions

View File

@@ -994,7 +994,7 @@ static int setattr_size(struct inode *inode, struct iattr *attr)
return error;
}
error = gfs2_truncatei(ip, attr->ia_size, gfs2_truncator_page);
error = gfs2_truncatei(ip, attr->ia_size);
if (error)
return error;