From: nikita Date: Wed, 2 Aug 2006 13:29:27 +0000 (+0000) Subject: osd: fix type declaration X-Git-Tag: v1_8_0_110~486^2~1296 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=b25e4b20d2249eac655b200a325845c7077901dc;p=fs%2Flustre-release.git osd: fix type declaration --- diff --git a/lustre/osd/osd_handler.c b/lustre/osd/osd_handler.c index d1f085e..f295b13 100644 --- a/lustre/osd/osd_handler.c +++ b/lustre/osd/osd_handler.c @@ -717,7 +717,7 @@ static int osd_mkreg(struct osd_thread_info *info, struct osd_object *obj, { LASSERT(S_ISREG(attr->la_mode)); return osd_mkfile(info, obj, - S_IFREG | (attr->la_mode & (S_IRWXUGO|S_ISVTX)), + S_IFREG | (attr->la_mode & (S_IRWXUGO|S_ISVTX)), th); } @@ -727,7 +727,7 @@ static int osd_mksym(struct osd_thread_info *info, struct osd_object *obj, LASSERT(S_ISLNK(attr->la_mode)); return osd_mkfile(info, obj, - S_IFLNK | (attr->la_mode & (S_IRWXUGO|S_ISVTX)), + S_IFLNK | (attr->la_mode & (S_IRWXUGO|S_ISVTX)), th); } @@ -1099,9 +1099,9 @@ static ssize_t osd_read(const struct lu_context *ctxt, struct dt_object *dt, return result; } -static int osd_write(const struct lu_context *ctxt, struct dt_object *dt, - const void *buf, size_t count, loff_t *pos, - struct thandle *handle) +static ssize_t osd_write(const struct lu_context *ctxt, struct dt_object *dt, + const void *buf, size_t count, loff_t *pos, + struct thandle *handle) { struct inode *inode = osd_dt_obj(dt)->oo_inode; struct file *file;