Skip to content

Commit 98087c0

Browse files
jtlaytontorvalds
authored andcommitted
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. 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>
1 parent d70ef22 commit 98087c0

File tree

3 files changed

+0
-4
lines changed

3 files changed

+0
-4
lines changed

fs/hpfs/dir.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ static int hpfs_readdir(struct file *file, struct dir_context *ctx)
150150
if (unlikely(ret < 0))
151151
goto out;
152152
ctx->pos = ((loff_t) hpfs_de_as_down_as_possible(inode->i_sb, hpfs_inode->i_dno) << 4) + 1;
153-
file->f_version = inode->i_version;
154153
}
155154
next_pos = ctx->pos;
156155
if (!(de = map_pos_dirent(inode, &next_pos, &qbh))) {

fs/hpfs/dnode.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,6 @@ int hpfs_add_dirent(struct inode *i,
419419
c = 1;
420420
goto ret;
421421
}
422-
i->i_version++;
423422
c = hpfs_add_to_dnode(i, dno, name, namelen, new_de, 0);
424423
ret:
425424
return c;
@@ -726,7 +725,6 @@ int hpfs_remove_dirent(struct inode *i, dnode_secno dno, struct hpfs_dirent *de,
726725
return 2;
727726
}
728727
}
729-
i->i_version++;
730728
for_all_poss(i, hpfs_pos_del, (t = get_pos(dnode, de)) + 1, 1);
731729
hpfs_delete_de(i->i_sb, dnode, de);
732730
hpfs_mark_4buffers_dirty(qbh);

fs/hpfs/super.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,6 @@ static struct inode *hpfs_alloc_inode(struct super_block *sb)
235235
ei = kmem_cache_alloc(hpfs_inode_cachep, GFP_NOFS);
236236
if (!ei)
237237
return NULL;
238-
ei->vfs_inode.i_version = 1;
239238
return &ei->vfs_inode;
240239
}
241240

0 commit comments

Comments
 (0)