All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] jfs: remove increment of i_version counter
@ 2017-10-30 15:16 Jeff Layton
  2017-10-30 22:22 ` [Jfs-discussion] " Dave Kleikamp
  0 siblings, 1 reply; 2+ messages in thread
From: Jeff Layton @ 2017-10-30 15:16 UTC (permalink / raw)
  To: shaggy; +Cc: linux-fsdevel, linux-kernel, jfs-discussion

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(-)

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);
-- 
2.13.6

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Jfs-discussion] [PATCH] jfs: remove increment of i_version counter
  2017-10-30 15:16 [PATCH] jfs: remove increment of i_version counter Jeff Layton
@ 2017-10-30 22:22 ` Dave Kleikamp
  0 siblings, 0 replies; 2+ messages in thread
From: Dave Kleikamp @ 2017-10-30 22:22 UTC (permalink / raw)
  To: Jeff Layton; +Cc: linux-fsdevel, jfs-discussion, linux-kernel

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);
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-10-30 22:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-30 15:16 [PATCH] jfs: remove increment of i_version counter Jeff Layton
2017-10-30 22:22 ` [Jfs-discussion] " Dave Kleikamp

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.