Skip to contentSkip to conversation

jfs: remove increment of i_version counter

PATCH In review Jeff Layton 2 participants 2 messages Oct 30, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 jfs: remove increment of i_version counter

From: Jeff Layton <[email protected]>

JFS does not set SB_I_VERSION and doesn't use the i_version counter internally. Just remove this increment.

---
 fs/jfs/super.c | 1 -
 1 file changed, 1 deletion(-)
fs/jfs/super.c +0 -1
index 2f14677169c3..2f7b3af5b8b7 100644
@@ -853,7 +853,6 @@ static ssize_t jfs_quota_write(struct super_block *sb, int type,
 	}
 	if (inode->i_size < off+len-towrite)
 		i_size_write(inode, off+len-towrite);
-	inode->i_version++;
 	inode->i_mtime = inode->i_ctime = current_time(inode);
 	mark_inode_dirty(inode);
 	inode_unlock(inode);
Signature · 1 line
2.13.6
#1 lore raw
Quoted 4 lines · Jeff Layton

From: Jeff Layton <[email protected]>

JFS does not set SB_I_VERSION and doesn't use the i_version counter internally. Just remove this increment.

Looks good. I'll push it upstream.

Thanks,
Shaggy

Quoted 19 lines
---
 fs/jfs/super.c | 1 -
 1 file changed, 1 deletion(-)
fs/jfs/super.c +0 -1
index 2f14677169c3..2f7b3af5b8b7 100644
@@ -853,7 +853,6 @@ static ssize_t jfs_quota_write(struct super_block *sb, int type,
 	}
 	if (inode->i_size < off+len-towrite)
 		i_size_write(inode, off+len-towrite);
-	inode->i_version++;
 	inode->i_mtime = inode->i_ctime = current_time(inode);
 	mark_inode_dirty(inode);
 	inode_unlock(inode);