X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fllite%2Fvvp_object.c;h=35c31e29a1e9b4cecb511e473ab7ca3dc66674d4;hp=4abf00880e7aefc1818969c57ca8f8f500f26c8c;hb=7d5d004506650c3739898e70d72c9a86b8aeeb88;hpb=057fafc018d7369dd9ec74641286446f5ba38491 diff --git a/lustre/llite/vvp_object.c b/lustre/llite/vvp_object.c index 4abf008..35c31e2 100644 --- a/lustre/llite/vvp_object.c +++ b/lustre/llite/vvp_object.c @@ -167,13 +167,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); }