Skip to content

Commit 94ee849

Browse files
author
Al Viro
committed
switch ncpfs to ->evict_inode()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 3aac2b6 commit 94ee849

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎fs/ncpfs/inode.c‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
#define NCP_DEFAULT_TIME_OUT 10
4444
#define NCP_DEFAULT_RETRY_COUNT 20
4545

46-
static void ncp_delete_inode(struct inode *);
46+
static void ncp_evict_inode(struct inode *);
4747
static void ncp_put_super(struct super_block *);
4848
static int ncp_statfs(struct dentry *, struct kstatfs *);
4949
static int ncp_show_options(struct seq_file *, struct vfsmount *);
@@ -100,7 +100,7 @@ static const struct super_operations ncp_sops =
100100
.alloc_inode = ncp_alloc_inode,
101101
.destroy_inode = ncp_destroy_inode,
102102
.drop_inode = generic_delete_inode,
103-
.delete_inode = ncp_delete_inode,
103+
.evict_inode = ncp_evict_inode,
104104
.put_super = ncp_put_super,
105105
.statfs = ncp_statfs,
106106
.remount_fs = ncp_remount,
@@ -282,19 +282,19 @@ ncp_iget(struct super_block *sb, struct ncp_entry_info *info)
282282
}
283283

284284
static void
285-
ncp_delete_inode(struct inode *inode)
285+
ncp_evict_inode(struct inode *inode)
286286
{
287287
truncate_inode_pages(&inode->i_data, 0);
288+
end_writeback(inode);
288289

289290
if (S_ISDIR(inode->i_mode)) {
290-
DDPRINTK("ncp_delete_inode: put directory %ld\n", inode->i_ino);
291+
DDPRINTK("ncp_evict_inode: put directory %ld\n", inode->i_ino);
291292
}
292293

293294
if (ncp_make_closed(inode) != 0) {
294295
/* We can't do anything but complain. */
295-
printk(KERN_ERR "ncp_delete_inode: could not close\n");
296+
printk(KERN_ERR "ncp_evict_inode: could not close\n");
296297
}
297-
clear_inode(inode);
298298
}
299299

300300
static void ncp_stop_tasks(struct ncp_server *server) {

0 commit comments

Comments
 (0)