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
506a18c8
Commit
506a18c8
authored
Jun 18, 2002
by
Dave Kleikamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
JFS does not need to set i_version. It is never used.
Submitted by Manfred Spraul.
parent
a7507383
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
12 deletions
+0
-12
fs/jfs/jfs_imap.c
fs/jfs/jfs_imap.c
+0
-1
fs/jfs/jfs_inode.c
fs/jfs/jfs_inode.c
+0
-1
fs/jfs/namei.c
fs/jfs/namei.c
+0
-10
No files found.
fs/jfs/jfs_imap.c
View file @
506a18c8
...
@@ -3052,7 +3052,6 @@ static int copy_from_dinode(dinode_t * dip, struct inode *ip)
...
@@ -3052,7 +3052,6 @@ static int copy_from_dinode(dinode_t * dip, struct inode *ip)
ip
->
i_ctime
=
le32_to_cpu
(
dip
->
di_ctime
.
tv_sec
);
ip
->
i_ctime
=
le32_to_cpu
(
dip
->
di_ctime
.
tv_sec
);
ip
->
i_blksize
=
ip
->
i_sb
->
s_blocksize
;
ip
->
i_blksize
=
ip
->
i_sb
->
s_blocksize
;
ip
->
i_blocks
=
LBLK2PBLK
(
ip
->
i_sb
,
le64_to_cpu
(
dip
->
di_nblocks
));
ip
->
i_blocks
=
LBLK2PBLK
(
ip
->
i_sb
,
le64_to_cpu
(
dip
->
di_nblocks
));
ip
->
i_version
=
++
event
;
ip
->
i_generation
=
le32_to_cpu
(
dip
->
di_gen
);
ip
->
i_generation
=
le32_to_cpu
(
dip
->
di_gen
);
jfs_ip
->
ixpxd
=
dip
->
di_ixpxd
;
/* in-memory pxd's are little-endian */
jfs_ip
->
ixpxd
=
dip
->
di_ixpxd
;
/* in-memory pxd's are little-endian */
...
...
fs/jfs/jfs_inode.c
View file @
506a18c8
...
@@ -69,7 +69,6 @@ struct inode *ialloc(struct inode *parent, umode_t mode)
...
@@ -69,7 +69,6 @@ struct inode *ialloc(struct inode *parent, umode_t mode)
inode
->
i_blocks
=
0
;
inode
->
i_blocks
=
0
;
inode
->
i_mtime
=
inode
->
i_atime
=
inode
->
i_ctime
=
CURRENT_TIME
;
inode
->
i_mtime
=
inode
->
i_atime
=
inode
->
i_ctime
=
CURRENT_TIME
;
jfs_inode
->
otime
=
inode
->
i_ctime
;
jfs_inode
->
otime
=
inode
->
i_ctime
;
inode
->
i_version
=
++
event
;
inode
->
i_generation
=
JFS_SBI
(
sb
)
->
gengen
++
;
inode
->
i_generation
=
JFS_SBI
(
sb
)
->
gengen
++
;
jfs_inode
->
cflag
=
0
;
jfs_inode
->
cflag
=
0
;
...
...
fs/jfs/namei.c
View file @
506a18c8
...
@@ -138,7 +138,6 @@ int jfs_create(struct inode *dip, struct dentry *dentry, int mode)
...
@@ -138,7 +138,6 @@ int jfs_create(struct inode *dip, struct dentry *dentry, int mode)
mark_inode_dirty
(
ip
);
mark_inode_dirty
(
ip
);
d_instantiate
(
dentry
,
ip
);
d_instantiate
(
dentry
,
ip
);
dip
->
i_version
=
++
event
;
dip
->
i_ctime
=
dip
->
i_mtime
=
CURRENT_TIME
;
dip
->
i_ctime
=
dip
->
i_mtime
=
CURRENT_TIME
;
mark_inode_dirty
(
dip
);
mark_inode_dirty
(
dip
);
...
@@ -264,7 +263,6 @@ int jfs_mkdir(struct inode *dip, struct dentry *dentry, int mode)
...
@@ -264,7 +263,6 @@ int jfs_mkdir(struct inode *dip, struct dentry *dentry, int mode)
/* update parent directory inode */
/* update parent directory inode */
dip
->
i_nlink
++
;
/* for '..' from child directory */
dip
->
i_nlink
++
;
/* for '..' from child directory */
dip
->
i_version
=
++
event
;
dip
->
i_ctime
=
dip
->
i_mtime
=
CURRENT_TIME
;
dip
->
i_ctime
=
dip
->
i_mtime
=
CURRENT_TIME
;
mark_inode_dirty
(
dip
);
mark_inode_dirty
(
dip
);
...
@@ -359,7 +357,6 @@ int jfs_rmdir(struct inode *dip, struct dentry *dentry)
...
@@ -359,7 +357,6 @@ int jfs_rmdir(struct inode *dip, struct dentry *dentry)
*/
*/
dip
->
i_nlink
--
;
dip
->
i_nlink
--
;
dip
->
i_ctime
=
dip
->
i_mtime
=
CURRENT_TIME
;
dip
->
i_ctime
=
dip
->
i_mtime
=
CURRENT_TIME
;
dip
->
i_version
=
++
event
;
mark_inode_dirty
(
dip
);
mark_inode_dirty
(
dip
);
/*
/*
...
@@ -473,7 +470,6 @@ int jfs_unlink(struct inode *dip, struct dentry *dentry)
...
@@ -473,7 +470,6 @@ int jfs_unlink(struct inode *dip, struct dentry *dentry)
ASSERT
(
ip
->
i_nlink
);
ASSERT
(
ip
->
i_nlink
);
ip
->
i_ctime
=
dip
->
i_ctime
=
dip
->
i_mtime
=
CURRENT_TIME
;
ip
->
i_ctime
=
dip
->
i_ctime
=
dip
->
i_mtime
=
CURRENT_TIME
;
dip
->
i_version
=
++
event
;
mark_inode_dirty
(
dip
);
mark_inode_dirty
(
dip
);
/* update target's inode */
/* update target's inode */
...
@@ -797,8 +793,6 @@ int jfs_link(struct dentry *old_dentry,
...
@@ -797,8 +793,6 @@ int jfs_link(struct dentry *old_dentry,
if
((
rc
=
dtInsert
(
tid
,
dir
,
&
dname
,
&
ino
,
&
btstack
)))
if
((
rc
=
dtInsert
(
tid
,
dir
,
&
dname
,
&
ino
,
&
btstack
)))
goto
out
;
goto
out
;
dir
->
i_version
=
++
event
;
/* update object inode */
/* update object inode */
ip
->
i_nlink
++
;
/* for new link */
ip
->
i_nlink
++
;
/* for new link */
ip
->
i_ctime
=
CURRENT_TIME
;
ip
->
i_ctime
=
CURRENT_TIME
;
...
@@ -993,7 +987,6 @@ int jfs_symlink(struct inode *dip, struct dentry *dentry, const char *name)
...
@@ -993,7 +987,6 @@ int jfs_symlink(struct inode *dip, struct dentry *dentry, const char *name)
goto
out2
;
goto
out2
;
}
}
}
}
dip
->
i_version
=
++
event
;
insert_inode_hash
(
ip
);
insert_inode_hash
(
ip
);
mark_inode_dirty
(
ip
);
mark_inode_dirty
(
ip
);
...
@@ -1227,7 +1220,6 @@ int jfs_rename(struct inode *old_dir, struct dentry *old_dentry,
...
@@ -1227,7 +1220,6 @@ int jfs_rename(struct inode *old_dir, struct dentry *old_dentry,
old_ip
->
i_ctime
=
CURRENT_TIME
;
old_ip
->
i_ctime
=
CURRENT_TIME
;
mark_inode_dirty
(
old_ip
);
mark_inode_dirty
(
old_ip
);
new_dir
->
i_version
=
++
event
;
new_dir
->
i_ctime
=
CURRENT_TIME
;
new_dir
->
i_ctime
=
CURRENT_TIME
;
mark_inode_dirty
(
new_dir
);
mark_inode_dirty
(
new_dir
);
...
@@ -1240,7 +1232,6 @@ int jfs_rename(struct inode *old_dir, struct dentry *old_dentry,
...
@@ -1240,7 +1232,6 @@ int jfs_rename(struct inode *old_dir, struct dentry *old_dentry,
if
(
old_dir
!=
new_dir
)
{
if
(
old_dir
!=
new_dir
)
{
iplist
[
ipcount
++
]
=
new_dir
;
iplist
[
ipcount
++
]
=
new_dir
;
old_dir
->
i_version
=
++
event
;
old_dir
->
i_ctime
=
CURRENT_TIME
;
old_dir
->
i_ctime
=
CURRENT_TIME
;
mark_inode_dirty
(
old_dir
);
mark_inode_dirty
(
old_dir
);
}
}
...
@@ -1363,7 +1354,6 @@ int jfs_mknod(struct inode *dir, struct dentry *dentry, int mode, int rdev)
...
@@ -1363,7 +1354,6 @@ int jfs_mknod(struct inode *dir, struct dentry *dentry, int mode, int rdev)
mark_inode_dirty
(
ip
);
mark_inode_dirty
(
ip
);
d_instantiate
(
dentry
,
ip
);
d_instantiate
(
dentry
,
ip
);
dir
->
i_version
=
++
event
;
dir
->
i_ctime
=
dir
->
i_mtime
=
CURRENT_TIME
;
dir
->
i_ctime
=
dir
->
i_mtime
=
CURRENT_TIME
;
mark_inode_dirty
(
dir
);
mark_inode_dirty
(
dir
);
...
...
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