Skip to content

Commit

Permalink
tools/vm/page_owner_sort.c: two trivial fixes
Browse files Browse the repository at this point in the history
1) There is an unused variable. It's better to delete it.
2) One case is missing in the usage().

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Shenghong Han <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Shenghong Han authored and torvalds committed Mar 25, 2022
1 parent 8f9c447 commit e7a3f67
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/vm/page_owner_sort.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ static struct block_list *list;
static int list_size;
static int max_size;

struct block_list *block_head;

int read_block(char *buf, int buf_size, FILE *fin)
{
char *curr = buf, *const buf_end = buf + buf_size;
Expand Down Expand Up @@ -249,7 +247,8 @@ static void usage(void)
"-p Sort by pid.\n"
"-a Sort by memory allocate time.\n"
"-r Sort by memory release time.\n"
"-c cull by comparing stacktrace instead of total block.\n"
"-c Cull by comparing stacktrace instead of total block.\n"
"-f Filter out the information of blocks whose memory has not been released.\n"
);
}

Expand Down

0 comments on commit e7a3f67

Please sign in to comment.