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
acd1293e
Commit
acd1293e
authored
Jun 13, 2002
by
Hugh Dickins
Committed by
Linus Torvalds
Jun 13, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] tmpfs 3/5 mknod times
shmem_mknod should not update directory times if it cannot get an inode.
parent
467a0077
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mm/shmem.c
mm/shmem.c
+1
-1
No files found.
mm/shmem.c
View file @
acd1293e
...
@@ -1036,8 +1036,8 @@ static int shmem_mknod(struct inode *dir, struct dentry *dentry, int mode, int d
...
@@ -1036,8 +1036,8 @@ static int shmem_mknod(struct inode *dir, struct dentry *dentry, int mode, int d
struct
inode
*
inode
=
shmem_get_inode
(
dir
->
i_sb
,
mode
,
dev
);
struct
inode
*
inode
=
shmem_get_inode
(
dir
->
i_sb
,
mode
,
dev
);
int
error
=
-
ENOSPC
;
int
error
=
-
ENOSPC
;
dir
->
i_ctime
=
dir
->
i_mtime
=
CURRENT_TIME
;
if
(
inode
)
{
if
(
inode
)
{
dir
->
i_ctime
=
dir
->
i_mtime
=
CURRENT_TIME
;
d_instantiate
(
dentry
,
inode
);
d_instantiate
(
dentry
,
inode
);
dget
(
dentry
);
/* Extra count - pin the dentry in core */
dget
(
dentry
);
/* Extra count - pin the dentry in core */
error
=
0
;
error
=
0
;
...
...
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