Commit 506a18c8 authored by Dave Kleikamp's avatar Dave Kleikamp

JFS does not need to set i_version. It is never used.

Submitted by Manfred Spraul.
parent a7507383
......@@ -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_blksize = ip->i_sb->s_blocksize;
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);
jfs_ip->ixpxd = dip->di_ixpxd; /* in-memory pxd's are little-endian */
......
......@@ -69,7 +69,6 @@ struct inode *ialloc(struct inode *parent, umode_t mode)
inode->i_blocks = 0;
inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME;
jfs_inode->otime = inode->i_ctime;
inode->i_version = ++event;
inode->i_generation = JFS_SBI(sb)->gengen++;
jfs_inode->cflag = 0;
......
......@@ -138,7 +138,6 @@ int jfs_create(struct inode *dip, struct dentry *dentry, int mode)
mark_inode_dirty(ip);
d_instantiate(dentry, ip);
dip->i_version = ++event;
dip->i_ctime = dip->i_mtime = CURRENT_TIME;
mark_inode_dirty(dip);
......@@ -264,7 +263,6 @@ int jfs_mkdir(struct inode *dip, struct dentry *dentry, int mode)
/* update parent directory inode */
dip->i_nlink++; /* for '..' from child directory */
dip->i_version = ++event;
dip->i_ctime = dip->i_mtime = CURRENT_TIME;
mark_inode_dirty(dip);
......@@ -359,7 +357,6 @@ int jfs_rmdir(struct inode *dip, struct dentry *dentry)
*/
dip->i_nlink--;
dip->i_ctime = dip->i_mtime = CURRENT_TIME;
dip->i_version = ++event;
mark_inode_dirty(dip);
/*
......@@ -473,7 +470,6 @@ int jfs_unlink(struct inode *dip, struct dentry *dentry)
ASSERT(ip->i_nlink);
ip->i_ctime = dip->i_ctime = dip->i_mtime = CURRENT_TIME;
dip->i_version = ++event;
mark_inode_dirty(dip);
/* update target's inode */
......@@ -797,8 +793,6 @@ int jfs_link(struct dentry *old_dentry,
if ((rc = dtInsert(tid, dir, &dname, &ino, &btstack)))
goto out;
dir->i_version = ++event;
/* update object inode */
ip->i_nlink++; /* for new link */
ip->i_ctime = CURRENT_TIME;
......@@ -993,7 +987,6 @@ int jfs_symlink(struct inode *dip, struct dentry *dentry, const char *name)
goto out2;
}
}
dip->i_version = ++event;
insert_inode_hash(ip);
mark_inode_dirty(ip);
......@@ -1227,7 +1220,6 @@ int jfs_rename(struct inode *old_dir, struct dentry *old_dentry,
old_ip->i_ctime = CURRENT_TIME;
mark_inode_dirty(old_ip);
new_dir->i_version = ++event;
new_dir->i_ctime = CURRENT_TIME;
mark_inode_dirty(new_dir);
......@@ -1240,7 +1232,6 @@ int jfs_rename(struct inode *old_dir, struct dentry *old_dentry,
if (old_dir != new_dir) {
iplist[ipcount++] = new_dir;
old_dir->i_version = ++event;
old_dir->i_ctime = CURRENT_TIME;
mark_inode_dirty(old_dir);
}
......@@ -1363,7 +1354,6 @@ int jfs_mknod(struct inode *dir, struct dentry *dentry, int mode, int rdev)
mark_inode_dirty(ip);
d_instantiate(dentry, ip);
dir->i_version = ++event;
dir->i_ctime = dir->i_mtime = CURRENT_TIME;
mark_inode_dirty(dir);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment