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