]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
hpfs: don't bother with the i_version counter or f_version
authorJeff Layton <jlayton@kernel.org>
Thu, 23 Nov 2017 19:34:40 +0000 (20:34 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 10 Dec 2017 20:58:18 +0000 (12:58 -0800)
HPFS does not set SB_I_VERSION and does not use the i_version counter
internally.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Mikulas Patocka <mikulas@twibright.com>
Reviewed-by: Mikulas Patocka <mikulas@twibright.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/hpfs/dir.c
fs/hpfs/dnode.c
fs/hpfs/super.c

index 8d6b7e35faf9a76d91ce9835598c13495adb2032..c83ece7facc5e466eb4b17fac368c0f63cf1048a 100644 (file)
@@ -150,7 +150,6 @@ static int hpfs_readdir(struct file *file, struct dir_context *ctx)
                        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))) {
index 3b834563b1f161352806249f0ef62b3e552ecee6..a4ad18afbdec7ffba2eb5cd46c59879433ba6da9 100644 (file)
@@ -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, dnode_secno dno, struct hpfs_dirent *de,
                        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);
index c45a3b9b9ac7e22861b5dcd7816a884a15bb62bb..f2c3ebcd309c326d6ac08bd168f13b8b460379ec 100644 (file)
@@ -235,7 +235,6 @@ static struct inode *hpfs_alloc_inode(struct super_block *sb)
        ei = kmem_cache_alloc(hpfs_inode_cachep, GFP_NOFS);
        if (!ei)
                return NULL;
-       ei->vfs_inode.i_version = 1;
        return &ei->vfs_inode;
 }