diff options
Diffstat (limited to 'fs/inode.c')
-rw-r--r-- | fs/inode.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/fs/inode.c b/fs/inode.c index f5c04dd9ae8a..ada7643104e1 100644 --- a/fs/inode.c +++ b/fs/inode.c | |||
@@ -133,7 +133,6 @@ static struct inode *alloc_inode(struct super_block *sb) | |||
133 | inode->i_bdev = NULL; | 133 | inode->i_bdev = NULL; |
134 | inode->i_cdev = NULL; | 134 | inode->i_cdev = NULL; |
135 | inode->i_rdev = 0; | 135 | inode->i_rdev = 0; |
136 | inode->i_security = NULL; | ||
137 | inode->dirtied_when = 0; | 136 | inode->dirtied_when = 0; |
138 | if (security_inode_alloc(inode)) { | 137 | if (security_inode_alloc(inode)) { |
139 | if (inode->i_sb->s_op->destroy_inode) | 138 | if (inode->i_sb->s_op->destroy_inode) |
@@ -363,27 +362,6 @@ int invalidate_inodes(struct super_block * sb) | |||
363 | } | 362 | } |
364 | 363 | ||
365 | EXPORT_SYMBOL(invalidate_inodes); | 364 | EXPORT_SYMBOL(invalidate_inodes); |
366 | |||
367 | int __invalidate_device(struct block_device *bdev) | ||
368 | { | ||
369 | struct super_block *sb = get_super(bdev); | ||
370 | int res = 0; | ||
371 | |||
372 | if (sb) { | ||
373 | /* | ||
374 | * no need to lock the super, get_super holds the | ||
375 | * read mutex so the filesystem cannot go away | ||
376 | * under us (->put_super runs with the write lock | ||
377 | * hold). | ||
378 | */ | ||
379 | shrink_dcache_sb(sb); | ||
380 | res = invalidate_inodes(sb); | ||
381 | drop_super(sb); | ||
382 | } | ||
383 | invalidate_bdev(bdev, 0); | ||
384 | return res; | ||
385 | } | ||
386 | EXPORT_SYMBOL(__invalidate_device); | ||
387 | 365 | ||
388 | static int can_unuse(struct inode *inode) | 366 | static int can_unuse(struct inode *inode) |
389 | { | 367 | { |