/* * linux/fs/nfs/sysctl.c * * Sysctl interface to NFS parameters */ #include #include #include #include #include #include #include static struct ctl_table_header *nfs_callback_sysctl_table; static struct ctl_table nfs_cb_sysctls[] = { { .procname = "nfs_mountpoint_timeout", .data = &nfs_mountpoint_expiry_timeout, .maxlen = sizeof(nfs_mountpoint_expiry_timeout), .mode = 0644, .proc_handler = proc_dointvec_jiffies, }, { .procname = "nfs_congestion_kb", .data = &nfs_congestion_kb, .maxlen = sizeof(nfs_congestion_kb), .mode = 0644, .proc_handler = proc_dointvec, }, { } }; static struct ctl_table nfs_cb_sysctl_dir[] = { { .procname = "nfs", .mode = 0555, .child = nfs_cb_sysctls, }, { } }; static struct ctl_table nfs_cb_sysctl_root[] = { { .procname = "fs", .mode = 0555, .child = nfs_cb_sysctl_dir, }, { } }; int nfs_register_sysctl(void) { nfs_callback_sysctl_table = register_sysctl_table(nfs_cb_sysctl_root); if (nfs_callback_sysctl_table == NULL) return -ENOMEM; return 0; } void nfs_unregister_sysctl(void) { unregister_sysctl_table(nfs_callback_sysctl_table); nfs_callback_sysctl_table = NULL; } > net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
option value='3' selected='selected'>3
AgeCommit message (Expand)AuthorFilesLines
space:
mode:
authorEyal Itkin <eyal.itkin@gmail.com>2017-02-07 16:43:05 +0300
committerDoug Ledford <dledford@redhat.com>2017-02-08 12:28:30 -0500
commit628f07d33c1f2e7bf31e0a4a988bb07914bd5e73 (patch)
treec228c66498f9a4562093fbbf80a41bcede0c06f2 /tools/perf/util/data.h
parentb4cfe3971f6eab542dd7ecc398bfa1aeec889934 (diff)
IB/rxe: Fix resid update
Update the response's resid field when larger than MTU, instead of only updating the local resid variable. Fixes: 8700e3e7c485 ("Soft RoCE driver") Signed-off-by: Eyal Itkin <eyal.itkin@gmail.com> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'tools/perf/util/data.h')