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
nexedi
linux
Commits
4fe33674
Commit
4fe33674
authored
May 26, 2003
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://linux-scsi.bkbits.net/scsi-for-linus-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux
parents
d98d10eb
78e1b029
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
fs/attr.c
fs/attr.c
+10
-3
No files found.
fs/attr.c
View file @
4fe33674
...
...
@@ -68,10 +68,17 @@ int inode_setattr(struct inode * inode, struct iattr * attr)
int
error
=
0
;
if
(
ia_valid
&
ATTR_SIZE
)
{
if
(
attr
->
ia_size
!=
inode
->
i_size
)
if
(
attr
->
ia_size
!=
inode
->
i_size
)
{
error
=
vmtruncate
(
inode
,
attr
->
ia_size
);
if
(
error
||
(
ia_valid
==
ATTR_SIZE
))
goto
out
;
if
(
error
||
(
ia_valid
==
ATTR_SIZE
))
goto
out
;
}
else
{
/*
* We skipped the truncate but must still update
* timestamps
*/
ia_valid
|=
ATTR_MTIME
|
ATTR_CTIME
;
}
}
lock_kernel
();
...
...
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