Skip to content

Commit

Permalink
swap-stop-add-to-avail-list-is-swap-is-full-checkpatch-fixes
Browse files Browse the repository at this point in the history
fix typo in comment

WARNING: 'avaliable' may be misspelled - perhaps 'available'?
torvalds#60: FILE: mm/swapfile.c:2332:
+	/* add to avaliable list iff swap device is not full */
 	          ^^^^^^^^^

total: 0 errors, 1 warnings, 11 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/swap-stop-add-to-avail-list-is-swap-is-full.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: Hugh Dickins <[email protected]>
Cc: Ma Wupeng <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
  • Loading branch information
akpm00 committed Aug 10, 2023
1 parent 06bdd41 commit 5e36aeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/swapfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -2329,7 +2329,7 @@ static void _enable_swap_info(struct swap_info_struct *p)
*/
plist_add(&p->list, &swap_active_head);

/* add to avaliable list iff swap device is not full */
/* add to available list iff swap device is not full */
if (p->highest_bit)
add_to_avail_list(p);
}
Expand Down

0 comments on commit 5e36aeb

Please sign in to comment.