diff --git a/fs/btrfs/free-space-cache.c b/fs/btrfs/free-space-cache.c index ed26a5793cf77db17c2b35fc58ae80535767eb79..75172853d7139a0d136d95abc420df4ab2e816ea 100644 --- a/fs/btrfs/free-space-cache.c +++ b/fs/btrfs/free-space-cache.c @@ -213,7 +213,7 @@ int btrfs_check_trunc_cache_free_space(struct btrfs_root *root, else ret = 0; spin_unlock(&rsv->lock); - return 0; + return ret; } int btrfs_truncate_free_space_cache(struct btrfs_root *root,