Commit 143b1a17 authored by Nathan Scott's avatar Nathan Scott

[XFS] Remove extraneous vmtruncate call, missed in earlier merge.

SGI Modid: xfs-linux:xfs-kern:170858a
parent 25d1280a
/* /*
* Copyright (c) 2000-2003 Silicon Graphics, Inc. All Rights Reserved. * Copyright (c) 2000-2004 Silicon Graphics, Inc. All Rights Reserved.
* *
* This program is free software; you can redistribute it and/or modify it * This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as * under the terms of version 2 of the GNU General Public License as
...@@ -535,7 +535,7 @@ linvfs_setattr( ...@@ -535,7 +535,7 @@ linvfs_setattr(
} }
if (ia_valid & (ATTR_MTIME_SET | ATTR_ATIME_SET)) if (ia_valid & (ATTR_MTIME_SET | ATTR_ATIME_SET))
flags = ATTR_UTIME; flags |= ATTR_UTIME;
#ifdef ATTR_NO_BLOCK #ifdef ATTR_NO_BLOCK
if ((ia_valid & ATTR_NO_BLOCK)) if ((ia_valid & ATTR_NO_BLOCK))
flags |= ATTR_NONBLOCK; flags |= ATTR_NONBLOCK;
...@@ -543,14 +543,8 @@ linvfs_setattr( ...@@ -543,14 +543,8 @@ linvfs_setattr(
VOP_SETATTR(vp, &vattr, flags, NULL, error); VOP_SETATTR(vp, &vattr, flags, NULL, error);
if (error) if (error)
return(-error); /* Positive error up from XFS */ return -error;
if (ia_valid & ATTR_SIZE) {
error = vmtruncate(inode, attr->ia_size);
}
if (!error) {
vn_revalidate(vp); vn_revalidate(vp);
}
return error; return error;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment