diff --git a/lustre/llite/llite_lib.c b/lustre/llite/llite_lib.c index 43651c6cac28a33cd82bf5d497249131bbd16371..0fd008c1a29eec0d7cdc7a732741fc941d93e1a2 100644 --- a/lustre/llite/llite_lib.c +++ b/lustre/llite/llite_lib.c @@ -1818,6 +1818,7 @@ void ll_delete_inode(struct inode *inode) if (rc) { CERROR("fid_delete() failed, rc %d\n", rc); } + truncate_inode_pages(&inode->i_data, 0); clear_inode(inode); EXIT;