X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fosd-zfs%2Fosd_lproc.c;h=bc8a80777d0ca53117d4fe55b39d986e289ce06e;hp=0854ce6c0b08287fd55fa51f36ab0db50a60a578;hb=ad1f3518fa418b75d83809ccfcf6dd1489493726;hpb=041e699daec9e22a60ce8daf97a118933df031d4 diff --git a/lustre/osd-zfs/osd_lproc.c b/lustre/osd-zfs/osd_lproc.c index 0854ce6..bc8a807 100644 --- a/lustre/osd-zfs/osd_lproc.c +++ b/lustre/osd-zfs/osd_lproc.c @@ -140,8 +140,8 @@ static int lprocfs_osd_wr_force_sync(struct file *file, const char *buffer, return rc == 0 ? count : rc; } -static int lprocfs_osd_rd_iused_est(char *page, char **start, off_t off, int count, - int *eof, void *data) +static int lprocfs_osd_rd_iused_est(char *page, char **start, off_t off, + int count, int *eof, void *data) { struct osd_device *osd = osd_dt_dev((struct dt_device *)data); LASSERT(osd != NULL); @@ -149,8 +149,9 @@ static int lprocfs_osd_rd_iused_est(char *page, char **start, off_t off, int cou return snprintf(page, count, "%d\n", osd->od_quota_iused_est); } -static int lprocfs_osd_wr_iused_est(struct file *file, const char *buffer, - unsigned long count, void *data) +static int lprocfs_osd_wr_iused_est(struct file *file, + const char __user *buffer, + unsigned long count, void *data) { struct osd_device *osd = osd_dt_dev((struct dt_device *)data); int rc, val;