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
27f7db2c
Commit
27f7db2c
authored
Apr 04, 2002
by
Linus Torvalds
Committed by
Linus Torvalds
Apr 04, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up do_truncate due notify_change() locking change
parent
fe2bd67c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
fs/open.c
fs/open.c
+1
-4
No files found.
fs/open.c
View file @
27f7db2c
...
...
@@ -73,8 +73,6 @@ asmlinkage long sys_fstatfs(unsigned int fd, struct statfs * buf)
int
do_truncate
(
struct
dentry
*
dentry
,
loff_t
length
)
{
struct
inode
*
inode
=
dentry
->
d_inode
;
int
error
;
struct
iattr
newattrs
;
/* Not pretty: "inode->i_size" shouldn't really be signed. But it is. */
...
...
@@ -83,8 +81,7 @@ int do_truncate(struct dentry *dentry, loff_t length)
newattrs
.
ia_size
=
length
;
newattrs
.
ia_valid
=
ATTR_SIZE
|
ATTR_CTIME
;
error
=
notify_change
(
dentry
,
&
newattrs
);
return
error
;
return
notify_change
(
dentry
,
&
newattrs
);
}
static
inline
long
do_sys_truncate
(
const
char
*
path
,
loff_t
length
)
...
...
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