Skip to contentSkip to conversation

shmem_restore needs to use ckpt_obj_try_fetch

PATCH In review Serge E. Hallyn 2 participants 2 messages Dec 2, 2009 – Dec 3, 2009 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 shmem_restore needs to use ckpt_obj_try_fetch

---
 mm/shmem.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
mm/shmem.c +1 -1
index ee64a63..caa1c6a 100644
@@ -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]

#2 lore raw

Oh, we missed it when introducing ckpt_obj_try_fetch()... Adding now.

thanks,

Oren.

Quoted 18 lines · Serge E. Hallyn
---
 mm/shmem.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
mm/shmem.c +1 -1
index ee64a63..caa1c6a 100644
@@ -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))