diff mbox

jfs: remove increment of i_version counter

Message ID 20171030151607.7941-1-jlayton@kernel.org (mailing list archive)
State New, archived
Headers show

Commit Message

Jeff Layton Oct. 30, 2017, 3:16 p.m. UTC
From: Jeff Layton <jlayton@redhat.com>

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

Signed-off-by: Jeff Layton <jlayton@redhat.com>
---
 fs/jfs/super.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Dave Kleikamp Oct. 30, 2017, 10:22 p.m. UTC | #1
On 10/30/2017 10:16 AM, Jeff Layton wrote:
> From: Jeff Layton <jlayton@redhat.com>
> 
> 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

> 
> Signed-off-by: Jeff Layton <jlayton@redhat.com>
> ---
>  fs/jfs/super.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/fs/jfs/super.c b/fs/jfs/super.c
> index 2f14677169c3..2f7b3af5b8b7 100644
> --- a/fs/jfs/super.c
> +++ b/fs/jfs/super.c
> @@ -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);
>
diff mbox

Patch

diff --git a/fs/jfs/super.c b/fs/jfs/super.c
index 2f14677169c3..2f7b3af5b8b7 100644
--- a/fs/jfs/super.c
+++ b/fs/jfs/super.c
@@ -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);