Skip to contentSkip to conversation

hpfs-dont-bother-with-the-i_version-counter-or-f_version.patch removed from -mm tree

merged [email protected] 1 participant 1 message Dec 12, 2017

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: hpfs: don't bother with the i_version counter or f_version
has been removed from the -mm tree. Its filename was
hpfs-dont-bother-with-the-i_version-counter-or-f_version.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Jeff Layton <[email protected]>
Subject: hpfs: don't bother with the i_version counter or f_version

HPFS does not set SB_I_VERSION and does not use the i_version counter internally.

---

 fs/hpfs/dir.c   |    1 -
 fs/hpfs/dnode.c |    2 --
 fs/hpfs/super.c |    1 -
 3 files changed, 4 deletions(-)
fs/hpfs/dir.c renamed from fs/hpfs/dir.c~hpfs-dont-bother-with-the-i_version-counter-or-f_version +0 -1
diff -puN fs/hpfs/dir.c~hpfs-dont-bother-with-the-i_version-counter-or-f_version fs/hpfs/dir.c
@@ -150,7 +150,6 @@ static int hpfs_readdir(struct file *fil
 			if (unlikely(ret < 0))
 				goto out;
 			ctx->pos = ((loff_t) hpfs_de_as_down_as_possible(inode->i_sb, hpfs_inode->i_dno) << 4) + 1;
-			file->f_version = inode->i_version;
 		}
 		next_pos = ctx->pos;
 		if (!(de = map_pos_dirent(inode, &next_pos, &qbh))) {
fs/hpfs/dnode.c renamed from fs/hpfs/dnode.c~hpfs-dont-bother-with-the-i_version-counter-or-f_version +0 -2
diff -puN fs/hpfs/dnode.c~hpfs-dont-bother-with-the-i_version-counter-or-f_version fs/hpfs/dnode.c
@@ -419,7 +419,6 @@ int hpfs_add_dirent(struct inode *i,
 		c = 1;
 		goto ret;
 	}	
-	i->i_version++;
 	c = hpfs_add_to_dnode(i, dno, name, namelen, new_de, 0);
 	ret:
 	return c;
@@ -726,7 +725,6 @@ int hpfs_remove_dirent(struct inode *i,
 			return 2;
 		}
 	}
-	i->i_version++;
 	for_all_poss(i, hpfs_pos_del, (t = get_pos(dnode, de)) + 1, 1);
 	hpfs_delete_de(i->i_sb, dnode, de);
 	hpfs_mark_4buffers_dirty(qbh);
fs/hpfs/super.c renamed from fs/hpfs/super.c~hpfs-dont-bother-with-the-i_version-counter-or-f_version +0 -1
diff -puN fs/hpfs/super.c~hpfs-dont-bother-with-the-i_version-counter-or-f_version fs/hpfs/super.c
@@ -235,7 +235,6 @@ static struct inode *hpfs_alloc_inode(st
 	ei = kmem_cache_alloc(hpfs_inode_cachep, GFP_NOFS);
 	if (!ei)
 		return NULL;
-	ei->vfs_inode.i_version = 1;
 	return &ei->vfs_inode;
 }
 

_

Patches currently in -mm which might be from [email protected] are

ntfs-remove-i_version-handling.patch
lustre-dont-set-f_version-in-ll_readdir.patch