search for: 09c950b

Displaying 1 result from an estimated 1 matches for "09c950b".

Did you mean: 05c9b0b
2013 Oct 16
0
[PATCH] Btrfs: add tests for btrfs_get_extent V2
...efrag_cancelled(struct btrfs_fs_info *fs_info) return signal_pending(current); } +/* Sanity test specific functions */ +#ifdef CONFIG_BTRFS_FS_RUN_SANITY_TESTS +void btrfs_test_destroy_inode(struct inode *inode); +#endif #endif diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index d468246..09c950b 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -7794,6 +7794,14 @@ struct inode *btrfs_alloc_inode(struct super_block *sb) return inode; } +#ifdef CONFIG_BTRFS_FS_RUN_SANITY_TESTS +void btrfs_test_destroy_inode(struct inode *inode) +{ + btrfs_drop_extent_cache(inode, 0, (u64)-1, 0); +...