* GPL HEADER END
*/
/*
- * Copyright 2008 Sun Microsystems, Inc. All rights reserved
+ * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
/*
struct inode *inode = dentry->d_inode;
int rc;
- lock_kernel();
+ cfs_lock_kernel();
/* A _really_ horrible hack to avoid removing the data stored
* in the block pointers; this is really the "small" stripe MD data.
rc = inode_setattr(inode, iattr);
}
- unlock_kernel();
+ cfs_unlock_kernel();
return rc;
}
{
static unsigned long next = 0;
- if (time_after(jiffies, next)) {
+ if (cfs_time_after(jiffies, next)) {
CERROR("no journal callback kernel patch, faking it...\n");
- next = jiffies + 300 * HZ;
+ next = jiffies + 300 * CFS_HZ;
}
cb_func(obd, last_rcvd, cb_data, 0);
int rc;
memset(&sfs, 0, sizeof(sfs));
-
rc = ll_do_statfs(sb, &sfs);
-
statfs_pack(osfs, &sfs);
return rc;
}