From cbaeeaa1b10e552d8bdc1416a98cd92ee9718fa3 Mon Sep 17 00:00:00 2001 From: phil Date: Sat, 7 Feb 2004 01:18:19 +0000 Subject: [PATCH] don't f_put(dentry) until we're finished using it, kthx. --- lustre/obdfilter/filter_lvb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/obdfilter/filter_lvb.c b/lustre/obdfilter/filter_lvb.c index 3c35d4b..a43d485 100644 --- a/lustre/obdfilter/filter_lvb.c +++ b/lustre/obdfilter/filter_lvb.c @@ -167,7 +167,6 @@ static int filter_lvbo_update(struct ldlm_resource *res, struct lustre_msg *m, /* Limit the valid bits in the return data to what we actually use */ oa->o_valid = OBD_MD_FLID; obdo_from_inode(oa, dentry->d_inode, FILTER_VALID_FLAGS); - f_dput(dentry); CDEBUG(D_DLMTRACE, "res: "LPU64" updating lvb size: "LPU64" -> "LPU64, res->lr_name.name[0], lvb->lvb_size, dentry->d_inode->i_size); @@ -176,6 +175,7 @@ static int filter_lvbo_update(struct ldlm_resource *res, struct lustre_msg *m, res->lr_name.name[0], lvb->lvb_time, (__u64)LTIME_S(dentry->d_inode->i_mtime)); lvb->lvb_time = LTIME_S(dentry->d_inode->i_mtime); + f_dput(dentry); out: if (oa != NULL) -- 1.8.3.1