shmem_restore needs to use ckpt_obj_try_fetch
Subsystems (2)
PATCH 1/1 shmem_restore needs to use ckpt_obj_try_fetch
Signed-off-by Serge E. Hallyn <serue-r/[email protected]>
--- mm/shmem.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
mm/shmem.c +1 -1
@@ -2419,7 +2419,7 @@ int shmem_restore(struct ckpt_ctx *ctx,struct file *file;int ret =0 ; - file =ckpt_obj_fetch (ctx, h->ino_objref,CKPT_OBJ_FILE ); + file =ckpt_obj_try_fetch (ctx, h->ino_objref,CKPT_OBJ_FILE );if (PTR_ERR (file) == -EINVAL ) file =NULL ;if (IS_ERR (file))
Signature · 1 line
1.6.1
A message that is not in the archive (sent off-list or not yet received): 20091202221349.GA15335-r/[email protected]
Oh, we missed it when introducing ckpt_obj_try_fetch()... Adding now.
thanks,
Oren.
Quoted 18 lines · Serge E. Hallyn
Signed-off-by Serge E. Hallyn <serue-r/[email protected]>--- mm/shmem.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)mm/shmem.c +1
-1@@ -2419,7 +2419,7 @@ int shmem_restore(struct ckpt_ctx *ctx,struct file *file;int ret =0 ; - file =ckpt_obj_fetch (ctx, h->ino_objref,CKPT_OBJ_FILE ); + file =ckpt_obj_try_fetch (ctx, h->ino_objref,CKPT_OBJ_FILE );if (PTR_ERR (file) == -EINVAL ) file =NULL ;if (IS_ERR (file))