- bump LLOG_CHUNKSIZE to 8k to allow for larger clusters (2306)
- fix race in target_handle_connect (2898)
- mds_reint_create() should take same inode create lock (2926)
+ - reserve space for all logs during transactions (2059)
2004-03-04 Cluster File Systems, Inc. <info@clusterfs.com>
* version 1.2.0
int rc;
ENTRY;
- fdentry = handle->lgh_file->f_dentry;
+ fdentry = handle->lgh_file->f_dentry;
if (!strcmp(fdentry->d_parent->d_name.name, "LOGS")) {
+ struct obd_device *obd = handle->lgh_ctxt->loc_exp->exp_obd;
struct inode *inode = fdentry->d_parent->d_inode;
+ struct obd_run_ctxt saved;
+
+ push_ctxt(&saved, &obd->obd_ctxt, NULL);
+ dget(fdentry);
rc = llog_lvfs_close(handle);
if (rc)
RETURN(rc);
down(&inode->i_sem);
rc = vfs_unlink(inode, fdentry);
up(&inode->i_sem);
- RETURN(rc);
+ dput(fdentry);
+ pop_ctxt(&saved, &obd->obd_ctxt, NULL);
+ RETURN(rc);
}
oa = obdo_alloc();