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
30304aba
Commit
30304aba
authored
Dec 18, 2010
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch sysv
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
c35eebe9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
fs/sysv/namei.c
fs/sysv/namei.c
+0
-1
fs/sysv/super.c
fs/sysv/super.c
+4
-4
No files found.
fs/sysv/namei.c
View file @
30304aba
...
...
@@ -48,7 +48,6 @@ static struct dentry *sysv_lookup(struct inode * dir, struct dentry * dentry, st
struct
inode
*
inode
=
NULL
;
ino_t
ino
;
d_set_d_op
(
dentry
,
dir
->
i_sb
->
s_root
->
d_op
);
if
(
dentry
->
d_name
.
len
>
SYSV_NAMELEN
)
return
ERR_PTR
(
-
ENAMETOOLONG
);
ino
=
sysv_inode_by_name
(
dentry
);
...
...
fs/sysv/super.c
View file @
30304aba
...
...
@@ -332,6 +332,10 @@ static int complete_read_super(struct super_block *sb, int silent, int size)
sb
->
s_magic
=
SYSV_MAGIC_BASE
+
sbi
->
s_type
;
/* set up enough so that it can read an inode */
sb
->
s_op
=
&
sysv_sops
;
if
(
sbi
->
s_forced_ro
)
sb
->
s_flags
|=
MS_RDONLY
;
if
(
sbi
->
s_truncate
)
sb
->
s_d_op
=
&
sysv_dentry_operations
;
root_inode
=
sysv_iget
(
sb
,
SYSV_ROOT_INO
);
if
(
IS_ERR
(
root_inode
))
{
printk
(
"SysV FS: get root inode failed
\n
"
);
...
...
@@ -343,10 +347,6 @@ static int complete_read_super(struct super_block *sb, int silent, int size)
printk
(
"SysV FS: get root dentry failed
\n
"
);
return
0
;
}
if
(
sbi
->
s_forced_ro
)
sb
->
s_flags
|=
MS_RDONLY
;
if
(
sbi
->
s_truncate
)
d_set_d_op
(
sb
->
s_root
,
&
sysv_dentry_operations
);
return
1
;
}
...
...
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