@@ -236,7 +236,8 @@ static inline int nilfs_cpfile_delete_checkpoint_block(struct inode *cpfile,
236236 * stores it to the inode file given by @ifile and the nilfs root object
237237 * given by @root.
238238 *
239- * Return: 0 on success, or the following negative error code on failure.
239+ * Return: 0 on success, or one of the following negative error codes on
240+ * failure:
240241 * * %-EINVAL - Invalid checkpoint.
241242 * * %-ENOMEM - Insufficient memory available.
242243 * * %-EIO - I/O error (including metadata corruption).
@@ -304,7 +305,8 @@ int nilfs_cpfile_read_checkpoint(struct inode *cpfile, __u64 cno,
304305 * In either case, the buffer of the block containing the checkpoint entry
305306 * and the cpfile inode are made dirty for inclusion in the write log.
306307 *
307- * Return: 0 on success, or the following negative error code on failure.
308+ * Return: 0 on success, or one of the following negative error codes on
309+ * failure:
308310 * * %-ENOMEM - Insufficient memory available.
309311 * * %-EIO - I/O error (including metadata corruption).
310312 * * %-EROFS - Read only filesystem
@@ -373,7 +375,8 @@ int nilfs_cpfile_create_checkpoint(struct inode *cpfile, __u64 cno)
373375 * cpfile with the data given by the arguments @root, @blkinc, @ctime, and
374376 * @minor.
375377 *
376- * Return: 0 on success, or the following negative error code on failure.
378+ * Return: 0 on success, or one of the following negative error codes on
379+ * failure:
377380 * * %-ENOMEM - Insufficient memory available.
378381 * * %-EIO - I/O error (including metadata corruption).
379382 */
@@ -712,7 +715,7 @@ static ssize_t nilfs_cpfile_do_get_ssinfo(struct inode *cpfile, __u64 *cnop,
712715 * number to continue searching.
713716 *
714717 * Return: Count of checkpoint info items stored in the output buffer on
715- * success, or the following negative error code on failure.
718+ * success, or one of the following negative error codes on failure:
716719 * * %-EINVAL - Invalid checkpoint mode.
717720 * * %-ENOMEM - Insufficient memory available.
718721 * * %-EIO - I/O error (including metadata corruption).
@@ -737,7 +740,8 @@ ssize_t nilfs_cpfile_get_cpinfo(struct inode *cpfile, __u64 *cnop, int mode,
737740 * @cpfile: checkpoint file inode
738741 * @cno: checkpoint number to delete
739742 *
740- * Return: 0 on success, or the following negative error code on failure.
743+ * Return: 0 on success, or one of the following negative error codes on
744+ * failure:
741745 * * %-EBUSY - Checkpoint in use (snapshot specified).
742746 * * %-EIO - I/O error (including metadata corruption).
743747 * * %-ENOENT - No valid checkpoint found.
@@ -1005,7 +1009,7 @@ static int nilfs_cpfile_clear_snapshot(struct inode *cpfile, __u64 cno)
10051009 * @cno: checkpoint number
10061010 *
10071011 * Return: 1 if the checkpoint specified by @cno is a snapshot, 0 if not, or
1008- * the following negative error code on failure.
1012+ * one of the following negative error codes on failure:
10091013 * * %-EIO - I/O error (including metadata corruption).
10101014 * * %-ENOENT - No such checkpoint.
10111015 * * %-ENOMEM - Insufficient memory available.
0 commit comments