Skip to contentSkip to conversation

UBIFS: fix some comments

PATCH Applied Seunghun Lee 3 participants 4 messages Jul 1, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 UBIFS: fix some comments

This patch fixes some comments about return type.

---
 fs/ubifs/recovery.c |    4 ++--
 fs/ubifs/scan.c     |    5 ++---
 2 files changed, 4 insertions(+), 5 deletions(-)
fs/ubifs/recovery.c +2 -2
index c14adb2..933dda5 100644
@@ -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
  * 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
- * found, and a negative error code in case of failure.
+ * Returns the scaned information on success and a negative error code on
+ * failure.
  */
 struct ubifs_scan_leb *ubifs_recover_leb(struct ubifs_info *c, int lnum,
 					 int offs, void *sbuf, int jhead)
fs/ubifs/scan.c +2 -3
index 58aa05d..327d84a 100644
@@ -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)
  * @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,
 					int offs, void *sbuf)
@@ -169,8 +170,6 @@ struct ubifs_scan_leb *ubifs_start_scan(const struct ubifs_info *c, int lnum,
  * @sleb: scanning information
  * @lnum: logical eraseblock number
  * @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,
 		    int lnum, int offs)
Signature · 1 line
1.7.9.5
#2 lore raw
In reply to Seunghun Lee
Quoted 13 lines · Seunghun Lee

This patch fixes some comments about return type.

---
 fs/ubifs/recovery.c |    4 ++--
 fs/ubifs/scan.c     |    5 ++---
 2 files changed, 4 insertions(+), 5 deletions(-)
fs/ubifs/recovery.c +0 -0
index c14adb2..933dda5 100644

fs/ubifs/recovery.c static void drop_last_node(struct ubifs_scan_leb *sleb, int *offs) · line 632

Quoted 6 lines
fs/ubifs/recovery.c +1 -2
@@ -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
  * 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
- * found, and a negative error code in case of failure.
+ * Returns the scaned information on success and a negative error code on

scanned

Quoted 9 lines
fs/ubifs/recovery.c +1 -0
+ * failure.
  */
 struct ubifs_scan_leb *ubifs_recover_leb(struct ubifs_info *c, int lnum,
 					 int offs, void *sbuf, int jhead)
fs/ubifs/scan.c +0 -0
index 58aa05d..327d84a 100644

fs/ubifs/scan.c int ubifs_scan_a_node(const struct ubifs_info *c, void *buf, int len, int lnum, · line 134

Quoted 5 lines
fs/ubifs/scan.c +1 -1
@@ -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)
  * @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

scanned

Quoted 4 lines
fs/ubifs/scan.c +1 -0
+ * code on failure.
  */
 struct ubifs_scan_leb *ubifs_start_scan(const struct ubifs_info *c, int lnum,
 					int offs, void *sbuf)
Signature · 1 line
~Randy
#3 lore raw
Quoted 4 lines · Randy Dunlap
Quoted 2 lines

- * 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

scanned

I'll correct this, thanks!

Signature · 2 lines
Best Regards,
Artem Bityutskiy