@@ -191,12 +191,10 @@ static int nilfs_prepare_segment_lock(struct super_block *sb,
191191 * When @vacancy_check flag is set, this function will check the amount of
192192 * free space, and will wait for the GC to reclaim disk space if low capacity.
193193 *
194- * Return Value: On success, 0 is returned. On error, one of the following
195- * negative error code is returned.
196- *
197- * %-ENOMEM - Insufficient memory available.
198- *
199- * %-ENOSPC - No space left on device
194+ * Return: 0 on success, or one of the following negative error codes on
195+ * failure:
196+ * * %-ENOMEM - Insufficient memory available.
197+ * * %-ENOSPC - No space left on device (if checking free space).
200198 */
201199int nilfs_transaction_begin (struct super_block * sb ,
202200 struct nilfs_transaction_info * ti ,
@@ -2314,18 +2312,13 @@ static void nilfs_segctor_wakeup(struct nilfs_sc_info *sci, int err, bool force)
23142312 * nilfs_construct_segment - construct a logical segment
23152313 * @sb: super block
23162314 *
2317- * Return Value: On success, 0 is returned. On errors, one of the following
2318- * negative error code is returned.
2319- *
2320- * %-EROFS - Read only filesystem.
2321- *
2322- * %-EIO - I/O error
2323- *
2324- * %-ENOSPC - No space left on device (only in a panic state).
2325- *
2326- * %-ERESTARTSYS - Interrupted.
2327- *
2328- * %-ENOMEM - Insufficient memory available.
2315+ * Return: 0 on success, or one of the following negative error codes on
2316+ * failure:
2317+ * * %-EIO - I/O error (including metadata corruption).
2318+ * * %-ENOMEM - Insufficient memory available.
2319+ * * %-ENOSPC - No space left on device (only in a panic state).
2320+ * * %-ERESTARTSYS - Interrupted.
2321+ * * %-EROFS - Read only filesystem.
23292322 */
23302323int nilfs_construct_segment (struct super_block * sb )
23312324{
@@ -2349,18 +2342,13 @@ int nilfs_construct_segment(struct super_block *sb)
23492342 * @start: start byte offset
23502343 * @end: end byte offset (inclusive)
23512344 *
2352- * Return Value: On success, 0 is returned. On errors, one of the following
2353- * negative error code is returned.
2354- *
2355- * %-EROFS - Read only filesystem.
2356- *
2357- * %-EIO - I/O error
2358- *
2359- * %-ENOSPC - No space left on device (only in a panic state).
2360- *
2361- * %-ERESTARTSYS - Interrupted.
2362- *
2363- * %-ENOMEM - Insufficient memory available.
2345+ * Return: 0 on success, or one of the following negative error codes on
2346+ * failure:
2347+ * * %-EIO - I/O error (including metadata corruption).
2348+ * * %-ENOMEM - Insufficient memory available.
2349+ * * %-ENOSPC - No space left on device (only in a panic state).
2350+ * * %-ERESTARTSYS - Interrupted.
2351+ * * %-EROFS - Read only filesystem.
23642352 */
23652353int nilfs_construct_dsync_segment (struct super_block * sb , struct inode * inode ,
23662354 loff_t start , loff_t end )
0 commit comments