[Ocfs2-commits] mfasheh commits r1260 - trunk/src
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Wed Jul 14 20:03:31 CDT 2004
Author: mfasheh
Date: 2004-07-14 19:03:29 -0500 (Wed, 14 Jul 2004)
New Revision: 1260
Modified:
trunk/src/dir.c
Log:
* simple cleanup in readdir
Modified: trunk/src/dir.c
===================================================================
--- trunk/src/dir.c 2004-07-14 18:20:14 UTC (rev 1259)
+++ trunk/src/dir.c 2004-07-15 00:03:29 UTC (rev 1260)
@@ -104,21 +104,11 @@
}
have_disk_lock = 1;
-#if 0
- error = ocfs_verify_update_inode(osb, inode, &trunc, 0);
- if (error < 0) {
- LOG_ERROR_STATUS(error);
- stored = error;
- goto bail;
- }
- printk("dir (%lu) size is %llu\n", inode->i_ino, inode->i_size);
-#endif
-
offset = filp->f_pos & (sb->s_blocksize - 1);
while (!error && !stored && filp->f_pos < inode->i_size) {
blk = (filp->f_pos) >> sb->s_blocksize_bits;
- bh = ocfs_bread (0, inode, blk, 0, &err, 0);
+ bh = ocfs_bread (NULL, inode, blk, 0, &err, 0);
if (!bh) {
LOG_ERROR_ARGS ("directory #%llu contains a hole at offset %lu\n",
OCFS_I(inode)->ip_blkno,
More information about the Ocfs2-commits
mailing list