RETURN(rc);
}
-static int ll_direct_IO_24(int rw, struct inode *inode, struct kiobuf *iobuf,
- unsigned long blocknr, int blocksize)
+static int ll_direct_IO_24(int rw,
+#ifdef HAVE_DIO_FILE
+ struct file *file,
+#else
+ struct inode *inode,
+#endif
+ struct kiobuf *iobuf, unsigned long blocknr,
+ int blocksize)
{
+#ifdef HAVE_DIO_FILE
+ struct inode *inode = file->f_dentry->d_inode;
+#endif
struct ll_inode_info *lli = ll_i2info(inode);
struct lov_stripe_md *lsm = lli->lli_smd;
struct brw_page *pga;
uncanceled++;
}
- l = snprintf(out, remains, "[Log Name]: %s\nLog Size: "LPD64"\n"
+ l = snprintf(out, remains, "[Log Name]: %s\nLog Size: %llu\n"
"Last Index: %d\nUncanceled Records: %d\n\n",
name[i],
handle->lgh_file->f_dentry->d_inode->i_size,
- handle->lgh_last_idx,
- uncanceled);
+ handle->lgh_last_idx, uncanceled);
out += l;
remains -= l;
}
l = snprintf(out, remains, "\t[Log ID]: #"LPX64"#"LPX64"#%08x\n"
- "\tLog Size: "LPD64"\n\tLast Index: %d\n"
+ "\tLog Size: %llu\n\tLast Index: %d\n"
"\tUncanceled Records: %d\n",
logid->lgl_oid, logid->lgl_ogr, logid->lgl_ogen,
handle->lgh_file->f_dentry->d_inode->i_size,