Whamcloud - gitweb
- The first unfinished bits of the DLM regression test. Move along, nothing to
[fs/lustre-release.git] / lustre / obdfilter / filter.c
index 8148df7..2bb1be8 100644 (file)
@@ -713,6 +713,7 @@ static int filter_truncate(struct obd_conn *conn, struct obdo *oa,
 
         CDEBUG(D_INODE, "calling truncate for object #%Ld, valid = %x, "
                "o_size = %Ld\n", oa->o_id, oa->o_valid, oa->o_size);
+        oa->o_valid = OBD_MD_FLSIZE;
         error = filter_setattr(conn, oa);
         oa->o_valid = OBD_MD_FLBLOCKS | OBD_MD_FLCTIME | OBD_MD_FLMTIME;