#ifdef HAVE_RCU
# ifdef HAVE_CALL_RCU_PARAM
-# define my_call_rcu(rcu, cb) call_rcu(rcu, cb, rcu)
+# define my_call_rcu(rcu, cb) call_rcu(rcu, (void (*) (void *))(cb), rcu)
# else
# define my_call_rcu(rcu, cb) call_rcu(rcu, cb)
# endif
LL_CDEBUG_PAGE(D_PAGE, pages[i], "offset "LPU64","
" from %u, bytes = %u\n",
- pos, from, bytes);
+ (__u64)pos, from, bytes);
LASSERTF(pos >> CFS_PAGE_SHIFT == pages[i]->index,
"wrong page index %lu (%lu)\n",
pages[i]->index,
static int fsfilt_ext3_setup(struct super_block *sb)
{
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,6)) && defined(HAVE_QUOTA_SUPPORT)
+#if !defined(S_PDIROPS) && (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,6)) && defined(HAVE_QUOTA_SUPPORT)
struct ext3_sb_info *sbi = EXT3_SB(sb);
#endif
#if 0
bufcount, size);
if (rc & (rc - 1))
size[bufcount - 1] = min(size[bufcount - 1] + round_up(rc) - rc,
- obddev->u.cli.cl_max_mds_easize);
+ (__u32)obddev->u.cli.cl_max_mds_easize);
/* If inode is known, cancel conflicting OPEN locks. */
if (data->fid2.id) {
}
if (lvb->lvb_blocks != dentry->d_inode->i_blocks) {
CDEBUG(D_DLMTRACE,"res: "LPU64" updating lvb blocks from disk: "
- LPU64" -> %lu\n", res->lr_name.name[0],
- lvb->lvb_blocks, dentry->d_inode->i_blocks);
+ LPU64" -> "LPU64"\n", res->lr_name.name[0],
+ lvb->lvb_blocks, (__u64)dentry->d_inode->i_blocks);
lvb->lvb_blocks = dentry->d_inode->i_blocks;
}
", pending_write: "LPU64", record: "LPD64
", qunit_sz: %lu, tune_sz: %lu, ret: %d.\n",
QDATA_IS_BLK(qdata) ? 'b' : 'i', limit, usage, pending_write,
- record, qunit_sz, tune_sz, ret);
+ (__s64)record, qunit_sz, tune_sz, ret);
LASSERT(ret == 0 || qdata->qd_count);
spin_unlock(&lqs->lqs_lock);
LQS_IS_GRP(lqs) ? 'g' : 'u', \
lqs->lqs_bunit_sz, lqs->lqs_btune_sz, lqs->lqs_iunit_sz, \
lqs->lqs_itune_sz, lqs->lqs_bwrite_pending, \
- lqs->lqs_iwrite_pending, lqs->lqs_ino_rec, \
- lqs->lqs_blk_rec, atomic_read(&lqs->lqs_refcount), ## arg);
+ lqs->lqs_iwrite_pending, (__s64)lqs->lqs_ino_rec, \
+ (__s64)lqs->lqs_blk_rec, atomic_read(&lqs->lqs_refcount), \
+ ## arg);
/* quota_context.c */
struct stat stat_buf;
char tmp_path[PATH_MAX];
char mount_path[PATH_MAX] = {0};
- char c;
+ int c;
int retval;
progname = argv[0];
if (lcfg->lcfg_nid)
printf("nid=%s("LPX64") ", libcfs_nid2str(lcfg->lcfg_nid),
- lcfg->lcfg_nid);
+ (__u64)lcfg->lcfg_nid);
if (lcfg->lcfg_nal)
printf("nal=%d ", lcfg->lcfg_nal);
for (i = 0; i < lcfg->lcfg_bufcount; i++)
FILE *countfile = NULL;
char filecount[PATH_MAX];
unsigned long dir_num = 0, dir_num_orig = 0;/* starting directory */
- char c;
+ int c;
progname = strrchr(argv[0], '/') ? strrchr(argv[0], '/') + 1 : argv[0];
- while ((c = (char)getopt_long(argc, argv, "t:rwvplo:h",
+ while ((c = getopt_long(argc, argv, "t:rwvplo:h",
longopts, NULL)) != -1) {
switch (c) {
case 'c':