Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
0d4f14fe
Commit
0d4f14fe
authored
Oct 04, 2003
by
Rusty Russell
Committed by
Linus Torvalds
Oct 04, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Get rid of magic numbers in fs
From: Scharfe <l.s.r@web.de>
parent
6d9298c7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
drivers/block/genhd.c
drivers/block/genhd.c
+2
-2
fs/partitions/check.c
fs/partitions/check.c
+1
-1
No files found.
drivers/block/genhd.c
View file @
0d4f14fe
...
...
@@ -250,7 +250,7 @@ static int show_partition(struct seq_file *part, void *v)
{
struct
gendisk
*
sgp
=
v
;
int
n
;
char
buf
[
64
];
char
buf
[
BDEVNAME_SIZE
];
if
(
&
sgp
->
kobj
.
entry
==
block_subsys
.
kset
.
list
.
next
)
seq_puts
(
part
,
"major minor #blocks name
\n\n
"
);
...
...
@@ -472,7 +472,7 @@ static void diskstats_stop(struct seq_file *part, void *v)
static
int
diskstats_show
(
struct
seq_file
*
s
,
void
*
v
)
{
struct
gendisk
*
gp
=
v
;
char
buf
[
64
];
char
buf
[
BDEVNAME_SIZE
];
int
n
=
0
;
/*
...
...
fs/partitions/check.c
View file @
0d4f14fe
...
...
@@ -111,7 +111,7 @@ static int (*check_part[])(struct parsed_partitions *, struct block_device *) =
};
/*
* disk_name() is used by partition check code and the
m
d driver.
* disk_name() is used by partition check code and the
genh
d driver.
* It formats the devicename of the indicated disk into
* the supplied buffer (of size at least 32), and returns
* a pointer to that same buffer (for convenience).
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment