seq_printf(p, "- %-8s %llu\n", "id:", *((__u64 *)key));
if (fid_is_acct(fid))
- seq_printf(p, " %-8s { inodes: %20llu, kbytes: %20llu }\n", "usage:",
- ((struct lquota_acct_rec *)rec)->ispace,
+ seq_printf(p, " %-8s { inodes: %12llu, kbytes: %12llu }\n",
+ "usage:", ((struct lquota_acct_rec *)rec)->ispace,
toqb(((struct lquota_acct_rec *)rec)->bspace));
else if (fid_seq(fid) == FID_SEQ_QUOTA_GLB ||
fid_seq(fid) == FID_SEQ_LOCAL_NAME)
- seq_printf(p, " %-8s { hard: %20llu, soft: %20llu, granted: %20llu, time: %20llu }\n",
+ seq_printf(p, " %-8s { hard: %12llu, soft: %12llu, granted: %12llu, time: %15llu }\n",
"limits:",
((struct lquota_glb_rec *)rec)->qbr_hardlimit,
((struct lquota_glb_rec *)rec)->qbr_softlimit,
return 0;
}
-struct seq_operations lprocfs_quota_seq_sops = {
+static const struct seq_operations lprocfs_quota_seq_sops = {
.start = lprocfs_quota_seq_start,
.stop = lprocfs_quota_seq_stop,
.next = lprocfs_quota_seq_next,
return -ENOMEM;
/* store pointer to object we would like to iterate over */
- lqp->lqp_obj = (struct dt_object *)PDE_DATA(inode);
+ lqp->lqp_obj = (struct dt_object *)pde_data(inode);
/* Initialize the common environment to be used in the seq operations */
rc = lu_env_init(&lqp->lqp_env, LCT_LOCAL);
return seq_release(inode, file);
}
-const struct file_operations lprocfs_quota_seq_fops = {
- .owner = THIS_MODULE,
- .open = lprocfs_quota_seq_open,
- .read = seq_read,
- .llseek = seq_lseek,
- .release = lprocfs_quota_seq_release,
+const struct proc_ops lprocfs_quota_seq_fops = {
+ PROC_OWNER(THIS_MODULE)
+ .proc_open = lprocfs_quota_seq_open,
+ .proc_read = seq_read,
+ .proc_lseek = seq_lseek,
+ .proc_release = lprocfs_quota_seq_release,
};
#endif /* CONFIG_PROC_FS */