Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 37577
b: refs/heads/master
c: b71e8a4
h: refs/heads/master
i:
  37575: 2ece529
v: v3
  • Loading branch information
David Howells authored and Jens Axboe committed Sep 30, 2006
1 parent 3c6eb33 commit 7bcc427
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 811d736f9e8013966e1a5a930c0db09508bdbb15
refs/heads/master: b71e8a4ce03b3098c7801ee5e6e08d1a39a226c2
21 changes: 21 additions & 0 deletions trunk/fs/block_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -1315,3 +1315,24 @@ void close_bdev_excl(struct block_device *bdev)
}

EXPORT_SYMBOL(close_bdev_excl);

int __invalidate_device(struct block_device *bdev)
{
struct super_block *sb = get_super(bdev);
int res = 0;

if (sb) {
/*
* no need to lock the super, get_super holds the
* read mutex so the filesystem cannot go away
* under us (->put_super runs with the write lock
* hold).
*/
shrink_dcache_sb(sb);
res = invalidate_inodes(sb);
drop_super(sb);
}
invalidate_bdev(bdev, 0);
return res;
}
EXPORT_SYMBOL(__invalidate_device);
21 changes: 0 additions & 21 deletions trunk/fs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -362,27 +362,6 @@ int invalidate_inodes(struct super_block * sb)
}

EXPORT_SYMBOL(invalidate_inodes);

int __invalidate_device(struct block_device *bdev)
{
struct super_block *sb = get_super(bdev);
int res = 0;

if (sb) {
/*
* no need to lock the super, get_super holds the
* read mutex so the filesystem cannot go away
* under us (->put_super runs with the write lock
* hold).
*/
shrink_dcache_sb(sb);
res = invalidate_inodes(sb);
drop_super(sb);
}
invalidate_bdev(bdev, 0);
return res;
}
EXPORT_SYMBOL(__invalidate_device);

static int can_unuse(struct inode *inode)
{
Expand Down

0 comments on commit 7bcc427

Please sign in to comment.