diff options
author | Sven Wegener <sven.wegener@stealer.net> | 2008-06-09 21:57:42 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:04:03 -0400 |
commit | 3b96362cc8d314c935c335d5c3c42eb93c23166b (patch) | |
tree | 6d69302c9589d64ccb76f61b833f1a7151f9c841 /fs/btrfs/ctree.h | |
parent | 48ec2cf8738b0db53dc8361026cb7a328f7ad386 (diff) | |
download | op-kernel-dev-3b96362cc8d314c935c335d5c3c42eb93c23166b.zip op-kernel-dev-3b96362cc8d314c935c335d5c3c42eb93c23166b.tar.gz |
Btrfs: Invalidate dcache entry after creating snapshot and
We need to invalidate an existing dcache entry after creating a new
snapshot or subvolume, because a negative dache entry will stop us from
accessing the new snapshot or subvolume.
---
ctree.h | 23 +++++++++++++++++++++++
inode.c | 4 ++++
transaction.c | 4 ++++
3 files changed, 31 insertions(+)
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 7b73a9c..ad4eacc 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -1544,6 +1544,9 @@ int btrfs_csum_truncate(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, u64 isize); /* inode.c */ +void btrfs_invalidate_dcache_root(struct btrfs_root *root, char *name, + int namelen); + int btrfs_merge_bio_hook(struct page *page, unsigned long offset, size_t size, struct bio *bio); |