Whamcloud - gitweb
small changes and fixes to get the filter OBD working fully.
[fs/lustre-release.git] / lustre / obdfs / rw.c
index 5fcd525..501a2df 100644 (file)
@@ -692,7 +692,7 @@ void obdfs_truncate(struct inode *inode)
                 obdo.o_valid = OBD_MD_FLNOTOBD;
                 obdfs_from_inode(&obdo, inode);
 
-                err = IOPS(inode, punch)(IID(inode), &obdo, obdo.o_size, 0);
+                err = IOPS(inode, punch)(IID(inode), &obdo, 0, obdo.o_size);
         } else {
                 oa->o_valid = OBD_MD_FLNOTOBD;
                 obdfs_from_inode(oa, inode);