{
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);
}
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);
}
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;