Skip to content

Commit f2db1c8

Browse files
akpm00hnaz
authored andcommitted
mm-swap-add-swap_cluster_list-checkpatch-fixes
WARNING: Missing a blank line after declarations torvalds#91: FILE: mm/swapfile.c:285: + unsigned int tail = cluster_next(&list->tail); + cluster_set_next(&ci[tail], idx); WARNING: line over 80 characters torvalds#261: FILE: mm/swapfile.c:2347: + cluster_list_add_tail(&p->free_clusters, cluster_info, idx); total: 0 errors, 2 warnings, 222 lines checked NOTE: For some of the reported defects, checkpatch may be able to mechanically convert to the typical style using --fix or --fix-inplace. ./patches/mm-swap-add-swap_cluster_list.patch has style problems, please review. NOTE: If any of the errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. Please run checkpatch prior to sending patches Cc: Huang Ying <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 0de8157 commit f2db1c8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mm/swapfile.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ static void cluster_list_add_tail(struct swap_cluster_list *list,
282282
cluster_set_next_flag(&list->tail, idx, 0);
283283
} else {
284284
unsigned int tail = cluster_next(&list->tail);
285+
285286
cluster_set_next(&ci[tail], idx);
286287
cluster_set_next_flag(&list->tail, idx, 0);
287288
}
@@ -2344,7 +2345,8 @@ static int setup_swap_map_and_extents(struct swap_info_struct *p,
23442345
for (i = 0; i < nr_clusters; i++) {
23452346
if (!cluster_count(&cluster_info[idx])) {
23462347
cluster_set_flag(&cluster_info[idx], CLUSTER_FLAG_FREE);
2347-
cluster_list_add_tail(&p->free_clusters, cluster_info, idx);
2348+
cluster_list_add_tail(&p->free_clusters, cluster_info,
2349+
idx);
23482350
}
23492351
idx++;
23502352
if (idx == nr_clusters)

0 commit comments

Comments
 (0)