Skip to content

Commit 1f7e061

Browse files
JoePerchestorvalds
authored andcommitted
fs: convert use of typedef ctl_table to struct ctl_table
This typedef is unnecessary and should just be removed. Signed-off-by: Joe Perches <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 5eccdf3 commit 1f7e061

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

fs/dcache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ static long get_nr_dentry_unused(void)
150150
return sum < 0 ? 0 : sum;
151151
}
152152

153-
int proc_nr_dentry(ctl_table *table, int write, void __user *buffer,
153+
int proc_nr_dentry(struct ctl_table *table, int write, void __user *buffer,
154154
size_t *lenp, loff_t *ppos)
155155
{
156156
dentry_stat.nr_dentry = get_nr_dentry();

fs/drop_caches.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ static void drop_slab(void)
5050
} while (nr_objects > 10);
5151
}
5252

53-
int drop_caches_sysctl_handler(ctl_table *table, int write,
53+
int drop_caches_sysctl_handler(struct ctl_table *table, int write,
5454
void __user *buffer, size_t *length, loff_t *ppos)
5555
{
5656
int ret;

fs/eventpoll.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ static LIST_HEAD(tfile_check_list);
293293
static long zero;
294294
static long long_max = LONG_MAX;
295295

296-
ctl_table epoll_table[] = {
296+
struct ctl_table epoll_table[] = {
297297
{
298298
.procname = "max_user_watches",
299299
.data = &max_user_watches,

fs/file_table.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,14 @@ EXPORT_SYMBOL_GPL(get_max_files);
7676
* Handle nr_files sysctl
7777
*/
7878
#if defined(CONFIG_SYSCTL) && defined(CONFIG_PROC_FS)
79-
int proc_nr_files(ctl_table *table, int write,
79+
int proc_nr_files(struct ctl_table *table, int write,
8080
void __user *buffer, size_t *lenp, loff_t *ppos)
8181
{
8282
files_stat.nr_files = get_nr_files();
8383
return proc_doulongvec_minmax(table, write, buffer, lenp, ppos);
8484
}
8585
#else
86-
int proc_nr_files(ctl_table *table, int write,
86+
int proc_nr_files(struct ctl_table *table, int write,
8787
void __user *buffer, size_t *lenp, loff_t *ppos)
8888
{
8989
return -ENOSYS;

fs/inode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ long get_nr_dirty_inodes(void)
105105
* Handle nr_inode sysctl
106106
*/
107107
#ifdef CONFIG_SYSCTL
108-
int proc_nr_inodes(ctl_table *table, int write,
108+
int proc_nr_inodes(struct ctl_table *table, int write,
109109
void __user *buffer, size_t *lenp, loff_t *ppos)
110110
{
111111
inodes_stat.nr_inodes = get_nr_inodes();

0 commit comments

Comments
 (0)