X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fllite%2Fvvp_object.c;fp=lustre%2Fllite%2Fvvp_object.c;h=de4ecd87753d231e1bb10dd570e0ae06f277d960;hb=a9a1e19b0f55e2f54a6b1384af41707d951033da;hp=c3bf7156675771d5b7d2e52cdd17f7be05ba2240;hpb=bd5719972b1f44f9db8a6f26a55225145e05288c;p=fs%2Flustre-release.git diff --git a/lustre/llite/vvp_object.c b/lustre/llite/vvp_object.c index c3bf715..de4ecd8 100644 --- a/lustre/llite/vvp_object.c +++ b/lustre/llite/vvp_object.c @@ -168,13 +168,8 @@ static int vvp_prune(const struct lu_env *env, struct cl_object *obj) RETURN(rc); } - truncate_inode_pages(inode->i_mapping, 0); - if (inode->i_mapping->nrpages) { - CDEBUG(D_VFSTRACE, DFID ": still has %lu pages remaining\n", - PFID(lu_object_fid(&obj->co_lu)), - inode->i_mapping->nrpages); - RETURN(-EIO); - } + ll_truncate_inode_pages_final(inode); + clear_bit(AS_EXITING, &inode->i_mapping->flags); RETURN(0); }