X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fobdecho%2Fecho.c;h=947e4e45d3db661b7cbf295942ef435f456ef79f;hb=ae052f9f2e2699389617cbd12cc815f77f7e499b;hp=db3fa798f0c8fc6004092270d7163b4502c2acd7;hpb=17f35d4948a0970fa76dc491037c0a8e8d95e813;p=fs%2Flustre-release.git diff --git a/lustre/obdecho/echo.c b/lustre/obdecho/echo.c index db3fa79..947e4e4 100644 --- a/lustre/obdecho/echo.c +++ b/lustre/obdecho/echo.c @@ -104,9 +104,9 @@ static int echo_destroy_export(struct obd_export *exp) RETURN(0); } - static __u64 echo_next_id(struct obd_device *obddev) +static u64 echo_next_id(struct obd_device *obddev) { - obd_id id; + u64 id; spin_lock(&obddev->u.echo.eo_lock); id = ++obddev->u.echo.eo_lastino; @@ -173,7 +173,7 @@ static int echo_getattr(const struct lu_env *env, struct obd_export *exp, struct obd_info *oinfo) { struct obd_device *obd = class_exp2obd(exp); - obd_id id = ostid_id(&oinfo->oi_oa->o_oi); + u64 id = ostid_id(&oinfo->oi_oa->o_oi); ENTRY; if (!obd) { @@ -226,7 +226,7 @@ static int echo_setattr(const struct lu_env *env, struct obd_export *exp, } static void -echo_page_debug_setup(struct page *page, int rw, obd_id id, +echo_page_debug_setup(struct page *page, int rw, u64 id, __u64 offset, int len) { int page_offset = offset & ~CFS_PAGE_MASK; @@ -253,7 +253,7 @@ echo_page_debug_setup(struct page *page, int rw, obd_id id, } static int -echo_page_debug_check(struct page *page, obd_id id, +echo_page_debug_check(struct page *page, u64 id, __u64 offset, int len) { int page_offset = offset & ~CFS_PAGE_MASK; @@ -295,7 +295,7 @@ static int echo_map_nb_to_lb(struct obdo *oa, struct obd_ioobj *obj, (oa->o_valid & OBD_MD_FLFLAGS) != 0 && (oa->o_flags & OBD_FL_DEBUG_CHECK) != 0); struct niobuf_local *res = lb; - obd_off offset = nb->rnb_offset; + u64 offset = nb->rnb_offset; int len = nb->rnb_len; while (len > 0) { @@ -357,9 +357,9 @@ static int echo_finalize_lb(struct obdo *oa, struct obd_ioobj *obj, struct niobuf_local *lb, int verify) { struct niobuf_local *res = lb; - obd_off start = rb->rnb_offset >> PAGE_CACHE_SHIFT; - obd_off end = (rb->rnb_offset + rb->rnb_len + PAGE_CACHE_SIZE - 1) >> - PAGE_CACHE_SHIFT; + u64 start = rb->rnb_offset >> PAGE_CACHE_SHIFT; + u64 end = (rb->rnb_offset + rb->rnb_len + PAGE_CACHE_SIZE - 1) >> + PAGE_CACHE_SHIFT; int count = (int)(end - start); int rc = 0; int i;