]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/staging/lustre/lustre/lov/lov_obd.c
staging/lustre: Get rid of an ugly statfs hack in lov_iocontrol
[karo-tx-linux.git] / drivers / staging / lustre / lustre / lov / lov_obd.c
index 6c2bdfe9cdcf7a861fda0f305cc777b33fec94c4..1dde0b8fa9a6b6ed9403f9506f95547bbf1dc320 100644 (file)
@@ -1420,7 +1420,9 @@ static int lov_iocontrol(unsigned int cmd, struct obd_export *exp, int len,
                                         (int) sizeof(struct obd_uuid))))
                        return -EFAULT;
 
-               flags = uarg ? *(__u32 *)uarg : 0;
+               memcpy(&flags, data->ioc_inlbuf1, sizeof(__u32));
+               flags = flags & LL_STATFS_NODELAY ? OBD_STATFS_NODELAY : 0;
+
                /* got statfs data */
                rc = obd_statfs(NULL, lov->lov_tgts[index]->ltd_exp, &stat_buf,
                                cfs_time_shift_64(-OBD_STATFS_CACHE_SECONDS),