From 9bdba9e0f7884dd3b565a5d4c13d685fda54749e Mon Sep 17 00:00:00 2001 From: yury Date: Sun, 14 Nov 2004 11:33:18 +0000 Subject: [PATCH] - more fixes about lmv_put_inode() --- lustre/llite/llite_lib.c | 9 ++++++--- lustre/lmv/lmv_obd.c | 7 +------ 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/lustre/llite/llite_lib.c b/lustre/llite/llite_lib.c index 6cd5960..80f368e 100644 --- a/lustre/llite/llite_lib.c +++ b/lustre/llite/llite_lib.c @@ -1381,14 +1381,17 @@ void ll_put_inode(struct inode *inode) int rc; ENTRY; - /* notifying metadata target of putting inode. */ + /* + * notifying metadata target that any in memory data assosiated + * with object @id should be removed. + */ if (atomic_read(&inode->i_count) == 1) { ll_inode2id(&id, inode); rc = md_put_inode(sbi->ll_lmv_exp, &id); if (rc) { - CERROR("md_put_inode() failed, " - "error %d.\n", rc); + CDEBUG("md_put_inode() failed, error %d\n", + rc); } } diff --git a/lustre/lmv/lmv_obd.c b/lustre/lmv/lmv_obd.c index bd6606a..f5262a9 100644 --- a/lustre/lmv/lmv_obd.c +++ b/lustre/lmv/lmv_obd.c @@ -1467,12 +1467,7 @@ int lmv_unlink_slaves(struct obd_export *exp, struct mdc_op_data *data, int lmv_put_inode(struct obd_export *exp, struct lustre_id *id) { ENTRY; - - if (!lmv_delete_obj(exp, id)) { - CDEBUG(D_OTHER, "object "DLID4" is not found.\n", - OLID4(id)); - } - + lmv_delete_obj(exp, id); RETURN(0); } -- 1.8.3.1