From b25e4b20d2249eac655b200a325845c7077901dc Mon Sep 17 00:00:00 2001 From: nikita Date: Wed, 2 Aug 2006 13:29:27 +0000 Subject: [PATCH] osd: fix type declaration --- lustre/osd/osd_handler.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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; -- 1.8.3.1