Whamcloud - gitweb
Code is dead, dead, dead, and keeps showing up in my greps.
authoradilger <adilger>
Fri, 14 Nov 2003 22:50:30 +0000 (22:50 +0000)
committeradilger <adilger>
Fri, 14 Nov 2003 22:50:30 +0000 (22:50 +0000)
lustre/liblustre/file.c

index 49b444d..a54d7dd 100644 (file)
@@ -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;