libceph: reference counting pagelist
[firefly-linux-kernel-4.4.55.git] / fs / ocfs2 / refcounttree.c
index 636aab69ead559f718a9ebef4e6ca5e8dfad933e..d81f6e2a97f5d4c70d6324cf0a7483a874cd7b9a 100644 (file)
@@ -3109,7 +3109,7 @@ static int ocfs2_clear_ext_refcount(handle_t *handle,
        el = path_leaf_el(path);
 
        index = ocfs2_search_extent_list(el, cpos);
-       if (index == -1 || index >= le16_to_cpu(el->l_next_free_rec)) {
+       if (index == -1) {
                ocfs2_error(sb,
                            "Inode %llu has an extent at cpos %u which can no "
                            "longer be found.\n",