@@ -226,20 +226,21 @@ static int nilfs_mdt_read_block(struct inode *inode, unsigned long block,
226226 * @out_bh: output of a pointer to the buffer_head
227227 *
228228 * nilfs_mdt_get_block() looks up the specified buffer and tries to create
229- * a new buffer if @create is not zero. On success, the returned buffer is
230- * assured to be either existing or formatted using a buffer lock on success.
231- * @out_bh is substituted only when zero is returned .
229+ * a new buffer if @create is not zero. If (and only if) this function
230+ * succeeds, it stores a pointer to the retrieved buffer head in the location
231+ * pointed to by @out_bh .
232232 *
233- * Return Value: On success, it returns 0. On error, the following negative
234- * error code is returned.
233+ * The retrieved buffer may be either an existing one or a newly allocated one.
234+ * For a newly created buffer, if the callback function argument @init_block
235+ * is non-NULL, the callback will be called with the buffer locked to format
236+ * the block.
235237 *
236- * %-ENOMEM - Insufficient memory available.
237- *
238- * %-EIO - I/O error
239- *
240- * %-ENOENT - the specified block does not exist (hole block)
241- *
242- * %-EROFS - Read only filesystem (for create mode)
238+ * Return: 0 on success, or one of the following negative error codes on
239+ * failure:
240+ * * %-EIO - I/O error (including metadata corruption).
241+ * * %-ENOENT - The specified block does not exist (hole block).
242+ * * %-ENOMEM - Insufficient memory available.
243+ * * %-EROFS - Read only filesystem (for create mode).
243244 */
244245int nilfs_mdt_get_block (struct inode * inode , unsigned long blkoff , int create ,
245246 void (* init_block )(struct inode * ,
@@ -275,14 +276,11 @@ int nilfs_mdt_get_block(struct inode *inode, unsigned long blkoff, int create,
275276 * @out_bh, and block offset to @blkoff, respectively. @out_bh and
276277 * @blkoff are substituted only when zero is returned.
277278 *
278- * Return Value: On success, it returns 0. On error, the following negative
279- * error code is returned.
280- *
281- * %-ENOMEM - Insufficient memory available.
282- *
283- * %-EIO - I/O error
284- *
285- * %-ENOENT - no block was found in the range
279+ * Return: 0 on success, or one of the following negative error codes on
280+ * failure:
281+ * * %-EIO - I/O error (including metadata corruption).
282+ * * %-ENOENT - No block was found in the range.
283+ * * %-ENOMEM - Insufficient memory available.
286284 */
287285int nilfs_mdt_find_block (struct inode * inode , unsigned long start ,
288286 unsigned long end , unsigned long * blkoff ,
@@ -321,12 +319,11 @@ int nilfs_mdt_find_block(struct inode *inode, unsigned long start,
321319 * @inode: inode of the meta data file
322320 * @block: block offset
323321 *
324- * Return Value: On success, zero is returned.
325- * On error, one of the following negative error code is returned.
326- *
327- * %-ENOMEM - Insufficient memory available.
328- *
329- * %-EIO - I/O error
322+ * Return: 0 on success, or one of the following negative error codes on
323+ * failure:
324+ * * %-EIO - I/O error (including metadata corruption).
325+ * * %-ENOENT - Non-existent block.
326+ * * %-ENOMEM - Insufficient memory available.
330327 */
331328int nilfs_mdt_delete_block (struct inode * inode , unsigned long block )
332329{
@@ -349,12 +346,10 @@ int nilfs_mdt_delete_block(struct inode *inode, unsigned long block)
349346 * nilfs_mdt_forget_block() clears a dirty flag of the specified buffer, and
350347 * tries to release the page including the buffer from a page cache.
351348 *
352- * Return Value: On success, 0 is returned. On error, one of the following
353- * negative error code is returned.
354- *
355- * %-EBUSY - page has an active buffer.
356- *
357- * %-ENOENT - page cache has no page addressed by the offset.
349+ * Return: 0 on success, or one of the following negative error codes on
350+ * failure:
351+ * * %-EBUSY - Page has an active buffer.
352+ * * %-ENOENT - Page cache has no page addressed by the offset.
358353 */
359354int nilfs_mdt_forget_block (struct inode * inode , unsigned long block )
360355{
0 commit comments