hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/fs/nilfs2/cpfile.c
....@@ -322,7 +322,7 @@
322322 int ret, ncps, nicps, nss, count, i;
323323
324324 if (unlikely(start == 0 || start > end)) {
325
- nilfs_msg(cpfile->i_sb, KERN_ERR,
325
+ nilfs_err(cpfile->i_sb,
326326 "cannot delete checkpoints: invalid range [%llu, %llu)",
327327 (unsigned long long)start, (unsigned long long)end);
328328 return -EINVAL;
....@@ -376,7 +376,7 @@
376376 cpfile, cno);
377377 if (ret == 0)
378378 continue;
379
- nilfs_msg(cpfile->i_sb, KERN_ERR,
379
+ nilfs_err(cpfile->i_sb,
380380 "error %d deleting checkpoint block",
381381 ret);
382382 break;
....@@ -889,7 +889,7 @@
889889 * nilfs_cpfile_change_cpmode - change checkpoint mode
890890 * @cpfile: inode of checkpoint file
891891 * @cno: checkpoint number
892
- * @status: mode of checkpoint
892
+ * @mode: mode of checkpoint
893893 *
894894 * Description: nilfs_change_cpmode() changes the mode of the checkpoint
895895 * specified by @cno. The mode @mode is NILFS_CHECKPOINT or NILFS_SNAPSHOT.
....@@ -930,12 +930,12 @@
930930 /**
931931 * nilfs_cpfile_get_stat - get checkpoint statistics
932932 * @cpfile: inode of checkpoint file
933
- * @stat: pointer to a structure of checkpoint statistics
933
+ * @cpstat: pointer to a structure of checkpoint statistics
934934 *
935935 * Description: nilfs_cpfile_get_stat() returns information about checkpoints.
936936 *
937937 * Return Value: On success, 0 is returned, and checkpoints information is
938
- * stored in the place pointed by @stat. On error, one of the following
938
+ * stored in the place pointed by @cpstat. On error, one of the following
939939 * negative error codes is returned.
940940 *
941941 * %-EIO - I/O error.
....@@ -981,12 +981,10 @@
981981 int err;
982982
983983 if (cpsize > sb->s_blocksize) {
984
- nilfs_msg(sb, KERN_ERR,
985
- "too large checkpoint size: %zu bytes", cpsize);
984
+ nilfs_err(sb, "too large checkpoint size: %zu bytes", cpsize);
986985 return -EINVAL;
987986 } else if (cpsize < NILFS_MIN_CHECKPOINT_SIZE) {
988
- nilfs_msg(sb, KERN_ERR,
989
- "too small checkpoint size: %zu bytes", cpsize);
987
+ nilfs_err(sb, "too small checkpoint size: %zu bytes", cpsize);
990988 return -EINVAL;
991989 }
992990