From 4dd175bc0c6757b94e422efaea53fc4c31b74495 Mon Sep 17 00:00:00 2001 From: adilger Date: Fri, 14 Nov 2003 22:50:30 +0000 Subject: [PATCH] Code is dead, dead, dead, and keeps showing up in my greps. --- lustre/liblustre/file.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/lustre/liblustre/file.c b/lustre/liblustre/file.c index 49b444d..a54d7dd 100644 --- a/lustre/liblustre/file.c +++ b/lustre/liblustre/file.c @@ -471,25 +471,6 @@ static int llu_file_release(struct inode *inode) if (!fd) /* no process opened the file after an mcreate */ RETURN(rc = 0); -#if 0 - /* we might not be able to get a valid handle on this file - * again so we really want to flush our write cache.. */ - if (S_ISREG(inode->i_mode) && lsm) { - memset(&oa, 0, sizeof(oa)); - oa.o_id = lsm->lsm_object_id; - oa.o_mode = S_IFREG; - oa.o_valid = OBD_MD_FLTYPE | OBD_MD_FLID; - - memcpy(&oa.o_inline, &fd->fd_ost_och, FD_OSTDATA_SIZE); - oa.o_valid |= OBD_MD_FLHANDLE; - - rc = obd_close(ll_s2obdexp(sbi), &oa, lsm, NULL); - if (rc) - CERROR("inode %lu object close failed: rc = " - "%d\n", lli->lli_st_ino, rc); - } -#endif - rc2 = llu_mdc_close(&sbi->ll_mdc_conn, inode); if (rc2 && !rc) rc = rc2; -- 1.8.3.1