diff options
author | Seunghun Lee <waydi1@gmail.com> | 2014-07-01 10:45:25 -0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2014-07-19 02:53:51 -0400 |
commit | d685c41215add974ea81085c655232a0d2bd774c (patch) | |
tree | 859ab9bd480897026ed899bc933124c192c39b5b /fs/ubifs | |
parent | c7b5bb0beb80e5ee993118ae82d0b8264526b6bf (diff) |
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>
Diffstat (limited to 'fs/ubifs')
-rw-r--r-- | fs/ubifs/recovery.c | 4 | ||||
-rw-r--r-- | fs/ubifs/scan.c | 5 |
2 files changed, 4 insertions, 5 deletions
diff --git a/fs/ubifs/recovery.c b/fs/ubifs/recovery.c index c14adb2f420c..0214d62b7d56 100644 --- a/fs/ubifs/recovery.c +++ b/fs/ubifs/recovery.c | |||
@@ -629,8 +629,8 @@ static void drop_last_node(struct ubifs_scan_leb *sleb, int *offs) | |||
629 | * | 629 | * |
630 | * This function does a scan of a LEB, but caters for errors that might have | 630 | * This function does a scan of a LEB, but caters for errors that might have |
631 | * been caused by the unclean unmount from which we are attempting to recover. | 631 | * been caused by the unclean unmount from which we are attempting to recover. |
632 | * Returns %0 in case of success, %-EUCLEAN if an unrecoverable corruption is | 632 | * Returns the scaned information on success and a negative error code on |
633 | * found, and a negative error code in case of failure. | 633 | * failure. |
634 | */ | 634 | */ |
635 | struct ubifs_scan_leb *ubifs_recover_leb(struct ubifs_info *c, int lnum, | 635 | struct ubifs_scan_leb *ubifs_recover_leb(struct ubifs_info *c, int lnum, |
636 | int offs, void *sbuf, int jhead) | 636 | int offs, void *sbuf, int jhead) |
diff --git a/fs/ubifs/scan.c b/fs/ubifs/scan.c index e5b7c591841b..890d42c204b9 100644 --- a/fs/ubifs/scan.c +++ b/fs/ubifs/scan.c | |||
@@ -131,7 +131,8 @@ int ubifs_scan_a_node(const struct ubifs_info *c, void *buf, int len, int lnum, | |||
131 | * @offs: offset to start at (usually zero) | 131 | * @offs: offset to start at (usually zero) |
132 | * @sbuf: scan buffer (must be c->leb_size) | 132 | * @sbuf: scan buffer (must be c->leb_size) |
133 | * | 133 | * |
134 | * This function returns %0 on success and a negative error code on failure. | 134 | * This function returns the scaned information on success and a negative error |
135 | * code on failure. | ||
135 | */ | 136 | */ |
136 | struct ubifs_scan_leb *ubifs_start_scan(const struct ubifs_info *c, int lnum, | 137 | struct ubifs_scan_leb *ubifs_start_scan(const struct ubifs_info *c, int lnum, |
137 | int offs, void *sbuf) | 138 | int offs, void *sbuf) |
@@ -170,8 +171,6 @@ struct ubifs_scan_leb *ubifs_start_scan(const struct ubifs_info *c, int lnum, | |||
170 | * @sleb: scanning information | 171 | * @sleb: scanning information |
171 | * @lnum: logical eraseblock number | 172 | * @lnum: logical eraseblock number |
172 | * @offs: offset to start at (usually zero) | 173 | * @offs: offset to start at (usually zero) |
173 | * | ||
174 | * This function returns %0 on success and a negative error code on failure. | ||
175 | */ | 174 | */ |
176 | void ubifs_end_scan(const struct ubifs_info *c, struct ubifs_scan_leb *sleb, | 175 | void ubifs_end_scan(const struct ubifs_info *c, struct ubifs_scan_leb *sleb, |
177 | int lnum, int offs) | 176 | int lnum, int offs) |