提交 98087c05 编写于 作者: J Jeff Layton 提交者: Linus Torvalds

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: NJeff Layton <jlayton@redhat.com>
Signed-off-by: NMikulas Patocka <mikulas@twibright.com>
Reviewed-by: NMikulas Patocka <mikulas@twibright.com>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 d70ef228
...@@ -150,7 +150,6 @@ static int hpfs_readdir(struct file *file, struct dir_context *ctx) ...@@ -150,7 +150,6 @@ static int hpfs_readdir(struct file *file, struct dir_context *ctx)
if (unlikely(ret < 0)) if (unlikely(ret < 0))
goto out; goto out;
ctx->pos = ((loff_t) hpfs_de_as_down_as_possible(inode->i_sb, hpfs_inode->i_dno) << 4) + 1; 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; next_pos = ctx->pos;
if (!(de = map_pos_dirent(inode, &next_pos, &qbh))) { if (!(de = map_pos_dirent(inode, &next_pos, &qbh))) {
......
...@@ -419,7 +419,6 @@ int hpfs_add_dirent(struct inode *i, ...@@ -419,7 +419,6 @@ int hpfs_add_dirent(struct inode *i,
c = 1; c = 1;
goto ret; goto ret;
} }
i->i_version++;
c = hpfs_add_to_dnode(i, dno, name, namelen, new_de, 0); c = hpfs_add_to_dnode(i, dno, name, namelen, new_de, 0);
ret: ret:
return c; return c;
...@@ -726,7 +725,6 @@ int hpfs_remove_dirent(struct inode *i, dnode_secno dno, struct hpfs_dirent *de, ...@@ -726,7 +725,6 @@ int hpfs_remove_dirent(struct inode *i, dnode_secno dno, struct hpfs_dirent *de,
return 2; return 2;
} }
} }
i->i_version++;
for_all_poss(i, hpfs_pos_del, (t = get_pos(dnode, de)) + 1, 1); for_all_poss(i, hpfs_pos_del, (t = get_pos(dnode, de)) + 1, 1);
hpfs_delete_de(i->i_sb, dnode, de); hpfs_delete_de(i->i_sb, dnode, de);
hpfs_mark_4buffers_dirty(qbh); hpfs_mark_4buffers_dirty(qbh);
......
...@@ -235,7 +235,6 @@ static struct inode *hpfs_alloc_inode(struct super_block *sb) ...@@ -235,7 +235,6 @@ static struct inode *hpfs_alloc_inode(struct super_block *sb)
ei = kmem_cache_alloc(hpfs_inode_cachep, GFP_NOFS); ei = kmem_cache_alloc(hpfs_inode_cachep, GFP_NOFS);
if (!ei) if (!ei)
return NULL; return NULL;
ei->vfs_inode.i_version = 1;
return &ei->vfs_inode; return &ei->vfs_inode;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册