Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
bb3d55e2
Commit
bb3d55e2
authored
Oct 10, 2008
by
Benjamin Herrenschmidt
Browse files
Options
Browse Files
Download
Plain Diff
Merge commit 'jk/jk-merge'
parents
8f64e1f2
6747c2ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
arch/powerpc/platforms/cell/spufs/inode.c
arch/powerpc/platforms/cell/spufs/inode.c
+7
-4
No files found.
arch/powerpc/platforms/cell/spufs/inode.c
View file @
bb3d55e2
...
...
@@ -298,8 +298,8 @@ spufs_mkdir(struct inode *dir, struct dentry *dentry, unsigned int flags,
d_instantiate
(
dentry
,
inode
);
dget
(
dentry
);
dir
->
i_nlink
++
;
dentry
->
d_inode
->
i_nlink
++
;
inc_nlink
(
dir
)
;
inc_nlink
(
dentry
->
d_inode
)
;
goto
out
;
out_free_ctx:
...
...
@@ -496,6 +496,8 @@ spufs_create_context(struct inode *inode, struct dentry *dentry,
ret
=
spufs_context_open
(
dget
(
dentry
),
mntget
(
mnt
));
if
(
ret
<
0
)
{
WARN_ON
(
spufs_rmdir
(
inode
,
dentry
));
if
(
affinity
)
mutex_unlock
(
&
gang
->
aff_mutex
);
mutex_unlock
(
&
inode
->
i_mutex
);
spu_forget
(
SPUFS_I
(
dentry
->
d_inode
)
->
i_ctx
);
goto
out
;
...
...
@@ -538,8 +540,8 @@ spufs_mkgang(struct inode *dir, struct dentry *dentry, int mode)
inode
->
i_fop
=
&
simple_dir_operations
;
d_instantiate
(
dentry
,
inode
);
dir
->
i_nlink
++
;
dentry
->
d_inode
->
i_nlink
++
;
inc_nlink
(
dir
)
;
inc_nlink
(
dentry
->
d_inode
)
;
return
ret
;
out_iput:
...
...
@@ -755,6 +757,7 @@ spufs_create_root(struct super_block *sb, void *data)
inode
->
i_op
=
&
simple_dir_inode_operations
;
inode
->
i_fop
=
&
simple_dir_operations
;
SPUFS_I
(
inode
)
->
i_ctx
=
NULL
;
inc_nlink
(
inode
);
ret
=
-
EINVAL
;
if
(
!
spufs_parse_options
(
sb
,
data
,
inode
))
...
...
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