X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fllite%2Fdir.c;h=870a94c215d96965247240c010ccb5d33fb32fa9;hp=e9c35ba569cda911feb9cf1a8819b5ae521d3200;hb=842a632e665f011b0acb76e99c88152fd3e380a6;hpb=8d8f071648d64f8a16591481064e13f590629caa diff --git a/lustre/llite/dir.c b/lustre/llite/dir.c index e9c35ba..870a94c 100644 --- a/lustre/llite/dir.c +++ b/lustre/llite/dir.c @@ -947,7 +947,7 @@ static int ll_ioc_copy_start(struct super_block *sb, struct hsm_copy *copy) } /* Read current file data version */ - rc = ll_data_version(inode, &data_version, 1); + rc = ll_data_version(inode, &data_version, LL_DV_RD_FLUSH); iput(inode); if (rc != 0) { CDEBUG(D_HSM, "Could not read file data version of " @@ -1031,8 +1031,7 @@ static int ll_ioc_copy_end(struct super_block *sb, struct hsm_copy *copy) GOTO(progress, rc = PTR_ERR(inode)); } - rc = ll_data_version(inode, &data_version, - copy->hc_hai.hai_action == HSMA_ARCHIVE); + rc = ll_data_version(inode, &data_version, LL_DV_RD_FLUSH); iput(inode); if (rc) { CDEBUG(D_HSM, "Could not read file data version. "