Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
143b1a17
Commit
143b1a17
authored
May 22, 2004
by
Nathan Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[XFS] Remove extraneous vmtruncate call, missed in earlier merge.
SGI Modid: xfs-linux:xfs-kern:170858a
parent
25d1280a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
fs/xfs/linux/xfs_iops.c
fs/xfs/linux/xfs_iops.c
+4
-10
No files found.
fs/xfs/linux/xfs_iops.c
View file @
143b1a17
/*
/*
* Copyright (c) 2000-200
3
Silicon Graphics, Inc. All Rights Reserved.
* Copyright (c) 2000-200
4
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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment