st->st_blocks = src->o_blocks;
}
+void llu_ioepoch_open(struct llu_inode_info *lli, __u64 ioepoch)
+{
+ if (ioepoch && lli->lli_ioepoch != ioepoch) {
+ lli->lli_ioepoch = ioepoch;
+ CDEBUG(D_INODE, "Epoch "LPU64" opened on "DFID" for truncate\n",
+ ioepoch, PFID(&lli->lli_fid));
+ }
+}
+
int llu_local_open(struct llu_inode_info *lli, struct lookup_intent *it)
{
struct ptlrpc_request *req = it->d.lustre.it_data;
fd->fd_mds_och.och_magic = OBD_CLIENT_HANDLE_MAGIC;
fd->fd_mds_och.och_fid = lli->lli_fid;
lli->lli_file_data = fd;
-
+ llu_ioepoch_open(lli, body->ioepoch);
md_set_open_replay_data(lli->lli_sbi->ll_md_exp,
&fd->fd_mds_och, it->d.lustre.it_data);