mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-15 08:44:14 +08:00
UBIFS: fix some comments
This patch fixes some comments about return type. Signed-off-by: Seunghun Lee <waydi1@gmail.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
This commit is contained in:
parent
c7b5bb0beb
commit
d685c41215
@ -629,8 +629,8 @@ static void drop_last_node(struct ubifs_scan_leb *sleb, int *offs)
|
|||||||
*
|
*
|
||||||
* This function does a scan of a LEB, but caters for errors that might have
|
* This function does a scan of a LEB, but caters for errors that might have
|
||||||
* been caused by the unclean unmount from which we are attempting to recover.
|
* been caused by the unclean unmount from which we are attempting to recover.
|
||||||
* Returns %0 in case of success, %-EUCLEAN if an unrecoverable corruption is
|
* Returns the scaned information on success and a negative error code on
|
||||||
* found, and a negative error code in case of failure.
|
* failure.
|
||||||
*/
|
*/
|
||||||
struct ubifs_scan_leb *ubifs_recover_leb(struct ubifs_info *c, int lnum,
|
struct ubifs_scan_leb *ubifs_recover_leb(struct ubifs_info *c, int lnum,
|
||||||
int offs, void *sbuf, int jhead)
|
int offs, void *sbuf, int jhead)
|
||||||
|
@ -131,7 +131,8 @@ int ubifs_scan_a_node(const struct ubifs_info *c, void *buf, int len, int lnum,
|
|||||||
* @offs: offset to start at (usually zero)
|
* @offs: offset to start at (usually zero)
|
||||||
* @sbuf: scan buffer (must be c->leb_size)
|
* @sbuf: scan buffer (must be c->leb_size)
|
||||||
*
|
*
|
||||||
* This function returns %0 on success and a negative error code on failure.
|
* This function returns the scaned information on success and a negative error
|
||||||
|
* code on failure.
|
||||||
*/
|
*/
|
||||||
struct ubifs_scan_leb *ubifs_start_scan(const struct ubifs_info *c, int lnum,
|
struct ubifs_scan_leb *ubifs_start_scan(const struct ubifs_info *c, int lnum,
|
||||||
int offs, void *sbuf)
|
int offs, void *sbuf)
|
||||||
@ -170,8 +171,6 @@ struct ubifs_scan_leb *ubifs_start_scan(const struct ubifs_info *c, int lnum,
|
|||||||
* @sleb: scanning information
|
* @sleb: scanning information
|
||||||
* @lnum: logical eraseblock number
|
* @lnum: logical eraseblock number
|
||||||
* @offs: offset to start at (usually zero)
|
* @offs: offset to start at (usually zero)
|
||||||
*
|
|
||||||
* This function returns %0 on success and a negative error code on failure.
|
|
||||||
*/
|
*/
|
||||||
void ubifs_end_scan(const struct ubifs_info *c, struct ubifs_scan_leb *sleb,
|
void ubifs_end_scan(const struct ubifs_info *c, struct ubifs_scan_leb *sleb,
|
||||||
int lnum, int offs)
|
int lnum, int offs)
|
||||||
|
Loading…
Reference in New Issue
Block a user