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
Kirill Smelkov
linux
Commits
7878b8fe
Commit
7878b8fe
authored
Jun 10, 2003
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
http://jfs.bkbits.net/linux-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux
parents
136e7a83
76a13e22
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
20 deletions
+17
-20
fs/jfs/inode.c
fs/jfs/inode.c
+2
-10
fs/jfs/namei.c
fs/jfs/namei.c
+12
-7
fs/jfs/super.c
fs/jfs/super.c
+3
-3
No files found.
fs/jfs/inode.c
View file @
7878b8fe
...
...
@@ -36,17 +36,11 @@ extern struct file_operations jfs_file_operations;
struct
address_space_operations
jfs_aops
;
extern
int
freeZeroLink
(
struct
inode
*
);
struct
inode
*
jfs_iget
(
struct
super_block
*
sb
,
ino_t
ino
)
void
jfs_read_inode
(
struct
inode
*
inode
)
{
struct
inode
*
inode
=
iget_locked
(
sb
,
ino
);
if
(
!
inode
||
!
(
inode
->
i_state
&
I_NEW
))
return
inode
;
if
(
diRead
(
inode
))
{
make_bad_inode
(
inode
);
unlock_new_inode
(
inode
);
return
NULL
;
return
;
}
if
(
S_ISREG
(
inode
->
i_mode
))
{
...
...
@@ -69,8 +63,6 @@ struct inode *jfs_iget(struct super_block *sb, ino_t ino)
init_special_inode
(
inode
,
inode
->
i_mode
,
kdev_t_to_nr
(
inode
->
i_rdev
));
}
unlock_new_inode
(
inode
);
return
inode
;
}
/* This define is from fs/open.c */
...
...
fs/jfs/namei.c
View file @
7878b8fe
...
...
@@ -35,7 +35,6 @@ extern struct address_space_operations jfs_aops;
extern
int
jfs_fsync
(
struct
file
*
,
struct
dentry
*
,
int
);
extern
void
jfs_truncate_nolock
(
struct
inode
*
,
loff_t
);
extern
struct
inode
*
jfs_iget
(
struct
super_block
*
,
ino_t
);
extern
int
jfs_init_acl
(
struct
inode
*
,
struct
inode
*
);
/*
...
...
@@ -1406,9 +1405,11 @@ static struct dentry *jfs_lookup(struct inode *dip, struct dentry *dentry)
}
}
ip
=
jfs_
iget
(
dip
->
i_sb
,
inum
);
if
(
ip
==
NULL
)
{
ip
=
iget
(
dip
->
i_sb
,
inum
);
if
(
ip
==
NULL
||
is_bad_inode
(
ip
)
)
{
jfs_err
(
"jfs_lookup: iget failed on inum %d"
,
(
uint
)
inum
);
if
(
ip
)
iput
(
ip
);
return
ERR_PTR
(
-
EACCES
);
}
...
...
@@ -1421,14 +1422,18 @@ struct dentry *jfs_get_parent(struct dentry *dentry)
struct
dentry
*
parent
=
ERR_PTR
(
-
EACCES
);
struct
inode
*
inode
;
inode
=
jfs_
iget
(
sb
,
JFS_IP
(
dentry
->
d_inode
)
->
i_dtroot
.
header
.
idotdot
);
inode
=
iget
(
sb
,
JFS_IP
(
dentry
->
d_inode
)
->
i_dtroot
.
header
.
idotdot
);
if
(
inode
)
{
if
(
is_bad_inode
(
inode
))
iput
(
inode
);
else
{
parent
=
d_alloc_anon
(
inode
);
if
(
!
parent
)
{
parent
=
ERR_PTR
(
-
ENOMEM
);
iput
(
inode
);
}
}
}
return
parent
;
}
...
...
fs/jfs/super.c
View file @
7878b8fe
...
...
@@ -58,8 +58,6 @@ MODULE_PARM_DESC(jfsloglevel, "Specify JFS loglevel (0, 1 or 2)");
/*
* External declarations
*/
extern
struct
inode
*
jfs_iget
(
struct
super_block
*
,
ino_t
);
extern
int
jfs_mount
(
struct
super_block
*
);
extern
int
jfs_mount_rw
(
struct
super_block
*
,
int
);
extern
int
jfs_umount
(
struct
super_block
*
);
...
...
@@ -69,6 +67,7 @@ extern int jfsIOWait(void *);
extern
int
jfs_lazycommit
(
void
*
);
extern
int
jfs_sync
(
void
*
);
extern
void
jfs_read_inode
(
struct
inode
*
inode
);
extern
void
jfs_dirty_inode
(
struct
inode
*
inode
);
extern
void
jfs_delete_inode
(
struct
inode
*
inode
);
extern
void
jfs_write_inode
(
struct
inode
*
inode
,
int
wait
);
...
...
@@ -313,7 +312,7 @@ static int jfs_fill_super(struct super_block *sb, void *data, int silent)
sb
->
s_magic
=
JFS_SUPER_MAGIC
;
inode
=
jfs_
iget
(
sb
,
ROOT_I
);
inode
=
iget
(
sb
,
ROOT_I
);
if
(
!
inode
||
is_bad_inode
(
inode
))
goto
out_no_root
;
sb
->
s_root
=
d_alloc_root
(
inode
);
...
...
@@ -397,6 +396,7 @@ static int jfs_sync_fs(struct super_block *sb, int wait)
static
struct
super_operations
jfs_super_operations
=
{
.
alloc_inode
=
jfs_alloc_inode
,
.
destroy_inode
=
jfs_destroy_inode
,
.
read_inode
=
jfs_read_inode
,
.
dirty_inode
=
jfs_dirty_inode
,
.
write_inode
=
jfs_write_inode
,
.
delete_inode
=
jfs_delete_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