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
nexedi
linux
Commits
a8e3a152
Commit
a8e3a152
authored
Nov 04, 2002
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://bk.arm.linux.org.uk
into home.transmeta.com:/home/torvalds/v2.5/linux
parents
ca5d856b
db01fdce
Changes
77
Hide whitespace changes
Inline
Side-by-side
Showing
77 changed files
with
296 additions
and
653 deletions
+296
-653
Makefile
Makefile
+1
-1
arch/alpha/kernel/pci.c
arch/alpha/kernel/pci.c
+14
-0
arch/alpha/kernel/pci_iommu.c
arch/alpha/kernel/pci_iommu.c
+28
-18
arch/alpha/kernel/sys_alcor.c
arch/alpha/kernel/sys_alcor.c
+2
-2
arch/alpha/kernel/sys_cabriolet.c
arch/alpha/kernel/sys_cabriolet.c
+5
-5
arch/alpha/kernel/sys_dp264.c
arch/alpha/kernel/sys_dp264.c
+5
-5
arch/alpha/kernel/sys_eb64p.c
arch/alpha/kernel/sys_eb64p.c
+2
-2
arch/alpha/kernel/sys_eiger.c
arch/alpha/kernel/sys_eiger.c
+1
-1
arch/alpha/kernel/sys_jensen.c
arch/alpha/kernel/sys_jensen.c
+6
-1
arch/alpha/kernel/sys_miata.c
arch/alpha/kernel/sys_miata.c
+1
-1
arch/alpha/kernel/sys_mikasa.c
arch/alpha/kernel/sys_mikasa.c
+2
-2
arch/alpha/kernel/sys_nautilus.c
arch/alpha/kernel/sys_nautilus.c
+1
-1
arch/alpha/kernel/sys_noritake.c
arch/alpha/kernel/sys_noritake.c
+2
-2
arch/alpha/kernel/sys_rawhide.c
arch/alpha/kernel/sys_rawhide.c
+1
-1
arch/alpha/kernel/sys_ruffian.c
arch/alpha/kernel/sys_ruffian.c
+1
-1
arch/alpha/kernel/sys_rx164.c
arch/alpha/kernel/sys_rx164.c
+1
-1
arch/alpha/kernel/sys_sable.c
arch/alpha/kernel/sys_sable.c
+2
-2
arch/alpha/kernel/sys_sio.c
arch/alpha/kernel/sys_sio.c
+5
-5
arch/alpha/kernel/sys_sx164.c
arch/alpha/kernel/sys_sx164.c
+1
-1
arch/alpha/kernel/sys_takara.c
arch/alpha/kernel/sys_takara.c
+1
-1
arch/alpha/kernel/sys_titan.c
arch/alpha/kernel/sys_titan.c
+1
-1
arch/alpha/kernel/sys_wildfire.c
arch/alpha/kernel/sys_wildfire.c
+1
-1
arch/i386/Kconfig
arch/i386/Kconfig
+7
-14
arch/i386/kernel/cpu/cpufreq/longrun.c
arch/i386/kernel/cpu/cpufreq/longrun.c
+5
-0
drivers/pci/pci.c
drivers/pci/pci.c
+5
-0
fs/Kconfig
fs/Kconfig
+1
-1
fs/afs/Makefile
fs/afs/Makefile
+1
-9
fs/afs/dir.c
fs/afs/dir.c
+23
-31
fs/afs/errors.h
fs/afs/errors.h
+3
-3
fs/afs/file.c
fs/afs/file.c
+10
-29
fs/afs/fsclient.c
fs/afs/fsclient.c
+1
-1
fs/afs/inode.c
fs/afs/inode.c
+1
-152
fs/afs/internal.h
fs/afs/internal.h
+16
-31
fs/afs/kafsasyncd.c
fs/afs/kafsasyncd.c
+0
-4
fs/afs/kafstimod.c
fs/afs/kafstimod.c
+0
-4
fs/afs/main.c
fs/afs/main.c
+2
-2
fs/afs/mntpt.c
fs/afs/mntpt.c
+1
-5
fs/afs/proc.c
fs/afs/proc.c
+3
-0
fs/afs/super.c
fs/afs/super.c
+0
-86
fs/afs/vlclient.c
fs/afs/vlclient.c
+1
-1
fs/afs/vnode.h
fs/afs/vnode.h
+1
-13
fs/partitions/check.c
fs/partitions/check.c
+1
-1
include/asm-alpha/dma.h
include/asm-alpha/dma.h
+18
-15
include/asm-alpha/floppy.h
include/asm-alpha/floppy.h
+2
-2
include/asm-alpha/machvec.h
include/asm-alpha/machvec.h
+1
-1
include/asm-alpha/processor.h
include/asm-alpha/processor.h
+0
-3
include/asm-arm/processor.h
include/asm-arm/processor.h
+0
-4
include/asm-cris/processor.h
include/asm-cris/processor.h
+0
-4
include/asm-ia64/processor.h
include/asm-ia64/processor.h
+0
-4
include/asm-m68k/processor.h
include/asm-m68k/processor.h
+0
-3
include/asm-m68knommu/processor.h
include/asm-m68knommu/processor.h
+0
-4
include/asm-mips/processor.h
include/asm-mips/processor.h
+0
-4
include/asm-mips64/processor.h
include/asm-mips64/processor.h
+0
-4
include/asm-parisc/processor.h
include/asm-parisc/processor.h
+0
-6
include/asm-ppc/processor.h
include/asm-ppc/processor.h
+0
-3
include/asm-ppc64/processor.h
include/asm-ppc64/processor.h
+0
-4
include/asm-s390/processor.h
include/asm-s390/processor.h
+0
-4
include/asm-s390x/processor.h
include/asm-s390x/processor.h
+0
-4
include/asm-sh/processor.h
include/asm-sh/processor.h
+0
-5
include/asm-sparc/processor.h
include/asm-sparc/processor.h
+0
-4
include/asm-sparc64/processor.h
include/asm-sparc64/processor.h
+0
-3
include/asm-um/processor-generic.h
include/asm-um/processor-generic.h
+0
-11
include/linux/cpufreq.h
include/linux/cpufreq.h
+1
-6
include/linux/pci.h
include/linux/pci.h
+6
-0
include/rxrpc/call.h
include/rxrpc/call.h
+2
-2
include/rxrpc/peer.h
include/rxrpc/peer.h
+2
-2
kernel/cpufreq.c
kernel/cpufreq.c
+11
-22
net/rxrpc/Makefile
net/rxrpc/Makefile
+6
-12
net/rxrpc/call.c
net/rxrpc/call.c
+54
-31
net/rxrpc/connection.c
net/rxrpc/connection.c
+2
-2
net/rxrpc/internal.h
net/rxrpc/internal.h
+15
-15
net/rxrpc/krxiod.c
net/rxrpc/krxiod.c
+0
-4
net/rxrpc/krxsecd.c
net/rxrpc/krxsecd.c
+0
-4
net/rxrpc/krxtimod.c
net/rxrpc/krxtimod.c
+0
-4
net/rxrpc/peer.c
net/rxrpc/peer.c
+4
-2
net/rxrpc/proc.c
net/rxrpc/proc.c
+3
-10
net/rxrpc/transport.c
net/rxrpc/transport.c
+3
-3
No files found.
Makefile
View file @
a8e3a152
VERSION
=
2
PATCHLEVEL
=
5
SUBLEVEL
=
4
5
SUBLEVEL
=
4
6
EXTRAVERSION
=
# *DOCUMENTATION*
...
...
arch/alpha/kernel/pci.c
View file @
a8e3a152
...
...
@@ -117,6 +117,18 @@ quirk_cypress(struct pci_dev *dev)
}
}
/* Called for each device after PCI setup is done. */
static
void
__init
pcibios_fixup_final
(
struct
pci_dev
*
dev
)
{
unsigned
int
class
=
dev
->
class
>>
8
;
if
(
class
==
PCI_CLASS_BRIDGE_ISA
||
class
==
PCI_CLASS_BRIDGE_ISA
)
{
dev
->
dma_mask
=
MAX_ISA_DMA_ADDRESS
-
1
;
isa_bridge
=
dev
;
}
}
struct
pci_fixup
pcibios_fixups
[]
__initdata
=
{
{
PCI_FIXUP_HEADER
,
PCI_VENDOR_ID_INTEL
,
PCI_DEVICE_ID_INTEL_82375
,
quirk_eisa_bridge
},
...
...
@@ -126,6 +138,8 @@ struct pci_fixup pcibios_fixups[] __initdata = {
quirk_ali_ide_ports
},
{
PCI_FIXUP_HEADER
,
PCI_VENDOR_ID_CONTAQ
,
PCI_DEVICE_ID_CONTAQ_82C693
,
quirk_cypress
},
{
PCI_FIXUP_FINAL
,
PCI_ANY_ID
,
PCI_ANY_ID
,
pcibios_fixup_final
},
{
0
}
};
...
...
arch/alpha/kernel/pci_iommu.c
View file @
a8e3a152
...
...
@@ -30,9 +30,7 @@
#define DEBUG_NODIRECT 0
#define DEBUG_FORCEDAC 0
/* Most Alphas support 32-bit ISA DMA. Exceptions are XL, Ruffian,
Nautilus, Sable, and Alcor (see asm-alpha/dma.h for details). */
#define ISA_DMA_MASK (MAX_DMA_ADDRESS - IDENT_ADDR - 1)
#define ISA_DMA_MASK 0x00ffffff
static
inline
unsigned
long
mk_iommu_pte
(
unsigned
long
paddr
)
...
...
@@ -189,6 +187,7 @@ pci_map_single_1(struct pci_dev *pdev, void *cpu_addr, size_t size,
long
npages
,
dma_ofs
,
i
;
unsigned
long
paddr
;
dma_addr_t
ret
;
unsigned
int
align
=
0
;
paddr
=
__pa
(
cpu_addr
);
...
...
@@ -216,27 +215,27 @@ pci_map_single_1(struct pci_dev *pdev, void *cpu_addr, size_t size,
}
/* If the machine doesn't define a pci_tbi routine, we have to
assume it doesn't support sg mapping. */
assume it doesn't support sg mapping, and, since we tried to
use direct_map above, it now must be considered an error. */
if
(
!
alpha_mv
.
mv_pci_tbi
)
{
static
int
been_here
=
0
;
static
int
been_here
=
0
;
/* Only print the message once. */
if
(
!
been_here
)
{
printk
(
KERN_WARNING
"pci_map_single: no hw sg, using "
"direct map when possible
\n
"
);
printk
(
KERN_WARNING
"pci_map_single: no HW sg
\n
"
);
been_here
=
1
;
}
if
(
paddr
+
size
<=
__direct_map_size
)
return
(
paddr
+
__direct_map_base
);
else
return
0
;
return
0
;
}
arena
=
hose
->
sg_pci
;
if
(
!
arena
||
arena
->
dma_base
+
arena
->
size
-
1
>
max_dma
)
arena
=
hose
->
sg_isa
;
npages
=
calc_npages
((
paddr
&
~
PAGE_MASK
)
+
size
);
/* Force allocation to 64KB boundary for all ISA devices. */
dma_ofs
=
iommu_arena_alloc
(
arena
,
npages
,
pdev
?
8
:
0
);
/* Force allocation to 64KB boundary for ISA bridges. */
if
(
pdev
&&
pdev
==
isa_bridge
)
align
=
8
;
dma_ofs
=
iommu_arena_alloc
(
arena
,
npages
,
align
);
if
(
dma_ofs
<
0
)
{
printk
(
KERN_WARNING
"pci_map_single failed: "
"could not allocate dma page tables
\n
"
);
...
...
@@ -364,8 +363,10 @@ pci_alloc_consistent(struct pci_dev *pdev, size_t size, dma_addr_t *dma_addrp)
{
void
*
cpu_addr
;
long
order
=
get_order
(
size
);
int
gfp
=
GFP_ATOMIC
;
cpu_addr
=
(
void
*
)
__get_free_pages
(
GFP_ATOMIC
,
order
);
try_again:
cpu_addr
=
(
void
*
)
__get_free_pages
(
gfp
,
order
);
if
(
!
cpu_addr
)
{
printk
(
KERN_INFO
"pci_alloc_consistent: "
"get_free_pages failed from %p
\n
"
,
...
...
@@ -379,7 +380,12 @@ pci_alloc_consistent(struct pci_dev *pdev, size_t size, dma_addr_t *dma_addrp)
*
dma_addrp
=
pci_map_single_1
(
pdev
,
cpu_addr
,
size
,
0
);
if
(
*
dma_addrp
==
0
)
{
free_pages
((
unsigned
long
)
cpu_addr
,
order
);
return
NULL
;
if
(
alpha_mv
.
mv_pci_tbi
||
(
gfp
&
GFP_DMA
))
return
NULL
;
/* The address doesn't fit required mask and we
do not have iommu. Try again with GFP_DMA. */
gfp
|=
GFP_DMA
;
goto
try_again
;
}
DBGA2
(
"pci_alloc_consistent: %lx -> [%p,%x] from %p
\n
"
,
...
...
@@ -727,8 +733,8 @@ pci_dma_supported(struct pci_dev *pdev, u64 mask)
the entire direct mapped space or the total system memory as
shifted by the map base */
if
(
__direct_map_size
!=
0
&&
(
__direct_map_base
+
__direct_map_size
-
1
<=
mask
||
__direct_map_base
+
(
max_low_pfn
<<
PAGE_SHIFT
)
-
1
<=
mask
))
&&
(
__direct_map_base
+
__direct_map_size
-
1
<=
mask
||
__direct_map_base
+
(
max_low_pfn
<<
PAGE_SHIFT
)
-
1
<=
mask
))
return
1
;
/* Check that we have a scatter-gather arena that fits. */
...
...
@@ -740,6 +746,10 @@ pci_dma_supported(struct pci_dev *pdev, u64 mask)
if
(
arena
&&
arena
->
dma_base
+
arena
->
size
-
1
<=
mask
)
return
1
;
/* As last resort try ZONE_DMA. */
if
(
!
__direct_map_base
&&
MAX_DMA_ADDRESS
-
IDENT_ADDR
-
1
<=
mask
)
return
1
;
return
0
;
}
...
...
arch/alpha/kernel/sys_alcor.c
View file @
a8e3a152
...
...
@@ -253,7 +253,7 @@ struct alpha_machine_vector alcor_mv __initmv = {
DO_CIA_IO
,
DO_CIA_BUS
,
.
machine_check
=
cia_machine_check
,
.
max_
dma_address
=
ALPHA_ALCOR_MAX
_DMA_ADDRESS
,
.
max_
isa_dma_address
=
ALPHA_ALCOR_MAX_ISA
_DMA_ADDRESS
,
.
min_io_address
=
EISA_DEFAULT_IO_BASE
,
.
min_mem_address
=
CIA_DEFAULT_MEM_BASE
,
...
...
@@ -283,7 +283,7 @@ struct alpha_machine_vector xlt_mv __initmv = {
DO_CIA_IO
,
DO_CIA_BUS
,
.
machine_check
=
cia_machine_check
,
.
max_
dma_address
=
ALPHA_MAX
_DMA_ADDRESS
,
.
max_
isa_dma_address
=
ALPHA_MAX_ISA
_DMA_ADDRESS
,
.
min_io_address
=
EISA_DEFAULT_IO_BASE
,
.
min_mem_address
=
CIA_DEFAULT_MEM_BASE
,
...
...
arch/alpha/kernel/sys_cabriolet.c
View file @
a8e3a152
...
...
@@ -327,7 +327,7 @@ struct alpha_machine_vector cabriolet_mv __initmv = {
DO_APECS_IO
,
DO_APECS_BUS
,
.
machine_check
=
apecs_machine_check
,
.
max_
dma_address
=
ALPHA_MAX
_DMA_ADDRESS
,
.
max_
isa_dma_address
=
ALPHA_MAX_ISA
_DMA_ADDRESS
,
.
min_io_address
=
DEFAULT_IO_BASE
,
.
min_mem_address
=
APECS_AND_LCA_DEFAULT_MEM_BASE
,
...
...
@@ -354,7 +354,7 @@ struct alpha_machine_vector eb164_mv __initmv = {
DO_CIA_IO
,
DO_CIA_BUS
,
.
machine_check
=
cia_machine_check
,
.
max_
dma_address
=
ALPHA_MAX
_DMA_ADDRESS
,
.
max_
isa_dma_address
=
ALPHA_MAX_ISA
_DMA_ADDRESS
,
.
min_io_address
=
DEFAULT_IO_BASE
,
.
min_mem_address
=
CIA_DEFAULT_MEM_BASE
,
...
...
@@ -380,7 +380,7 @@ struct alpha_machine_vector eb66p_mv __initmv = {
DO_LCA_IO
,
DO_LCA_BUS
,
.
machine_check
=
lca_machine_check
,
.
max_
dma_address
=
ALPHA_MAX
_DMA_ADDRESS
,
.
max_
isa_dma_address
=
ALPHA_MAX_ISA
_DMA_ADDRESS
,
.
min_io_address
=
DEFAULT_IO_BASE
,
.
min_mem_address
=
APECS_AND_LCA_DEFAULT_MEM_BASE
,
...
...
@@ -405,7 +405,7 @@ struct alpha_machine_vector lx164_mv __initmv = {
DO_PYXIS_IO
,
DO_CIA_BUS
,
.
machine_check
=
cia_machine_check
,
.
max_
dma_address
=
ALPHA_MAX
_DMA_ADDRESS
,
.
max_
isa_dma_address
=
ALPHA_MAX_ISA
_DMA_ADDRESS
,
.
min_io_address
=
DEFAULT_IO_BASE
,
.
min_mem_address
=
DEFAULT_MEM_BASE
,
.
pci_dac_offset
=
PYXIS_DAC_OFFSET
,
...
...
@@ -432,7 +432,7 @@ struct alpha_machine_vector pc164_mv __initmv = {
DO_CIA_IO
,
DO_CIA_BUS
,
.
machine_check
=
cia_machine_check
,
.
max_
dma_address
=
ALPHA_MAX
_DMA_ADDRESS
,
.
max_
isa_dma_address
=
ALPHA_MAX_ISA
_DMA_ADDRESS
,
.
min_io_address
=
DEFAULT_IO_BASE
,
.
min_mem_address
=
CIA_DEFAULT_MEM_BASE
,
...
...
arch/alpha/kernel/sys_dp264.c
View file @
a8e3a152
...
...
@@ -572,7 +572,7 @@ struct alpha_machine_vector dp264_mv __initmv = {
DO_TSUNAMI_IO
,
DO_TSUNAMI_BUS
,
.
machine_check
=
tsunami_machine_check
,
.
max_
dma_address
=
ALPHA_MAX
_DMA_ADDRESS
,
.
max_
isa_dma_address
=
ALPHA_MAX_ISA
_DMA_ADDRESS
,
.
min_io_address
=
DEFAULT_IO_BASE
,
.
min_mem_address
=
DEFAULT_MEM_BASE
,
.
pci_dac_offset
=
TSUNAMI_DAC_OFFSET
,
...
...
@@ -597,7 +597,7 @@ struct alpha_machine_vector monet_mv __initmv = {
DO_TSUNAMI_IO
,
DO_TSUNAMI_BUS
,
.
machine_check
=
tsunami_machine_check
,
.
max_
dma_address
=
ALPHA_MAX
_DMA_ADDRESS
,
.
max_
isa_dma_address
=
ALPHA_MAX_ISA
_DMA_ADDRESS
,
.
min_io_address
=
DEFAULT_IO_BASE
,
.
min_mem_address
=
DEFAULT_MEM_BASE
,
.
pci_dac_offset
=
TSUNAMI_DAC_OFFSET
,
...
...
@@ -621,7 +621,7 @@ struct alpha_machine_vector webbrick_mv __initmv = {
DO_TSUNAMI_IO
,
DO_TSUNAMI_BUS
,
.
machine_check
=
tsunami_machine_check
,
.
max_
dma_address
=
ALPHA_MAX
_DMA_ADDRESS
,
.
max_
isa_dma_address
=
ALPHA_MAX_ISA
_DMA_ADDRESS
,
.
min_io_address
=
DEFAULT_IO_BASE
,
.
min_mem_address
=
DEFAULT_MEM_BASE
,
.
pci_dac_offset
=
TSUNAMI_DAC_OFFSET
,
...
...
@@ -645,7 +645,7 @@ struct alpha_machine_vector clipper_mv __initmv = {
DO_TSUNAMI_IO
,
DO_TSUNAMI_BUS
,
.
machine_check
=
tsunami_machine_check
,
.
max_
dma_address
=
ALPHA_MAX
_DMA_ADDRESS
,
.
max_
isa_dma_address
=
ALPHA_MAX_ISA
_DMA_ADDRESS
,
.
min_io_address
=
DEFAULT_IO_BASE
,
.
min_mem_address
=
DEFAULT_MEM_BASE
,
.
pci_dac_offset
=
TSUNAMI_DAC_OFFSET
,
...
...
@@ -674,7 +674,7 @@ struct alpha_machine_vector shark_mv __initmv = {
DO_TSUNAMI_IO
,
DO_TSUNAMI_BUS
,
.
machine_check
=
tsunami_machine_check
,
.
max_
dma_address
=
ALPHA_MAX
_DMA_ADDRESS
,
.
max_
isa_dma_address
=
ALPHA_MAX_ISA
_DMA_ADDRESS
,
.
min_io_address
=
DEFAULT_IO_BASE
,
.
min_mem_address
=
DEFAULT_MEM_BASE
,
.
pci_dac_offset
=
TSUNAMI_DAC_OFFSET
,
...
...
arch/alpha/kernel/sys_eb64p.c
View file @
a8e3a152
...
...
@@ -214,7 +214,7 @@ struct alpha_machine_vector eb64p_mv __initmv = {
DO_APECS_IO
,
DO_APECS_BUS
,
.
machine_check
=
apecs_machine_check
,
.
max_
dma_address
=
ALPHA_MAX
_DMA_ADDRESS
,
.
max_
isa_dma_address
=
ALPHA_MAX_ISA
_DMA_ADDRESS
,
.
min_io_address
=
DEFAULT_IO_BASE
,
.
min_mem_address
=
APECS_AND_LCA_DEFAULT_MEM_BASE
,
...
...
@@ -240,7 +240,7 @@ struct alpha_machine_vector eb66_mv __initmv = {
DO_LCA_IO
,
DO_LCA_BUS
,
.
machine_check
=
lca_machine_check
,
.
max_
dma_address
=
ALPHA_MAX
_DMA_ADDRESS
,
.
max_
isa_dma_address
=
ALPHA_MAX_ISA
_DMA_ADDRESS
,
.
min_io_address
=
DEFAULT_IO_BASE
,
.
min_mem_address
=
APECS_AND_LCA_DEFAULT_MEM_BASE
,
...
...
arch/alpha/kernel/sys_eiger.c
View file @
a8e3a152
...
...
@@ -231,7 +231,7 @@ struct alpha_machine_vector eiger_mv __initmv = {
DO_TSUNAMI_IO
,
DO_TSUNAMI_BUS
,
.
machine_check
=
tsunami_machine_check
,
.
max_
dma_address
=
ALPHA_MAX
_DMA_ADDRESS
,
.
max_
isa_dma_address
=
ALPHA_MAX_ISA
_DMA_ADDRESS
,
.
min_io_address
=
DEFAULT_IO_BASE
,
.
min_mem_address
=
DEFAULT_MEM_BASE
,
.
pci_dac_offset
=
TSUNAMI_DAC_OFFSET
,
...
...
arch/alpha/kernel/sys_jensen.c
View file @
a8e3a152
...
...
@@ -219,6 +219,11 @@ static void __init
jensen_init_arch
(
void
)
{
struct
pci_controller
*
hose
;
#ifdef CONFIG_PCI
static
struct
pci_dev
fake_isa_bridge
=
{
dma_mask
:
0xffffffffUL
,
};
isa_bridge
=
&
fake_isa_bridge
;
#endif
/* Create a hose so that we can report i/o base addresses to
userland. */
...
...
@@ -257,7 +262,7 @@ struct alpha_machine_vector jensen_mv __initmv = {
IO_LITE
(
JENSEN
,
jensen
),
BUS
(
jensen
),
.
machine_check
=
jensen_machine_check
,
.
max_
dma_address
=
ALPHA_MAX
_DMA_ADDRESS
,
.
max_
isa_dma_address
=
ALPHA_MAX_ISA
_DMA_ADDRESS
,
.
rtc_port
=
0x170
,
.
nr_irqs
=
16
,
...
...
arch/alpha/kernel/sys_miata.c
View file @
a8e3a152
...
...
@@ -269,7 +269,7 @@ struct alpha_machine_vector miata_mv __initmv = {
DO_PYXIS_IO
,
DO_CIA_BUS
,
.
machine_check
=
cia_machine_check
,
.
max_
dma_address
=
ALPHA_MAX
_DMA_ADDRESS
,
.
max_
isa_dma_address
=
ALPHA_MAX_ISA
_DMA_ADDRESS
,
.
min_io_address
=
DEFAULT_IO_BASE
,
.
min_mem_address
=
DEFAULT_MEM_BASE
,
.
pci_dac_offset
=
PYXIS_DAC_OFFSET
,
...
...
arch/alpha/kernel/sys_mikasa.c
View file @
a8e3a152
...
...
@@ -223,7 +223,7 @@ struct alpha_machine_vector mikasa_mv __initmv = {
DO_APECS_IO
,
DO_APECS_BUS
,
.
machine_check
=
mikasa_apecs_machine_check
,
.
max_
dma_address
=
ALPHA_MAX
_DMA_ADDRESS
,
.
max_
isa_dma_address
=
ALPHA_MAX_ISA
_DMA_ADDRESS
,
.
min_io_address
=
DEFAULT_IO_BASE
,
.
min_mem_address
=
APECS_AND_LCA_DEFAULT_MEM_BASE
,
...
...
@@ -248,7 +248,7 @@ struct alpha_machine_vector mikasa_primo_mv __initmv = {
DO_CIA_IO
,
DO_CIA_BUS
,
.
machine_check
=
cia_machine_check
,
.
max_
dma_address
=
ALPHA_MAX
_DMA_ADDRESS
,
.
max_
isa_dma_address
=
ALPHA_MAX_ISA
_DMA_ADDRESS
,
.
min_io_address
=
DEFAULT_IO_BASE
,
.
min_mem_address
=
CIA_DEFAULT_MEM_BASE
,
...
...
arch/alpha/kernel/sys_nautilus.c
View file @
a8e3a152
...
...
@@ -185,7 +185,7 @@ struct alpha_machine_vector nautilus_mv __initmv = {
DO_IRONGATE_IO
,
DO_IRONGATE_BUS
,
.
machine_check
=
nautilus_machine_check
,
.
max_
dma_address
=
ALPHA_NAUTILUS_MAX
_DMA_ADDRESS
,
.
max_
isa_dma_address
=
ALPHA_MAX_ISA
_DMA_ADDRESS
,
.
min_io_address
=
DEFAULT_IO_BASE
,
.
min_mem_address
=
IRONGATE_DEFAULT_MEM_BASE
,
...
...
arch/alpha/kernel/sys_noritake.c
View file @
a8e3a152
...
...
@@ -305,7 +305,7 @@ struct alpha_machine_vector noritake_mv __initmv = {
DO_APECS_IO
,
DO_APECS_BUS
,
.
machine_check
=
noritake_apecs_machine_check
,
.
max_
dma_address
=
ALPHA_MAX
_DMA_ADDRESS
,
.
max_
isa_dma_address
=
ALPHA_MAX_ISA
_DMA_ADDRESS
,
.
min_io_address
=
EISA_DEFAULT_IO_BASE
,
.
min_mem_address
=
APECS_AND_LCA_DEFAULT_MEM_BASE
,
...
...
@@ -330,7 +330,7 @@ struct alpha_machine_vector noritake_primo_mv __initmv = {
DO_CIA_IO
,
DO_CIA_BUS
,
.
machine_check
=
cia_machine_check
,
.
max_
dma_address
=
ALPHA_MAX
_DMA_ADDRESS
,
.
max_
isa_dma_address
=
ALPHA_MAX_ISA
_DMA_ADDRESS
,
.
min_io_address
=
EISA_DEFAULT_IO_BASE
,
.
min_mem_address
=
CIA_DEFAULT_MEM_BASE
,
...
...
arch/alpha/kernel/sys_rawhide.c
View file @
a8e3a152
...
...
@@ -252,7 +252,7 @@ struct alpha_machine_vector rawhide_mv __initmv = {
DO_MCPCIA_IO
,
DO_MCPCIA_BUS
,
.
machine_check
=
mcpcia_machine_check
,
.
max_
dma_address
=
ALPHA_MAX
_DMA_ADDRESS
,
.
max_
isa_dma_address
=
ALPHA_MAX_ISA
_DMA_ADDRESS
,
.
min_io_address
=
DEFAULT_IO_BASE
,
.
min_mem_address
=
MCPCIA_DEFAULT_MEM_BASE
,
.
pci_dac_offset
=
MCPCIA_DAC_OFFSET
,
...
...
arch/alpha/kernel/sys_ruffian.c
View file @
a8e3a152
...
...
@@ -219,7 +219,7 @@ struct alpha_machine_vector ruffian_mv __initmv = {
DO_PYXIS_IO
,
DO_CIA_BUS
,
.
machine_check
=
cia_machine_check
,
.
max_
dma_address
=
ALPHA_RUFFIAN_MAX
_DMA_ADDRESS
,
.
max_
isa_dma_address
=
ALPHA_RUFFIAN_MAX_ISA
_DMA_ADDRESS
,
.
min_io_address
=
DEFAULT_IO_BASE
,
.
min_mem_address
=
DEFAULT_MEM_BASE
,
.
pci_dac_offset
=
PYXIS_DAC_OFFSET
,
...
...
arch/alpha/kernel/sys_rx164.c
View file @
a8e3a152
...
...
@@ -203,7 +203,7 @@ struct alpha_machine_vector rx164_mv __initmv = {
DO_POLARIS_IO
,
DO_POLARIS_BUS
,
.
machine_check
=
polaris_machine_check
,
.
max_
dma_address
=
ALPHA_MAX
_DMA_ADDRESS
,
.
max_
isa_dma_address
=
ALPHA_MAX_ISA
_DMA_ADDRESS
,
.
min_io_address
=
DEFAULT_IO_BASE
,
.
min_mem_address
=
DEFAULT_MEM_BASE
,
...
...
arch/alpha/kernel/sys_sable.c
View file @
a8e3a152
...
...
@@ -290,7 +290,7 @@ struct alpha_machine_vector sable_mv __initmv = {
DO_T2_IO
,
DO_T2_BUS
,
.
machine_check
=
t2_machine_check
,
.
max_
dma_address
=
ALPHA_SABLE_MAX
_DMA_ADDRESS
,
.
max_
isa_dma_address
=
ALPHA_SABLE_MAX_ISA
_DMA_ADDRESS
,
.
min_io_address
=
EISA_DEFAULT_IO_BASE
,
.
min_mem_address
=
T2_DEFAULT_MEM_BASE
,
...
...
@@ -322,7 +322,7 @@ struct alpha_machine_vector sable_gamma_mv __initmv = {
DO_T2_IO
,
DO_T2_BUS
,
.
machine_check
=
t2_machine_check
,
.
max_
dma_address
=
ALPHA_SABLE_MAX
_DMA_ADDRESS
,
.
max_
isa_dma_address
=
ALPHA_SABLE_MAX_ISA
_DMA_ADDRESS
,
.
min_io_address
=
EISA_DEFAULT_IO_BASE
,
.
min_mem_address
=
T2_DEFAULT_MEM_BASE
,
...
...
arch/alpha/kernel/sys_sio.c
View file @
a8e3a152
...
...
@@ -258,7 +258,7 @@ struct alpha_machine_vector alphabook1_mv __initmv = {
DO_LCA_IO
,
DO_LCA_BUS
,
.
machine_check
=
lca_machine_check
,
.
max_
dma_address
=
ALPHA_MAX
_DMA_ADDRESS
,
.
max_
isa_dma_address
=
ALPHA_MAX_ISA
_DMA_ADDRESS
,
.
min_io_address
=
DEFAULT_IO_BASE
,
.
min_mem_address
=
APECS_AND_LCA_DEFAULT_MEM_BASE
,
...
...
@@ -289,7 +289,7 @@ struct alpha_machine_vector avanti_mv __initmv = {
DO_APECS_IO
,
DO_APECS_BUS
,
.
machine_check
=
apecs_machine_check
,
.
max_
dma_address
=
ALPHA_MAX
_DMA_ADDRESS
,
.
max_
isa_dma_address
=
ALPHA_MAX_ISA
_DMA_ADDRESS
,
.
min_io_address
=
DEFAULT_IO_BASE
,
.
min_mem_address
=
APECS_AND_LCA_DEFAULT_MEM_BASE
,
...
...
@@ -318,7 +318,7 @@ struct alpha_machine_vector noname_mv __initmv = {
DO_LCA_IO
,
DO_LCA_BUS
,
.
machine_check
=
lca_machine_check
,
.
max_
dma_address
=
ALPHA_MAX
_DMA_ADDRESS
,
.
max_
isa_dma_address
=
ALPHA_MAX_ISA
_DMA_ADDRESS
,
.
min_io_address
=
DEFAULT_IO_BASE
,
.
min_mem_address
=
APECS_AND_LCA_DEFAULT_MEM_BASE
,
...
...
@@ -356,7 +356,7 @@ struct alpha_machine_vector p2k_mv __initmv = {
DO_LCA_IO
,
DO_LCA_BUS
,
.
machine_check
=
lca_machine_check
,
.
max_
dma_address
=
ALPHA_MAX
_DMA_ADDRESS
,
.
max_
isa_dma_address
=
ALPHA_MAX_ISA
_DMA_ADDRESS
,
.
min_io_address
=
DEFAULT_IO_BASE
,
.
min_mem_address
=
APECS_AND_LCA_DEFAULT_MEM_BASE
,
...
...
@@ -385,7 +385,7 @@ struct alpha_machine_vector xl_mv __initmv = {
DO_APECS_IO
,
BUS
(
apecs
),
.
machine_check
=
apecs_machine_check
,
.
max_
dma_address
=
ALPHA_XL_MAX
_DMA_ADDRESS
,
.
max_
isa_dma_address
=
ALPHA_XL_MAX_ISA
_DMA_ADDRESS
,
.
min_io_address
=
DEFAULT_IO_BASE
,
.
min_mem_address
=
XL_DEFAULT_MEM_BASE
,
...
...
arch/alpha/kernel/sys_sx164.c
View file @
a8e3a152
...
...
@@ -160,7 +160,7 @@ struct alpha_machine_vector sx164_mv __initmv = {
DO_PYXIS_IO
,
DO_CIA_BUS
,
.
machine_check
=
cia_machine_check
,
.
max_
dma_address
=
ALPHA_MAX
_DMA_ADDRESS
,
.
max_
isa_dma_address
=
ALPHA_MAX_ISA
_DMA_ADDRESS
,
.
min_io_address
=
DEFAULT_IO_BASE
,
.
min_mem_address
=
DEFAULT_MEM_BASE
,
.
pci_dac_offset
=
PYXIS_DAC_OFFSET
,
...
...
arch/alpha/kernel/sys_takara.c
View file @
a8e3a152
...
...
@@ -275,7 +275,7 @@ struct alpha_machine_vector takara_mv __initmv = {
DO_CIA_IO
,
DO_CIA_BUS
,
.
machine_check
=
cia_machine_check
,
.
max_
dma_address
=
ALPHA_MAX
_DMA_ADDRESS
,
.
max_
isa_dma_address
=
ALPHA_MAX_ISA
_DMA_ADDRESS
,
.
min_io_address
=
DEFAULT_IO_BASE
,
.
min_mem_address
=
CIA_DEFAULT_MEM_BASE
,
...
...
arch/alpha/kernel/sys_titan.c
View file @
a8e3a152
...
...
@@ -370,7 +370,7 @@ struct alpha_machine_vector privateer_mv __initmv = {
DO_TITAN_IO
,
DO_TITAN_BUS
,
.
machine_check
=
privateer_machine_check
,
.
max_
dma_address
=
ALPHA_MAX
_DMA_ADDRESS
,
.
max_
isa_dma_address
=
ALPHA_MAX_ISA
_DMA_ADDRESS
,
.
min_io_address
=
DEFAULT_IO_BASE
,
.
min_mem_address
=
DEFAULT_MEM_BASE
,
.
pci_dac_offset
=
TITAN_DAC_OFFSET
,
...
...
arch/alpha/kernel/sys_wildfire.c
View file @
a8e3a152
...
...
@@ -339,7 +339,7 @@ struct alpha_machine_vector wildfire_mv __initmv = {
DO_WILDFIRE_IO
,
DO_WILDFIRE_BUS
,
.
machine_check
=
wildfire_machine_check
,
.
max_
dma_address
=
ALPHA_MAX
_DMA_ADDRESS
,
.
max_
isa_dma_address
=
ALPHA_MAX_ISA
_DMA_ADDRESS
,
.
min_io_address
=
DEFAULT_IO_BASE
,
.
min_mem_address
=
DEFAULT_MEM_BASE
,
...
...
arch/i386/Kconfig
View file @
a8e3a152
...
...
@@ -479,26 +479,19 @@ config CPU_FREQ
If in doubt, say N.
config CPU_FREQ_24_API
bool "/proc/sys/cpu/ interface (2.4.)"
bool "/proc/sys/cpu/ interface (2.4.
/ OLD
)"
depends on CPU_FREQ
---help---
help
This enables the /proc/sys/cpu/ sysctl interface for controlling
CPUFreq, as known from the 2.4.-kernel patches for CPUFreq. Note
that some drivers do not support this interface or offer less
functionality.
If you say N here, you'll be able to control CPUFreq using the
new /proc/cpufreq interface.
CPUFreq, as known from the 2.4.-kernel patches for CPUFreq. 2.5
uses /proc/cpufreq instead. Please note that some drivers do not
work well with the 2.4. /proc/sys/cpu sysctl interface, so if in
doubt, say N here.
For details, take a look at linux/Documentation/cpufreq.
If in doubt, say N.
config CPU_FREQ_26_API
bool
depends on CPU_FREQ && !CPU_FREQ_24_API
default y
config X86_POWERNOW_K6
tristate "AMD Mobile K6-2/K6-3 PowerNow!"
depends on CPU_FREQ
...
...
@@ -562,7 +555,7 @@ config X86_P4_CLOCKMOD
config X86_LONGRUN
tristate "Transmeta LongRun"
depends on CPU_FREQ
&& !CPU_FREQ_24_API
depends on CPU_FREQ
help
This adds the CPUFreq driver for Transmeta Crusoe processors which
support LongRun.
...
...
arch/i386/kernel/cpu/cpufreq/longrun.c
View file @
a8e3a152
...
...
@@ -251,6 +251,11 @@ static int __init longrun_init(void)
longrun_get_policy
(
&
driver
->
policy
[
0
]);
#ifdef CONFIG_CPU_FREQ_24_API
driver
->
cpu_min_freq
=
longrun_low_freq
;
driver
->
cpu_cur_freq
[
0
]
=
longrun_high_freq
;
/* dummy value */
#endif
driver
->
verify
=
&
longrun_verify_policy
;
driver
->
setpolicy
=
&
longrun_set_policy
;
result
=
cpufreq_register
(
driver
);
...
...
drivers/pci/pci.c
View file @
a8e3a152
...
...
@@ -642,6 +642,11 @@ device_initcall(pci_init);
__setup
(
"pci="
,
pci_setup
);
#if defined(CONFIG_ISA) || defined(CONFIG_EISA)
struct
pci_dev
*
isa_bridge
;
EXPORT_SYMBOL
(
isa_bridge
);
#endif
EXPORT_SYMBOL
(
pci_enable_device
);
EXPORT_SYMBOL
(
pci_disable_device
);
EXPORT_SYMBOL
(
pci_find_capability
);
...
...
fs/Kconfig
View file @
a8e3a152
...
...
@@ -1473,8 +1473,8 @@ config ZISOFS_FS
config FS_MBCACHE
tristate
depends on EXT2_FS_XATTR || EXT3_FS_XATTR
default m if EXT2_FS=m || EXT3_FS=m
default y if EXT2_FS=y || EXT3_FS=y
default m if EXT2_FS=m || EXT3_FS=m
# Posix ACL utility routines (for now, only ext2/ext3/jfs)
config FS_POSIX_ACL
...
...
fs/afs/Makefile
View file @
a8e3a152
...
...
@@ -23,14 +23,6 @@ kafs-objs := \
vnode.o
\
volume.o
# cache.o
obj-m
:=
kafs.o
# superfluous for 2.5, but needed for 2.4..
ifeq
"$(VERSION).$(PATCHLEVEL)" "2.4"
kafs.o
:
$(kafs-objs)
$(LD)
-r
-o
kafs.o
$
(
kafs-objs
)
endif
obj-$(CONFIG_AFS_FS)
:=
kafs.o
include
$(TOPDIR)/Rules.make
fs/afs/dir.c
View file @
a8e3a152
...
...
@@ -38,19 +38,17 @@ struct file_operations afs_dir_file_operations = {
struct
inode_operations
afs_dir_inode_operations
=
{
.
lookup
=
afs_dir_lookup
,
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
.
getattr
=
afs_inode_getattr
,
#else
.
revalidate
=
afs_inode_revalidate
,
#if 0 /* TODO */
.create = afs_dir_create,
.link = afs_dir_link,
.unlink = afs_dir_unlink,
.symlink = afs_dir_symlink,
.mkdir = afs_dir_mkdir,
.rmdir = afs_dir_rmdir,
.mknod = afs_dir_mknod,
.rename = afs_dir_rename,
#endif
// .create = afs_dir_create,
// .link = afs_dir_link,
// .unlink = afs_dir_unlink,
// .symlink = afs_dir_symlink,
// .mkdir = afs_dir_mkdir,
// .rmdir = afs_dir_rmdir,
// .mknod = afs_dir_mknod,
// .rename = afs_dir_rename,
};
static
struct
dentry_operations
afs_fs_dentry_operations
=
{
...
...
@@ -250,7 +248,7 @@ static int afs_dir_iterate_block(unsigned *fpos,
/* skip entries marked unused in the bitmap */
if
(
!
(
block
->
pagehdr
.
bitmap
[
offset
/
8
]
&
(
1
<<
(
offset
%
8
))))
{
_debug
(
"ENT[%u.%u]: unused
\n
"
,
blkoff
/
sizeof
(
afs_dir_block_t
),
offset
);
_debug
(
"ENT[%
Z
u.%u]: unused
\n
"
,
blkoff
/
sizeof
(
afs_dir_block_t
),
offset
);
if
(
offset
>=
curr
)
*
fpos
=
blkoff
+
next
*
sizeof
(
afs_dirent_t
);
continue
;
...
...
@@ -260,26 +258,26 @@ static int afs_dir_iterate_block(unsigned *fpos,
dire
=
&
block
->
dirents
[
offset
];
nlen
=
strnlen
(
dire
->
parts
.
name
,
sizeof
(
*
block
)
-
offset
*
sizeof
(
afs_dirent_t
));
_debug
(
"ENT[%
u.%u]: %s %u
\"
%.*
s
\"\n
"
,
_debug
(
"ENT[%
Zu.%u]: %s %Zu
\"
%
s
\"\n
"
,
blkoff
/
sizeof
(
afs_dir_block_t
),
offset
,
offset
<
curr
?
"skip"
:
"fill"
,
nlen
,
nlen
,
dire
->
name
);
(
offset
<
curr
?
"skip"
:
"fill"
)
,
nlen
,
dire
->
u
.
name
);
/* work out where the next possible entry is */
for
(
tmp
=
nlen
;
tmp
>
15
;
tmp
-=
sizeof
(
afs_dirent_t
))
{
if
(
next
>=
AFS_DIRENT_PER_BLOCK
)
{
_debug
(
"ENT[%u.%u]:"
" %u travelled beyond end dir block (len %u/%u)
\n
"
,
_debug
(
"ENT[%
Z
u.%u]:"
" %u travelled beyond end dir block (len %u/%
Z
u)
\n
"
,
blkoff
/
sizeof
(
afs_dir_block_t
),
offset
,
next
,
tmp
,
nlen
);
return
-
EIO
;
}
if
(
!
(
block
->
pagehdr
.
bitmap
[
next
/
8
]
&
(
1
<<
(
next
%
8
))))
{
_debug
(
"ENT[%
u.%u]: %u unmarked extension (len %u/%
u)
\n
"
,
_debug
(
"ENT[%
Zu.%u]: %u unmarked extension (len %u/%Z
u)
\n
"
,
blkoff
/
sizeof
(
afs_dir_block_t
),
offset
,
next
,
tmp
,
nlen
);
return
-
EIO
;
}
_debug
(
"ENT[%
u.%u]: ext %u/%
u
\n
"
,
_debug
(
"ENT[%
Zu.%u]: ext %u/%Z
u
\n
"
,
blkoff
/
sizeof
(
afs_dir_block_t
),
next
,
tmp
,
nlen
);
next
++
;
}
...
...
@@ -397,7 +395,7 @@ static int afs_dir_lookup_filldir(void *_cookie, const char *name, int nlen, lof
{
struct
afs_dir_lookup_cookie
*
cookie
=
_cookie
;
_enter
(
"{%s,%u},%s,%u,,%lu,%u"
,
cookie
->
name
,
cookie
->
nlen
,
name
,
nlen
,
ino
,
ntohl
(
dtype
));
_enter
(
"{%s,%
Z
u},%s,%u,,%lu,%u"
,
cookie
->
name
,
cookie
->
nlen
,
name
,
nlen
,
ino
,
ntohl
(
dtype
));
if
(
cookie
->
nlen
!=
nlen
||
memcmp
(
cookie
->
name
,
name
,
nlen
)
!=
0
)
{
_leave
(
" = 0 [no]"
);
...
...
@@ -471,7 +469,7 @@ static struct dentry *afs_dir_lookup(struct inode *dir, struct dentry *dentry)
}
dentry
->
d_op
=
&
afs_fs_dentry_operations
;
dentry
->
d_fsdata
=
(
void
*
)
(
unsigned
)
vnode
->
status
.
version
;
dentry
->
d_fsdata
=
(
void
*
)
(
unsigned
long
)
vnode
->
status
.
version
;
d_add
(
dentry
,
inode
);
_leave
(
" = 0 { vn=%u u=%u } -> { ino=%lu v=%lu }"
,
...
...
@@ -500,15 +498,9 @@ static int afs_d_revalidate(struct dentry *dentry, int flags)
_enter
(
"%s,%x"
,
dentry
->
d_name
.
name
,
flags
);
/* lock down the parent dentry so we can peer at it */
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
read_lock
(
&
dparent_lock
);
parent
=
dget
(
dentry
->
d_parent
);
read_unlock
(
&
dparent_lock
);
#else
lock_kernel
();
parent
=
dget
(
dentry
->
d_parent
);
unlock_kernel
();
#endif
dir
=
parent
->
d_inode
;
inode
=
dentry
->
d_inode
;
...
...
@@ -541,10 +533,10 @@ static int afs_d_revalidate(struct dentry *dentry, int flags)
goto
out_bad
;
}
if
((
unsigned
)
dentry
->
d_fsdata
!=
(
unsigned
)
AFS_FS_I
(
dir
)
->
status
.
version
)
{
_debug
(
"%s: parent changed %u -> %u"
,
if
((
unsigned
long
)
dentry
->
d_fsdata
!=
(
unsigned
long
)
AFS_FS_I
(
dir
)
->
status
.
version
)
{
_debug
(
"%s: parent changed %
l
u -> %u"
,
dentry
->
d_name
.
name
,
(
unsigned
)
dentry
->
d_fsdata
,
(
unsigned
long
)
dentry
->
d_fsdata
,
(
unsigned
)
AFS_FS_I
(
dir
)
->
status
.
version
);
/* search the directory for this vnode */
...
...
@@ -585,7 +577,7 @@ static int afs_d_revalidate(struct dentry *dentry, int flags)
goto
out_bad
;
}
dentry
->
d_fsdata
=
(
void
*
)
(
unsigned
)
AFS_FS_I
(
dir
)
->
status
.
version
;
dentry
->
d_fsdata
=
(
void
*
)
(
unsigned
long
)
AFS_FS_I
(
dir
)
->
status
.
version
;
}
out_valid:
...
...
fs/afs/errors.h
View file @
a8e3a152
...
...
@@ -9,8 +9,8 @@
* 2 of the License, or (at your option) any later version.
*/
#ifndef _
H_DB712916_5113_11D6_9A6D_0002B3163499
#define _
H_DB712916_5113_11D6_9A6D_0002B3163499
#ifndef _
LINUX_AFS_ERRORS_H
#define _
LINUX_AFS_ERRORS_H
#include "types.h"
...
...
@@ -31,4 +31,4 @@ typedef enum {
extern
int
afs_abort_to_error
(
int
abortcode
);
#endif
/* _
H_DB712916_5113_11D6_9A6D_0002B3163499
*/
#endif
/* _
LINUX_AFS_ERRORS_H
*/
fs/afs/file.c
View file @
a8e3a152
...
...
@@ -21,53 +21,34 @@
#include <rxrpc/call.h>
#include "internal.h"
//static int afs_file_open(struct inode *inode, struct file *file);
//static int afs_file_release(struct inode *inode, struct file *file);
#if 0
static int afs_file_open(struct inode *inode, struct file *file);
static int afs_file_release(struct inode *inode, struct file *file);
#endif
static
int
afs_file_readpage
(
struct
file
*
file
,
struct
page
*
page
);
//static ssize_t afs_file_read(struct file *file, char *buf, size_t size, loff_t *off);
static
ssize_t
afs_file_write
(
struct
file
*
file
,
const
char
*
buf
,
size_t
size
,
loff_t
*
off
);
struct
inode_operations
afs_file_inode_operations
=
{
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
.
getattr
=
afs_inode_getattr
,
#else
.
revalidate
=
afs_inode_revalidate
,
#endif
};
struct
file_operations
afs_file_file_operations
=
{
// .open = afs_file_open,
// .release = afs_file_release,
.
read
=
generic_file_read
,
//afs_file_read,
.
read
=
generic_file_read
,
.
write
=
afs_file_write
,
.
mmap
=
generic_file_mmap
,
// .fsync = afs_file_fsync,
#if 0
.open = afs_file_open,
.release = afs_file_release,
.fsync = afs_file_fsync,
#endif
};
struct
address_space_operations
afs_fs_aops
=
{
.
readpage
=
afs_file_readpage
,
};
/*****************************************************************************/
/*
* AFS file read
*/
#if 0
static ssize_t afs_file_read(struct file *file, char *buf, size_t size, loff_t *off)
{
struct afs_inode_info *ai;
ai = AFS_FS_I(file->f_dentry->d_inode);
if (ai->flags & AFS_INODE_DELETED)
return -ESTALE;
return -EIO;
} /* end afs_file_read() */
#endif
/*****************************************************************************/
/*
* AFS file write
...
...
fs/afs/fsclient.c
View file @
a8e3a152
...
...
@@ -426,7 +426,7 @@ int afs_rxfs_fetch_file_data(afs_server_t *server,
int
ret
;
u32
*
bp
;
_enter
(
"%p,{fid={%u,%u,%u},sz=%u,of=%lu}"
,
_enter
(
"%p,{fid={%u,%u,%u},sz=%
Z
u,of=%lu}"
,
server
,
desc
->
fid
.
vid
,
desc
->
fid
.
vnode
,
...
...
fs/afs/inode.c
View file @
a8e3a152
...
...
@@ -28,9 +28,6 @@
struct
afs_iget_data
{
afs_fid_t
fid
;
afs_volume_t
*
volume
;
/* volume on which resides */
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
afs_vnode_t
*
new_vnode
;
/* new vnode record */
#endif
};
/*****************************************************************************/
...
...
@@ -41,7 +38,7 @@ static int afs_inode_map_status(afs_vnode_t *vnode)
{
struct
inode
*
inode
=
AFS_VNODE_TO_I
(
vnode
);
_debug
(
"FS: ft=%d lk=%d sz=%u ver=%Lu mod=%hu"
,
_debug
(
"FS: ft=%d lk=%d sz=%
Z
u ver=%Lu mod=%hu"
,
vnode
->
status
.
type
,
vnode
->
status
.
nlink
,
vnode
->
status
.
size
,
...
...
@@ -117,7 +114,6 @@ int afs_inode_fetch_status(struct inode *inode)
/*
* iget5() comparator
*/
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
static
int
afs_iget5_test
(
struct
inode
*
inode
,
void
*
opaque
)
{
struct
afs_iget_data
*
data
=
opaque
;
...
...
@@ -125,13 +121,11 @@ static int afs_iget5_test(struct inode *inode, void *opaque)
/* only match inodes with the same version number */
return
inode
->
i_ino
==
data
->
fid
.
vnode
&&
inode
->
i_version
==
data
->
fid
.
unique
;
}
/* end afs_iget5_test() */
#endif
/*****************************************************************************/
/*
* iget5() inode initialiser
*/
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
static
int
afs_iget5_set
(
struct
inode
*
inode
,
void
*
opaque
)
{
struct
afs_iget_data
*
data
=
opaque
;
...
...
@@ -144,71 +138,6 @@ static int afs_iget5_set(struct inode *inode, void *opaque)
return
0
;
}
/* end afs_iget5_set() */
#endif
/*****************************************************************************/
/*
* iget4() comparator
*/
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
static
int
afs_iget4_test
(
struct
inode
*
inode
,
ino_t
ino
,
void
*
opaque
)
{
struct
afs_iget_data
*
data
=
opaque
;
/* only match inodes with the same version number */
return
inode
->
i_ino
==
data
->
fid
.
vnode
&&
inode
->
i_version
==
data
->
fid
.
unique
;
}
/* end afs_iget4_test() */
#endif
/*****************************************************************************/
/*
* read an inode (2.4 only)
*/
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
void
afs_read_inode2
(
struct
inode
*
inode
,
void
*
opaque
)
{
struct
afs_iget_data
*
data
=
opaque
;
afs_vnode_t
*
vnode
;
int
ret
;
_enter
(
",{{%u,%u,%u},%p}"
,
data
->
fid
.
vid
,
data
->
fid
.
vnode
,
data
->
fid
.
unique
,
data
->
volume
);
if
(
inode
->
u
.
generic_ip
)
BUG
();
/* attach a pre-allocated vnode record */
inode
->
u
.
generic_ip
=
vnode
=
data
->
new_vnode
;
data
->
new_vnode
=
NULL
;
memset
(
vnode
,
0
,
sizeof
(
*
vnode
));
vnode
->
inode
=
inode
;
init_waitqueue_head
(
&
vnode
->
update_waitq
);
spin_lock_init
(
&
vnode
->
lock
);
INIT_LIST_HEAD
(
&
vnode
->
cb_link
);
INIT_LIST_HEAD
(
&
vnode
->
cb_hash_link
);
afs_timer_init
(
&
vnode
->
cb_timeout
,
&
afs_vnode_cb_timed_out_ops
);
vnode
->
flags
|=
AFS_VNODE_CHANGED
;
vnode
->
volume
=
data
->
volume
;
vnode
->
fid
=
data
->
fid
;
/* ask the server for a status check */
ret
=
afs_vnode_fetch_status
(
vnode
);
if
(
ret
<
0
)
{
make_bad_inode
(
inode
);
_leave
(
" [bad inode]"
);
return
;
}
ret
=
afs_inode_map_status
(
vnode
);
if
(
ret
<
0
)
{
make_bad_inode
(
inode
);
_leave
(
" [bad inode]"
);
return
;
}
_leave
(
""
);
return
;
}
/* end afs_read_inode2() */
#endif
/*****************************************************************************/
/*
...
...
@@ -227,7 +156,6 @@ inline int afs_iget(struct super_block *sb, afs_fid_t *fid, struct inode **_inod
as
=
sb
->
s_fs_info
;
data
.
volume
=
as
->
volume
;
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
inode
=
iget5_locked
(
sb
,
fid
->
vnode
,
afs_iget5_test
,
afs_iget5_set
,
&
data
);
if
(
!
inode
)
{
_leave
(
" = -ENOMEM"
);
...
...
@@ -253,13 +181,6 @@ inline int afs_iget(struct super_block *sb, afs_fid_t *fid, struct inode **_inod
if
(
ret
<
0
)
goto
bad_inode
;
#if 0
/* find a cache entry for it */
ret = afs_cache_lookup_vnode(as->volume,vnode);
if (ret<0)
goto bad_inode;
#endif
/* success */
unlock_new_inode
(
inode
);
...
...
@@ -280,42 +201,12 @@ inline int afs_iget(struct super_block *sb, afs_fid_t *fid, struct inode **_inod
_leave
(
" = %d [bad]"
,
ret
);
return
ret
;
#else
/* pre-allocate a vnode record so that afs_read_inode2() doesn't have to return an inode
* without one attached
*/
data
.
new_vnode
=
kmalloc
(
sizeof
(
afs_vnode_t
),
GFP_KERNEL
);
if
(
!
data
.
new_vnode
)
{
_leave
(
" = -ENOMEM"
);
return
-
ENOMEM
;
}
inode
=
iget4
(
sb
,
fid
->
vnode
,
afs_iget4_test
,
&
data
);
if
(
data
.
new_vnode
)
kfree
(
data
.
new_vnode
);
if
(
!
inode
)
{
_leave
(
" = -ENOMEM"
);
return
-
ENOMEM
;
}
vnode
=
AFS_FS_I
(
inode
);
*
_inode
=
inode
;
_leave
(
" = 0 [CB { v=%u x=%lu t=%u nix=%u }]"
,
vnode
->
cb_version
,
vnode
->
cb_timeout
.
timo_jif
,
vnode
->
cb_type
,
vnode
->
nix
);
return
0
;
#endif
}
/* end afs_iget() */
/*****************************************************************************/
/*
* read the attributes of an inode
*/
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
int
afs_inode_getattr
(
struct
vfsmount
*
mnt
,
struct
dentry
*
dentry
,
struct
kstat
*
stat
)
{
struct
inode
*
inode
;
...
...
@@ -349,44 +240,6 @@ int afs_inode_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat
return
0
;
}
/* end afs_inode_getattr() */
#endif
/*****************************************************************************/
/*
* revalidate the inode
*/
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,5,0)
int
afs_inode_revalidate
(
struct
dentry
*
dentry
)
{
struct
inode
*
inode
;
afs_vnode_t
*
vnode
;
int
ret
;
inode
=
dentry
->
d_inode
;
_enter
(
"{ ino=%lu v=%lu }"
,
inode
->
i_ino
,
inode
->
i_version
);
vnode
=
AFS_FS_I
(
inode
);
ret
=
afs_inode_fetch_status
(
inode
);
if
(
ret
==-
ENOENT
)
{
_leave
(
" = %d [%d %p]"
,
ret
,
atomic_read
(
&
dentry
->
d_count
),
dentry
->
d_inode
);
return
ret
;
}
else
if
(
ret
<
0
)
{
make_bad_inode
(
inode
);
_leave
(
" = %d"
,
ret
);
return
ret
;
}
_leave
(
" = 0 CB { v=%u x=%u t=%u }"
,
vnode
->
cb_version
,
vnode
->
cb_expiry
,
vnode
->
cb_type
);
return
0
;
}
/* end afs_inode_revalidate() */
#endif
/*****************************************************************************/
/*
...
...
@@ -410,9 +263,5 @@ void afs_clear_inode(struct inode *inode)
afs_vnode_give_up_callback
(
vnode
);
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,5,0)
if
(
inode
->
u
.
generic_ip
)
kfree
(
inode
->
u
.
generic_ip
);
#endif
_leave
(
""
);
}
/* end afs_clear_inode() */
fs/afs/internal.h
View file @
a8e3a152
...
...
@@ -21,34 +21,24 @@
/*
* debug tracing
*/
#define kenter(FMT,
...) printk("==> %s("FMT")\n",__FUNCTION__,##__VA_ARGS__
)
#define kleave(FMT,
...) printk("<== %s()"FMT"\n",__FUNCTION__,##__VA_ARGS__
)
#define kdebug(FMT,
...) printk(FMT"\n",##__VA_ARGS__
)
#define kproto(FMT,
...) printk("### "FMT"\n",##__VA_ARGS__
)
#define knet(FMT,
...) printk(FMT"\n",##__VA_ARGS__
)
#define kenter(FMT,
a...) printk("==> %s("FMT")\n",__FUNCTION__ , ## a
)
#define kleave(FMT,
a...) printk("<== %s()"FMT"\n",__FUNCTION__ , ## a
)
#define kdebug(FMT,
a...) printk(FMT"\n" , ## a
)
#define kproto(FMT,
a...) printk("### "FMT"\n" , ## a
)
#define knet(FMT,
a...) printk(FMT"\n" , ## a
)
#if 0
#define _enter(FMT,
...) kenter(FMT,##__VA_ARGS__
)
#define _leave(FMT,
...) kleave(FMT,##__VA_ARGS__
)
#define _debug(FMT,
...) kdebug(FMT,##__VA_ARGS__
)
#define _proto(FMT,
...) kproto(FMT,##__VA_ARGS__
)
#define _net(FMT,
...) knet(FMT,##__VA_ARGS__
)
#define _enter(FMT,
a...) kenter(FMT , ## a
)
#define _leave(FMT,
a...) kleave(FMT , ## a
)
#define _debug(FMT,
a...) kdebug(FMT , ## a
)
#define _proto(FMT,
a...) kproto(FMT , ## a
)
#define _net(FMT,
a...) knet(FMT , ## a
)
#else
#define _enter(FMT,...) do { } while(0)
#define _leave(FMT,...) do { } while(0)
#define _debug(FMT,...) do { } while(0)
#define _proto(FMT,...) do { } while(0)
#define _net(FMT,...) do { } while(0)
#endif
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,5,0)
#define wait_on_page_locked wait_on_page
#define PageUptodate Page_Uptodate
static
inline
struct
proc_dir_entry
*
PDE
(
const
struct
inode
*
inode
)
{
return
(
struct
proc_dir_entry
*
)
inode
->
u
.
generic_ip
;
}
#define _enter(FMT, a...) do { } while(0)
#define _leave(FMT, a...) do { } while(0)
#define _debug(FMT, a...) do { } while(0)
#define _proto(FMT, a...) do { } while(0)
#define _net(FMT, a...) do { } while(0)
#endif
static
inline
void
afs_discard_my_signals
(
void
)
...
...
@@ -85,12 +75,7 @@ extern struct file_operations afs_file_file_operations;
* inode.c
*/
extern
int
afs_iget
(
struct
super_block
*
sb
,
afs_fid_t
*
fid
,
struct
inode
**
_inode
);
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
extern
int
afs_inode_getattr
(
struct
vfsmount
*
mnt
,
struct
dentry
*
dentry
,
struct
kstat
*
stat
);
#else
extern
void
afs_read_inode2
(
struct
inode
*
inode
,
void
*
opaque
);
extern
int
afs_inode_revalidate
(
struct
dentry
*
dentry
);
#endif
extern
void
afs_clear_inode
(
struct
inode
*
inode
);
/*
...
...
@@ -113,7 +98,7 @@ extern struct list_head afs_cb_hash_tbl[];
extern
spinlock_t
afs_cb_hash_lock
;
#define afs_cb_hash(SRV,FID) \
afs_cb_hash_tbl[((unsigned)(SRV) + (FID)->vid + (FID)->vnode + (FID)->unique) % \
afs_cb_hash_tbl[((unsigned
long
)(SRV) + (FID)->vid + (FID)->vnode + (FID)->unique) % \
AFS_CB_HASH_COUNT]
/*
...
...
fs/afs/kafsasyncd.c
View file @
a8e3a152
...
...
@@ -103,11 +103,7 @@ static int kafsasyncd(void *arg)
/* only certain signals are of interest */
spin_lock_irq
(
&
current
->
sig
->
siglock
);
siginitsetinv
(
&
current
->
blocked
,
0
);
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,3)
recalc_sigpending
();
#else
recalc_sigpending
(
current
);
#endif
spin_unlock_irq
(
&
current
->
sig
->
siglock
);
/* loop around looking for things to attend to */
...
...
fs/afs/kafstimod.c
View file @
a8e3a152
...
...
@@ -80,11 +80,7 @@ static int kafstimod(void *arg)
/* only certain signals are of interest */
spin_lock_irq
(
&
current
->
sig
->
siglock
);
siginitsetinv
(
&
current
->
blocked
,
0
);
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,3)
recalc_sigpending
();
#else
recalc_sigpending
(
current
);
#endif
spin_unlock_irq
(
&
current
->
sig
->
siglock
);
/* loop around looking for things to attend to */
...
...
fs/afs/main.c
View file @
a8e3a152
...
...
@@ -173,8 +173,8 @@ static void afs_discarding_peer(struct rxrpc_peer *peer)
_debug
(
"Discarding peer %08x (rtt=%lu.%lumS)
\n
"
,
ntohl
(
peer
->
addr
.
s_addr
),
peer
->
rtt
/
1000
,
peer
->
rtt
%
1000
);
(
long
)(
peer
->
rtt
/
1000
)
,
(
long
)(
peer
->
rtt
%
1000
)
);
/* uncross-point the structs under a global lock */
spin_lock
(
&
afs_server_peer_lock
);
...
...
fs/afs/mntpt.c
View file @
a8e3a152
...
...
@@ -31,11 +31,7 @@ struct file_operations afs_mntpt_file_operations = {
struct
inode_operations
afs_mntpt_inode_operations
=
{
.
lookup
=
afs_mntpt_lookup
,
.
readlink
=
page_readlink
,
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
.
getattr
=
afs_inode_getattr
,
#else
.
revalidate
=
afs_inode_revalidate
,
#endif
};
/*****************************************************************************/
...
...
@@ -70,7 +66,7 @@ int afs_mntpt_check_symlink(afs_vnode_t *vnode)
/* examine the symlink's contents */
size
=
vnode
->
status
.
size
;
_debug
(
"symlink to %*.*s"
,
size
,
size
,
buf
);
_debug
(
"symlink to %*.*s"
,
size
,
(
int
)
size
,
buf
);
if
(
size
>
2
&&
(
buf
[
0
]
==
'%'
||
buf
[
0
]
==
'#'
)
&&
...
...
fs/afs/proc.c
View file @
a8e3a152
...
...
@@ -412,6 +412,7 @@ static int afs_proc_cell_volumes_release(struct inode *inode, struct file *file)
afs_put_cell
(
cell
);
return
ret
;
}
/* end afs_proc_cell_volumes_release() */
/*****************************************************************************/
...
...
@@ -536,6 +537,7 @@ static int afs_proc_cell_vlservers_release(struct inode *inode, struct file *fil
afs_put_cell
(
cell
);
return
ret
;
}
/* end afs_proc_cell_vlservers_release() */
/*****************************************************************************/
...
...
@@ -651,6 +653,7 @@ static int afs_proc_cell_servers_release(struct inode *inode, struct file *file)
afs_put_cell
(
cell
);
return
ret
;
}
/* end afs_proc_cell_servers_release() */
/*****************************************************************************/
...
...
fs/afs/super.c
View file @
a8e3a152
...
...
@@ -39,12 +39,8 @@ static inline char *strdup(const char *s)
static
void
afs_i_init_once
(
void
*
foo
,
kmem_cache_t
*
cachep
,
unsigned
long
flags
);
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
static
struct
super_block
*
afs_get_sb
(
struct
file_system_type
*
fs_type
,
int
flags
,
char
*
dev_name
,
void
*
data
);
#else
static
struct
super_block
*
afs_read_super
(
struct
super_block
*
sb
,
void
*
data
,
int
);
#endif
static
struct
inode
*
afs_alloc_inode
(
struct
super_block
*
sb
);
...
...
@@ -55,30 +51,20 @@ static void afs_destroy_inode(struct inode *inode);
static
struct
file_system_type
afs_fs_type
=
{
.
owner
=
THIS_MODULE
,
.
name
=
"afs"
,
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
.
get_sb
=
afs_get_sb
,
.
kill_sb
=
kill_anon_super
,
#else
.
read_super
=
afs_read_super
,
#endif
};
static
struct
super_operations
afs_super_ops
=
{
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
.
statfs
=
simple_statfs
,
.
alloc_inode
=
afs_alloc_inode
,
.
drop_inode
=
generic_delete_inode
,
.
destroy_inode
=
afs_destroy_inode
,
#else
.
read_inode2
=
afs_read_inode2
,
#endif
.
clear_inode
=
afs_clear_inode
,
.
put_super
=
afs_put_super
,
};
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
static
kmem_cache_t
*
afs_inode_cachep
;
#endif
/*****************************************************************************/
/*
...
...
@@ -90,23 +76,6 @@ int __init afs_fs_init(void)
kenter
(
""
);
/* open the cache */
#if 0
ret = -EINVAL;
if (!cachedev) {
printk(KERN_NOTICE "kAFS: No cache device specified as module parm\n");
printk(KERN_NOTICE "kAFS: Set with \"cachedev=<devname>\" on insmod's cmdline\n");
return ret;
}
ret = afs_cache_open(cachedev,&afs_cache);
if (ret<0) {
printk(KERN_NOTICE "kAFS: Failed to open cache device\n");
return ret;
}
#endif
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
/* create ourselves an inode cache */
ret
=
-
ENOMEM
;
afs_inode_cachep
=
kmem_cache_create
(
"afs_inode_cache"
,
...
...
@@ -117,22 +86,13 @@ int __init afs_fs_init(void)
NULL
);
if
(
!
afs_inode_cachep
)
{
printk
(
KERN_NOTICE
"kAFS: Failed to allocate inode cache
\n
"
);
#if 0
afs_put_cache(afs_cache);
#endif
return
ret
;
}
#endif
/* now export our filesystem to lesser mortals */
ret
=
register_filesystem
(
&
afs_fs_type
);
if
(
ret
<
0
)
{
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
kmem_cache_destroy
(
afs_inode_cachep
);
#endif
#if 0
afs_put_cache(afs_cache);
#endif
kleave
(
" = %d"
,
ret
);
return
ret
;
}
...
...
@@ -148,16 +108,10 @@ int __init afs_fs_init(void)
void
__exit
afs_fs_exit
(
void
)
{
/* destroy our private inode cache */
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
kmem_cache_destroy
(
afs_inode_cachep
);
#endif
unregister_filesystem
(
&
afs_fs_type
);
#if 0
if (afs_cache)
afs_put_cache(afs_cache);
#endif
}
/* end afs_fs_exit() */
/*****************************************************************************/
...
...
@@ -453,7 +407,6 @@ static int afs_fill_super(struct super_block *sb, void *_data, int silent)
* get an AFS superblock
* - TODO: don't use get_sb_nodev(), but rather call sget() directly
*/
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
static
struct
super_block
*
afs_get_sb
(
struct
file_system_type
*
fs_type
,
int
flags
,
char
*
dev_name
,
...
...
@@ -482,39 +435,6 @@ static struct super_block *afs_get_sb(struct file_system_type *fs_type,
_leave
(
""
);
return
sb
;
}
/* end afs_get_sb() */
#endif
/*****************************************************************************/
/*
* read an AFS superblock
*/
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
static
struct
super_block
*
afs_read_super
(
struct
super_block
*
sb
,
void
*
options
,
int
silent
)
{
void
*
data
[
2
]
=
{
NULL
,
options
};
int
ret
;
_enter
(
",,%s"
,(
char
*
)
options
);
/* start the cache manager */
ret
=
afscm_start
();
if
(
ret
<
0
)
{
_leave
(
" = NULL (%d)"
,
ret
);
return
NULL
;
}
/* allocate a deviceless superblock */
ret
=
afs_fill_super
(
sb
,
data
,
silent
);
if
(
ret
<
0
)
{
afscm_stop
();
_leave
(
" = NULL (%d)"
,
ret
);
return
NULL
;
}
_leave
(
" = %p"
,
sb
);
return
sb
;
}
/* end afs_read_super() */
#endif
/*****************************************************************************/
/*
...
...
@@ -540,7 +460,6 @@ static void afs_put_super(struct super_block *sb)
/*
* initialise an inode cache slab element prior to any use
*/
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
static
void
afs_i_init_once
(
void
*
_vnode
,
kmem_cache_t
*
cachep
,
unsigned
long
flags
)
{
afs_vnode_t
*
vnode
=
(
afs_vnode_t
*
)
_vnode
;
...
...
@@ -556,13 +475,11 @@ static void afs_i_init_once(void *_vnode, kmem_cache_t *cachep, unsigned long fl
}
}
/* end afs_i_init_once() */
#endif
/*****************************************************************************/
/*
* allocate an AFS inode struct from our slab cache
*/
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
static
struct
inode
*
afs_alloc_inode
(
struct
super_block
*
sb
)
{
afs_vnode_t
*
vnode
;
...
...
@@ -580,16 +497,13 @@ static struct inode *afs_alloc_inode(struct super_block *sb)
return
&
vnode
->
vfs_inode
;
}
/* end afs_alloc_inode() */
#endif
/*****************************************************************************/
/*
* destroy an AFS inode struct
*/
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
static
void
afs_destroy_inode
(
struct
inode
*
inode
)
{
_enter
(
"{%lu}"
,
inode
->
i_ino
);
kmem_cache_free
(
afs_inode_cachep
,
AFS_FS_I
(
inode
));
}
/* end afs_destroy_inode() */
#endif
fs/afs/vlclient.c
View file @
a8e3a152
...
...
@@ -626,7 +626,7 @@ static void afs_rxvl_get_entry_by_id_attn(struct rxrpc_call *call)
case
RXRPC_CSTATE_CLNT_GOT_REPLY
:
if
(
call
->
app_read_count
==
0
)
break
;
printk
(
"kAFS: Reply bigger than expected {cst=%u asyn=%d mark=%
d rdy=%
u pr=%u%s}"
,
printk
(
"kAFS: Reply bigger than expected {cst=%u asyn=%d mark=%
Zu rdy=%Z
u pr=%u%s}"
,
call
->
app_call_state
,
call
->
app_async_read
,
call
->
app_mark
,
...
...
fs/afs/vnode.h
View file @
a8e3a152
...
...
@@ -27,11 +27,7 @@ struct afs_rxfs_fetch_descriptor;
*/
struct
afs_vnode
{
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
struct
inode
vfs_inode
;
/* the VFS's inode record */
#else
struct
inode
*
inode
;
/* the VFS's inode */
#endif
afs_volume_t
*
volume
;
/* volume on which vnode resides */
afs_fid_t
fid
;
/* the file identifier for this inode */
...
...
@@ -59,20 +55,12 @@ struct afs_vnode
static
inline
afs_vnode_t
*
AFS_FS_I
(
struct
inode
*
inode
)
{
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
return
list_entry
(
inode
,
afs_vnode_t
,
vfs_inode
);
#else
return
inode
->
u
.
generic_ip
;
#endif
return
container_of
(
inode
,
afs_vnode_t
,
vfs_inode
);
}
static
inline
struct
inode
*
AFS_VNODE_TO_I
(
afs_vnode_t
*
vnode
)
{
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
return
&
vnode
->
vfs_inode
;
#else
return
vnode
->
inode
;
#endif
}
extern
int
afs_vnode_fetch_status
(
afs_vnode_t
*
vnode
);
...
...
fs/partitions/check.c
View file @
a8e3a152
...
...
@@ -299,7 +299,7 @@ static ssize_t part_attr_show(struct kobject * kobj, struct attribute * attr,
}
static
struct
sysfs_ops
part_sysfs_ops
=
{
.
show
part_attr_show
,
.
show
=
part_attr_show
,
};
static
ssize_t
part_dev_read
(
struct
hd_struct
*
p
,
...
...
include/asm-alpha/dma.h
View file @
a8e3a152
...
...
@@ -85,44 +85,47 @@
/* The maximum address for ISA DMA transfer on Alpha XL, due to an
hardware SIO limitation, is 64MB.
*/
#define ALPHA_XL_MAX_
DMA_ADDRESS (IDENT_ADDR+0x04000000UL)
#define ALPHA_XL_MAX_
ISA_DMA_ADDRESS 0x04000000UL
/* The maximum address for ISA DMA transfer on RUFFIAN
and NAUTILUS
,
/* The maximum address for ISA DMA transfer on RUFFIAN,
due to an hardware SIO limitation, is 16MB.
*/
#define ALPHA_RUFFIAN_MAX_DMA_ADDRESS (IDENT_ADDR+0x01000000UL)
#define ALPHA_NAUTILUS_MAX_DMA_ADDRESS (IDENT_ADDR+0x01000000UL)
#define ALPHA_RUFFIAN_MAX_ISA_DMA_ADDRESS 0x01000000UL
/* The maximum address for ISA DMA transfer on SABLE, and some ALCORs,
due to an hardware SIO chip limitation, is 2GB.
*/
#define ALPHA_SABLE_MAX_
DMA_ADDRESS (IDENT_ADDR+0x80000000UL)
#define ALPHA_ALCOR_MAX_
DMA_ADDRESS (IDENT_ADDR+0x80000000UL)
#define ALPHA_SABLE_MAX_
ISA_DMA_ADDRESS 0x80000000UL
#define ALPHA_ALCOR_MAX_
ISA_DMA_ADDRESS 0x80000000UL
/*
Maximum address for all the others is the complete 32-bit bus
address space.
*/
#define ALPHA_MAX_
DMA_ADDRESS (IDENT_ADDR+0x100000000UL)
#define ALPHA_MAX_
ISA_DMA_ADDRESS 0x100000000UL
#ifdef CONFIG_ALPHA_GENERIC
# define MAX_
DMA_ADDRESS (alpha_mv.max
_dma_address)
# define MAX_
ISA_DMA_ADDRESS (alpha_mv.max_isa
_dma_address)
#else
# if defined(CONFIG_ALPHA_XL)
# define MAX_
DMA_ADDRESS ALPHA_XL_MAX
_DMA_ADDRESS
# define MAX_
ISA_DMA_ADDRESS ALPHA_XL_MAX_ISA
_DMA_ADDRESS
# elif defined(CONFIG_ALPHA_RUFFIAN)
# define MAX_DMA_ADDRESS ALPHA_RUFFIAN_MAX_DMA_ADDRESS
# elif defined(CONFIG_ALPHA_NAUTILUS)
# define MAX_DMA_ADDRESS ALPHA_NAUTILUS_MAX_DMA_ADDRESS
# define MAX_ISA_DMA_ADDRESS ALPHA_RUFFIAN_MAX_ISA_DMA_ADDRESS
# elif defined(CONFIG_ALPHA_SABLE)
# define MAX_
DMA_ADDRESS ALPHA_SABLE_MAX_DM
A_ADDRESS
# define MAX_
ISA_DMA_ADDRESS ALPHA_SABLE_MAX_DMA_IS
A_ADDRESS
# elif defined(CONFIG_ALPHA_ALCOR)
# define MAX_
DMA_ADDRESS ALPHA_ALCOR_MAX_DM
A_ADDRESS
# define MAX_
ISA_DMA_ADDRESS ALPHA_ALCOR_MAX_DMA_IS
A_ADDRESS
# else
# define MAX_
DMA_ADDRESS ALPHA_MAX
_DMA_ADDRESS
# define MAX_
ISA_DMA_ADDRESS ALPHA_MAX_ISA
_DMA_ADDRESS
# endif
#endif
/* If we have the iommu, we don't have any address limitations on DMA.
Otherwise (Nautilus, RX164), we have to have 0-16 Mb DMA zone
like i386. */
#define MAX_DMA_ADDRESS (alpha_mv.mv_pci_tbi ? \
~0UL : IDENT_ADDR + 0x01000000)
/* 8237 DMA controllers */
#define IO_DMA1_BASE 0x00
/* 8 bit slave DMA, channels 0..3 */
#define IO_DMA2_BASE 0xC0
/* 16 bit master DMA, ch 4(=slave input)..7 */
...
...
include/asm-alpha/floppy.h
View file @
a8e3a152
...
...
@@ -51,12 +51,12 @@ alpha_fd_dma_setup(char *addr, unsigned long size, int mode, int io)
if
(
bus_addr
&&
(
addr
!=
prev_addr
||
size
!=
prev_size
||
dir
!=
prev_dir
))
{
/* different from last time -- unmap prev */
pci_unmap_single
(
NULL
,
bus_addr
,
prev_size
,
prev_dir
);
pci_unmap_single
(
isa_bridge
,
bus_addr
,
prev_size
,
prev_dir
);
bus_addr
=
0
;
}
if
(
!
bus_addr
)
/* need to map it */
bus_addr
=
pci_map_single
(
NULL
,
addr
,
size
,
dir
);
bus_addr
=
pci_map_single
(
isa_bridge
,
addr
,
size
,
dir
);
/* remember this one as prev */
prev_addr
=
addr
;
...
...
include/asm-alpha/machvec.h
View file @
a8e3a152
...
...
@@ -34,7 +34,7 @@ struct alpha_machine_vector
int
nr_irqs
;
int
rtc_port
;
int
max_asn
;
unsigned
long
max_dma_address
;
unsigned
long
max_
isa_
dma_address
;
unsigned
long
irq_probe_mask
;
unsigned
long
iack_sc
;
unsigned
long
min_io_address
;
...
...
include/asm-alpha/processor.h
View file @
a8e3a152
...
...
@@ -55,9 +55,6 @@ extern void release_thread(struct task_struct *);
/* Create a kernel thread without removing it from tasklists. */
extern
long
kernel_thread
(
int
(
*
fn
)(
void
*
),
void
*
arg
,
unsigned
long
flags
);
#define copy_segments(tsk, mm) do { } while (0)
#define release_segments(mm) do { } while (0)
unsigned
long
get_wchan
(
struct
task_struct
*
p
);
/* See arch/alpha/kernel/ptrace.c for details. */
...
...
include/asm-arm/processor.h
View file @
a8e3a152
...
...
@@ -62,10 +62,6 @@ struct task_struct;
/* Free all resources held by a thread. */
extern
void
release_thread
(
struct
task_struct
*
);
/* Copy and release all segment info associated with a VM */
#define copy_segments(tsk, mm) do { } while (0)
#define release_segments(mm) do { } while (0)
unsigned
long
get_wchan
(
struct
task_struct
*
p
);
#define cpu_relax() barrier()
...
...
include/asm-cris/processor.h
View file @
a8e3a152
...
...
@@ -108,10 +108,6 @@ unsigned long get_wchan(struct task_struct *p);
#define KSTK_ESP(tsk) ((tsk) == current ? rdusp() : (tsk)->thread.usp)
#define copy_segments(tsk, mm) do { } while (0)
#define release_segments(mm) do { } while (0)
#define forget_segments() do { } while (0)
/*
* Free current thread data structures etc..
*/
...
...
include/asm-ia64/processor.h
View file @
a8e3a152
...
...
@@ -362,10 +362,6 @@ struct task_struct;
*/
extern
int
kernel_thread
(
int
(
*
fn
)(
void
*
),
void
*
arg
,
unsigned
long
flags
);
/* Copy and release all segment info associated with a VM */
#define copy_segments(tsk, mm) do { } while (0)
#define release_segments(mm) do { } while (0)
/* Get wait channel for task P. */
extern
unsigned
long
get_wchan
(
struct
task_struct
*
p
);
...
...
include/asm-m68k/processor.h
View file @
a8e3a152
...
...
@@ -114,9 +114,6 @@ static inline void release_thread(struct task_struct *dead_task)
extern
int
kernel_thread
(
int
(
*
fn
)(
void
*
),
void
*
arg
,
unsigned
long
flags
);
#define copy_segments(tsk, mm) do { } while (0)
#define release_segments(mm) do { } while (0)
/*
* Free current thread data structures etc..
*/
...
...
include/asm-m68knommu/processor.h
View file @
a8e3a152
...
...
@@ -104,10 +104,6 @@ static inline void release_thread(struct task_struct *dead_task)
extern
int
kernel_thread
(
int
(
*
fn
)(
void
*
),
void
*
arg
,
unsigned
long
flags
);
#define copy_segments(tsk, mm) do { } while (0)
#define release_segments(mm) do { } while (0)
#define forget_segments() do { } while (0)
/*
* Free current thread data structures etc..
*/
...
...
include/asm-mips/processor.h
View file @
a8e3a152
...
...
@@ -210,10 +210,6 @@ struct thread_struct {
extern
int
kernel_thread
(
int
(
*
fn
)(
void
*
),
void
*
arg
,
unsigned
long
flags
);
/* Copy and release all segment info associated with a VM */
#define copy_segments(p, mm) do { } while(0)
#define release_segments(mm) do { } while(0)
/*
* Return saved PC of a blocked thread.
*/
...
...
include/asm-mips64/processor.h
View file @
a8e3a152
...
...
@@ -233,10 +233,6 @@ struct thread_struct {
extern
int
kernel_thread
(
int
(
*
fn
)(
void
*
),
void
*
arg
,
unsigned
long
flags
);
/* Copy and release all segment info associated with a VM */
#define copy_segments(p, mm) do { } while(0)
#define release_segments(mm) do { } while(0)
/*
* Return saved PC of a blocked thread.
*/
...
...
include/asm-parisc/processor.h
View file @
a8e3a152
...
...
@@ -295,12 +295,6 @@ extern int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags);
extern
void
map_hpux_gateway_page
(
struct
task_struct
*
tsk
,
struct
mm_struct
*
mm
);
#define copy_segments(tsk, mm) do { \
if (tsk->personality == PER_HPUX) \
map_hpux_gateway_page(tsk,mm); \
} while (0)
#define release_segments(mm) do { } while (0)
static
inline
unsigned
long
get_wchan
(
struct
task_struct
*
p
)
{
return
0xdeadbeef
;
/* XXX */
...
...
include/asm-ppc/processor.h
View file @
a8e3a152
...
...
@@ -736,9 +736,6 @@ struct thread_struct {
#define thread_saved_pc(tsk) \
((tsk)->thread.regs? (tsk)->thread.regs->nip: 0)
#define copy_segments(tsk, mm) do { } while (0)
#define release_segments(mm) do { } while (0)
unsigned
long
get_wchan
(
struct
task_struct
*
p
);
#define KSTK_EIP(tsk) ((tsk)->thread.regs? (tsk)->thread.regs->nip: 0)
...
...
include/asm-ppc64/processor.h
View file @
a8e3a152
...
...
@@ -682,10 +682,6 @@ extern struct mm_struct ioremap_mm;
#define thread_saved_pc(tsk) \
((tsk)->thread.regs? (tsk)->thread.regs->nip: 0)
#define copy_segments(tsk, mm) do { } while (0)
#define release_segments(mm) do { } while (0)
#define forget_segments() do { } while (0)
unsigned
long
get_wchan
(
struct
task_struct
*
p
);
#define KSTK_EIP(tsk) ((tsk)->thread.regs? (tsk)->thread.regs->nip: 0)
...
...
include/asm-s390/processor.h
View file @
a8e3a152
...
...
@@ -114,10 +114,6 @@ struct mm_struct;
extern
void
release_thread
(
struct
task_struct
*
);
extern
int
kernel_thread
(
int
(
*
fn
)(
void
*
),
void
*
arg
,
unsigned
long
flags
);
/* Copy and release all segment info associated with a VM */
#define copy_segments(nr, mm) do { } while (0)
#define release_segments(mm) do { } while (0)
/*
* Return saved PC of a blocked thread.
*/
...
...
include/asm-s390x/processor.h
View file @
a8e3a152
...
...
@@ -131,10 +131,6 @@ struct mm_struct;
extern
void
release_thread
(
struct
task_struct
*
);
extern
int
kernel_thread
(
int
(
*
fn
)(
void
*
),
void
*
arg
,
unsigned
long
flags
);
/* Copy and release all segment info associated with a VM */
#define copy_segments(nr, mm) do { } while (0)
#define release_segments(mm) do { } while (0)
/*
* Return saved PC of a blocked thread.
*/
...
...
include/asm-sh/processor.h
View file @
a8e3a152
...
...
@@ -147,11 +147,6 @@ extern int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags);
#define MCA_bus 0
#define MCA_bus__is_a_macro
/* for versions in ksyms.c */
/* Copy and release all segment info associated with a VM */
#define copy_segments(p, mm) do { } while(0)
#define release_segments(mm) do { } while(0)
/*
* FPU lazy state save handling.
*/
...
...
include/asm-sparc/processor.h
View file @
a8e3a152
...
...
@@ -140,10 +140,6 @@ extern __inline__ void start_thread(struct pt_regs * regs, unsigned long pc,
#define release_thread(tsk) do { } while(0)
extern
pid_t
kernel_thread
(
int
(
*
fn
)(
void
*
),
void
*
arg
,
unsigned
long
flags
);
#define copy_segments(tsk, mm) do { } while (0)
#define release_segments(mm) do { } while (0)
#define get_wchan(__TSK) \
({ extern void scheduling_functions_start_here(void); \
extern void scheduling_functions_end_here(void); \
...
...
include/asm-sparc64/processor.h
View file @
a8e3a152
...
...
@@ -188,9 +188,6 @@ do { \
extern
pid_t
kernel_thread
(
int
(
*
fn
)(
void
*
),
void
*
arg
,
unsigned
long
flags
);
#define copy_segments(tsk, mm) do { } while (0)
#define release_segments(mm) do { } while (0)
#define get_wchan(__TSK) \
({ extern void scheduling_functions_start_here(void); \
extern void scheduling_functions_end_here(void); \
...
...
include/asm-um/processor-generic.h
View file @
a8e3a152
...
...
@@ -92,17 +92,6 @@ extern void release_thread(struct task_struct *);
extern
int
kernel_thread
(
int
(
*
fn
)(
void
*
),
void
*
arg
,
unsigned
long
flags
);
extern
void
dump_thread
(
struct
pt_regs
*
regs
,
struct
user
*
u
);
static
inline
void
release_segments
(
struct
mm_struct
*
mm
)
{
}
static
inline
void
copy_segments
(
struct
task_struct
*
p
,
struct
mm_struct
*
new_mm
)
{
}
#define forget_segments() do ; while(0)
extern
unsigned
long
thread_saved_pc
(
struct
task_struct
*
t
);
#define init_stack (init_thread_union.stack)
...
...
include/linux/cpufreq.h
View file @
a8e3a152
...
...
@@ -5,7 +5,7 @@
* (C) 2002 Dominik Brodowski <linux@brodo.de>
*
*
* $Id: cpufreq.h,v 1.2
6 2002/09/21 09:05:29
db Exp $
* $Id: cpufreq.h,v 1.2
7 2002/10/08 14:54:23
db Exp $
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
...
...
@@ -148,11 +148,9 @@ static inline void cpufreq_verify_within_limits(struct cpufreq_policy *policy, u
int
cpufreq_set_policy
(
struct
cpufreq_policy
*
policy
);
int
cpufreq_get_policy
(
struct
cpufreq_policy
*
policy
,
unsigned
int
cpu
);
#ifdef CONFIG_CPU_FREQ_26_API
#ifdef CONFIG_PM
int
cpufreq_restore
(
void
);
#endif
#endif
#ifdef CONFIG_CPU_FREQ_24_API
...
...
@@ -160,9 +158,6 @@ int cpufreq_restore(void);
* CPUFREQ 2.4. INTERFACE *
*********************************************************************/
int
cpufreq_setmax
(
unsigned
int
cpu
);
#ifdef CONFIG_PM
int
cpufreq_restore
(
void
);
#endif
int
cpufreq_set
(
unsigned
int
kHz
,
unsigned
int
cpu
);
unsigned
int
cpufreq_get
(
unsigned
int
cpu
);
...
...
include/linux/pci.h
View file @
a8e3a152
...
...
@@ -643,6 +643,10 @@ void pci_pool_destroy (struct pci_pool *pool);
void
*
pci_pool_alloc
(
struct
pci_pool
*
pool
,
int
flags
,
dma_addr_t
*
handle
);
void
pci_pool_free
(
struct
pci_pool
*
pool
,
void
*
vaddr
,
dma_addr_t
addr
);
#if defined(CONFIG_ISA) || defined(CONFIG_EISA)
extern
struct
pci_dev
*
isa_bridge
;
#endif
#endif
/* CONFIG_PCI */
/* Include architecture-dependent settings and functions */
...
...
@@ -703,6 +707,8 @@ static inline int pci_enable_wake(struct pci_dev *dev, u32 state, int enable) {
#define pci_for_each_dev(dev) \
for(dev = NULL; 0; )
#define isa_bridge ((struct pci_dev *)NULL)
#else
/*
...
...
include/rxrpc/call.h
View file @
a8e3a152
...
...
@@ -153,7 +153,7 @@ do { (CALL)->app_scr_alloc = (CALL)->app_scratch; } while(0)
(CALL)->app_scr_alloc += (SIZE); \
if ((SIZE)>RXRPC_CALL_SCRATCH_SIZE || \
(size_t)((CALL)->app_scr_alloc - (u8*)(CALL)) > RXRPC_CALL_SCRATCH_SIZE) { \
printk("rxrpc_call_alloc_scratch(%p,%
u)\n",(CALL),(SIZE));
\
printk("rxrpc_call_alloc_scratch(%p,%
Zu)\n",(CALL),(size_t)(SIZE));
\
BUG(); \
} \
ptr; \
...
...
@@ -167,7 +167,7 @@ do { (CALL)->app_scr_alloc = (CALL)->app_scratch; } while(0)
(CALL)->app_scr_alloc += size; \
if (size>RXRPC_CALL_SCRATCH_SIZE || \
(size_t)((CALL)->app_scr_alloc - (u8*)(CALL)) > RXRPC_CALL_SCRATCH_SIZE) { \
printk("rxrpc_call_alloc_scratch(%p,%u)\n",(CALL),size); \
printk("rxrpc_call_alloc_scratch(%p,%
Z
u)\n",(CALL),size); \
BUG(); \
} \
ptr; \
...
...
include/rxrpc/peer.h
View file @
a8e3a152
...
...
@@ -57,8 +57,8 @@ struct rxrpc_peer
/* calculated RTT cache */
#define RXRPC_RTT_CACHE_SIZE 32
suseconds_t
rtt
;
/* current RTT estimate (in uS) */
unsigned
short
rtt_point
;
/* next entry at which to insert */
unsigned
short
rtt_usage
;
/* amount of cache actually used */
unsigned
rtt_point
;
/* next entry at which to insert */
unsigned
rtt_usage
;
/* amount of cache actually used */
suseconds_t
rtt_cache
[
RXRPC_RTT_CACHE_SIZE
];
/* calculated RTT cache */
};
...
...
kernel/cpufreq.c
View file @
a8e3a152
...
...
@@ -4,7 +4,7 @@
* Copyright (C) 2001 Russell King
* (C) 2002 Dominik Brodowski <linux@brodo.de>
*
* $Id: cpufreq.c,v 1.4
3 2002/09/21 09:05:29
db Exp $
* $Id: cpufreq.c,v 1.4
5 2002/10/08 14:54:23
db Exp $
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
...
...
@@ -21,13 +21,10 @@
#include <linux/interrupt.h>
#include <linux/spinlock.h>
#include <linux/ctype.h>
#include <linux/proc_fs.h>
#include <asm/uaccess.h>
#ifdef CONFIG_CPU_FREQ_26_API
#include <linux/proc_fs.h>
#endif
#ifdef CONFIG_CPU_FREQ_24_API
#include <linux/sysctl.h>
#endif
...
...
@@ -200,7 +197,6 @@ static int __init cpufreq_setup(char *str)
__setup
(
"cpufreq="
,
cpufreq_setup
);
#ifdef CONFIG_CPU_FREQ_26_API
#ifdef CONFIG_PROC_FS
/**
...
...
@@ -335,7 +331,6 @@ static void cpufreq_proc_exit (void)
return
;
}
#endif
/* CONFIG_PROC_FS */
#endif
/* CONFIG_CPU_FREQ_26_API */
...
...
@@ -344,10 +339,6 @@ static void cpufreq_proc_exit (void)
*********************************************************************/
#ifdef CONFIG_CPU_FREQ_24_API
/* NOTE #1: when you use this API, you may not use any other calls,
* except cpufreq_[un]register_notifier, of course.
*/
/**
* cpufreq_set - set the CPU frequency
* @freq: target frequency in kHz
...
...
@@ -879,7 +870,7 @@ int cpufreq_set_policy(struct cpufreq_policy *policy)
cpufreq_driver
->
policy
[
policy
->
cpu
].
max
=
policy
->
max
;
cpufreq_driver
->
policy
[
policy
->
cpu
].
policy
=
policy
->
policy
;
}
#ifdef CONFIG_CPU_FREQ_24_API
if
(
policy
->
cpu
==
CPUFREQ_ALL_CPUS
)
{
for
(
i
=
0
;
i
<
NR_CPUS
;
i
++
)
...
...
@@ -945,6 +936,14 @@ void cpufreq_notify_transition(struct cpufreq_freqs *freqs, unsigned int state)
case
CPUFREQ_POSTCHANGE
:
adjust_jiffies
(
CPUFREQ_POSTCHANGE
,
freqs
);
notifier_call_chain
(
&
cpufreq_transition_notifier_list
,
CPUFREQ_POSTCHANGE
,
freqs
);
#ifdef CONFIG_CPU_FREQ_24_API
if
(
freqs
->
cpu
==
CPUFREQ_ALL_CPUS
)
{
int
i
;
for
(
i
=
0
;
i
<
NR_CPUS
;
i
++
)
cpu_cur_freq
[
i
]
=
freqs
->
new
;
}
else
cpu_cur_freq
[
freqs
->
cpu
]
=
freqs
->
new
;
#endif
break
;
}
up
(
&
cpufreq_notifier_sem
);
...
...
@@ -992,9 +991,7 @@ int cpufreq_register(struct cpufreq_driver *driver_data)
ret
=
cpufreq_set_policy
(
&
default_policy
);
#ifdef CONFIG_CPU_FREQ_26_API
cpufreq_proc_init
();
#endif
#ifdef CONFIG_CPU_FREQ_24_API
down
(
&
cpufreq_driver_sem
);
...
...
@@ -1042,9 +1039,7 @@ int cpufreq_unregister(void)
up
(
&
cpufreq_driver_sem
);
#ifdef CONFIG_CPU_FREQ_26_API
cpufreq_proc_exit
();
#endif
#ifdef CONFIG_CPU_FREQ_24_API
cpufreq_sysctl_exit
();
...
...
@@ -1086,13 +1081,7 @@ int cpufreq_restore(void)
policy
.
cpu
=
i
;
up
(
&
cpufreq_driver_sem
);
#ifdef CONFIG_CPU_FREQ_26_API
cpufreq_set_policy
(
&
policy
);
#endif
#ifdef CONFIG_CPU_FREQ_24_API
cpufreq_set
(
cpu_cur_freq
[
i
],
i
);
#endif
}
return
0
;
...
...
net/rxrpc/Makefile
View file @
a8e3a152
...
...
@@ -15,19 +15,13 @@ rxrpc-objs := \
rxrpc_syms.o
\
transport.o
#
ifeq ($(CONFIG_PROC_FS),y)
rxrpc-objs
+=
proc.o
#
endif
#
ifeq ($(CONFIG_SYSCTL),y)
ifeq
($(CONFIG_PROC_FS),y)
rxrpc-objs
+=
proc.o
endif
ifeq
($(CONFIG_SYSCTL),y)
rxrpc-objs
+=
sysctl.o
#endif
obj-m
:=
rxrpc.o
# superfluous for 2.5, but needed for 2.4..
ifeq
"$(VERSION).$(PATCHLEVEL)" "2.4"
rxrpc.o
:
$(rxrpc-objs)
$(LD)
-r
-o
$@
$
(
rxrpc-objs
)
endif
obj-$(CONFIG_RXRPC)
:=
rxrpc.o
include
$(TOPDIR)/Rules.make
net/rxrpc/call.c
View file @
a8e3a152
...
...
@@ -26,10 +26,10 @@ __RXACCT_DECL(atomic_t rxrpc_message_count);
LIST_HEAD
(
rxrpc_calls
);
DECLARE_RWSEM
(
rxrpc_calls_sem
);
unsigned
rxrpc_call_rcv_timeout
=
30
;
unsigned
rxrpc_call_acks_timeout
=
30
;
unsigned
rxrpc_call_dfr_ack_timeout
=
5
;
unsigned
short
rxrpc_call_max_resend
=
10
;
unsigned
rxrpc_call_rcv_timeout
=
HZ
/
3
;
unsigned
rxrpc_call_acks_timeout
=
HZ
/
3
;
unsigned
rxrpc_call_dfr_ack_timeout
=
HZ
/
20
;
unsigned
short
rxrpc_call_max_resend
=
HZ
/
10
;
const
char
*
rxrpc_call_states
[]
=
{
"COMPLETE"
,
...
...
@@ -129,6 +129,22 @@ static void __rxrpc_call_ackr_timeout(unsigned long _call)
rxrpc_krxiod_queue_call
(
call
);
}
/*****************************************************************************/
/*
* calculate a timeout based on an RTT value
*/
static
inline
unsigned
long
__rxrpc_rtt_based_timeout
(
struct
rxrpc_call
*
call
,
unsigned
long
val
)
{
unsigned
long
expiry
=
call
->
conn
->
peer
->
rtt
/
(
1000000
/
HZ
);
expiry
+=
10
;
if
(
expiry
<
HZ
/
25
)
expiry
=
HZ
/
25
;
if
(
expiry
>
HZ
)
expiry
=
HZ
;
_leave
(
" = %lu jiffies"
,
expiry
);
return
jiffies
+
expiry
;
}
/* end __rxrpc_rtt_based_timeout() */
/*****************************************************************************/
/*
* create a new call record
...
...
@@ -321,7 +337,10 @@ int rxrpc_incoming_call(struct rxrpc_connection *conn,
spin_lock
(
&
conn
->
lock
);
if
(
!
conn
->
channels
[
cix
])
{
if
(
!
conn
->
channels
[
cix
]
||
conn
->
channels
[
cix
]
->
app_call_state
==
RXRPC_CSTATE_COMPLETE
||
conn
->
channels
[
cix
]
->
app_call_state
==
RXRPC_CSTATE_ERROR
)
{
conn
->
channels
[
cix
]
=
call
;
rxrpc_get_connection
(
conn
);
ret
=
0
;
...
...
@@ -329,9 +348,10 @@ int rxrpc_incoming_call(struct rxrpc_connection *conn,
spin_unlock
(
&
conn
->
lock
);
if
(
ret
<
0
)
free_page
((
unsigned
long
)
call
);
_leave
(
" = %p"
,
call
);
if
(
ret
<
0
)
{
free_page
((
unsigned
long
)
call
);
call
=
NULL
;
}
if
(
ret
==
0
)
{
down_write
(
&
rxrpc_calls_sem
);
...
...
@@ -341,6 +361,7 @@ int rxrpc_incoming_call(struct rxrpc_connection *conn,
*
_call
=
call
;
}
_leave
(
" = %d [%p]"
,
ret
,
call
);
return
ret
;
}
/* end rxrpc_incoming_call() */
...
...
@@ -367,7 +388,8 @@ void rxrpc_put_call(struct rxrpc_call *call)
return
;
}
conn
->
channels
[
ntohl
(
call
->
chan_ix
)]
=
NULL
;
if
(
conn
->
channels
[
ntohl
(
call
->
chan_ix
)]
==
call
)
conn
->
channels
[
ntohl
(
call
->
chan_ix
)]
=
NULL
;
spin_unlock
(
&
conn
->
lock
);
...
...
@@ -1005,7 +1027,7 @@ static void rxrpc_call_receive_data_packet(struct rxrpc_call *call, struct rxrpc
}
/* next in sequence - simply append into the call's ready queue */
_debug
(
"Call add packet %d to readyq (+%
d => %
d bytes)"
,
_debug
(
"Call add packet %d to readyq (+%
Zd => %Z
d bytes)"
,
msg
->
seq
,
msg
->
dsize
,
call
->
app_ready_qty
);
spin_lock
(
&
call
->
lock
);
...
...
@@ -1021,7 +1043,7 @@ static void rxrpc_call_receive_data_packet(struct rxrpc_call *call, struct rxrpc
break
;
/* next in sequence - just move list-to-list */
_debug
(
"Call transfer packet %d to readyq (+%
d => %
d bytes)"
,
_debug
(
"Call transfer packet %d to readyq (+%
Zd => %Z
d bytes)"
,
pmsg
->
seq
,
pmsg
->
dsize
,
call
->
app_ready_qty
);
call
->
app_ready_seq
=
pmsg
->
seq
;
...
...
@@ -1156,7 +1178,7 @@ static void rxrpc_call_receive_data_packet(struct rxrpc_call *call, struct rxrpc
/* otherwise just invoke the data function whenever we can satisfy its desire for more
* data
*/
_proto
(
"Rx Received Op Data: st=%u qty=%
u mk=%
u%s"
,
_proto
(
"Rx Received Op Data: st=%u qty=%
Zu mk=%Z
u%s"
,
call
->
app_call_state
,
call
->
app_ready_qty
,
call
->
app_mark
,
call
->
app_last_rcv
?
" last-rcvd"
:
""
);
...
...
@@ -1394,7 +1416,7 @@ static int rxrpc_call_record_ACK(struct rxrpc_call *call,
char
resend
,
now_complete
;
u8
acks
[
16
];
_enter
(
"%p{apc=%u ads=%u},%p,%u,%u"
,
_enter
(
"%p{apc=%u ads=%u},%p,%u,%
Z
u"
,
call
,
call
->
acks_pend_cnt
,
call
->
acks_dftv_seq
,
msg
,
seq
,
count
);
/* handle re-ACK'ing of definitively ACK'd packets (may be out-of-order ACKs) */
...
...
@@ -1443,7 +1465,7 @@ static int rxrpc_call_record_ACK(struct rxrpc_call *call,
}
_proto
(
"Rx ACK of packets #%u-#%u [%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c] (pend=%u)"
,
seq
,
seq
+
chunk
-
1
,
seq
,
(
unsigned
)(
seq
+
chunk
-
1
)
,
_acktype
[
acks
[
0x0
]],
_acktype
[
acks
[
0x1
]],
_acktype
[
acks
[
0x2
]],
...
...
@@ -1552,7 +1574,7 @@ static int __rxrpc_call_read_data(struct rxrpc_call *call)
size_t
qty
;
int
ret
;
_enter
(
"%p{as=%d buf=%p qty=%
u/%
u}"
,
_enter
(
"%p{as=%d buf=%p qty=%
Zu/%Z
u}"
,
call
,
call
->
app_async_read
,
call
->
app_read_buf
,
call
->
app_ready_qty
,
call
->
app_mark
);
/* check the state */
...
...
@@ -1560,7 +1582,7 @@ static int __rxrpc_call_read_data(struct rxrpc_call *call)
case
RXRPC_CSTATE_SRVR_RCV_ARGS
:
case
RXRPC_CSTATE_CLNT_RCV_REPLY
:
if
(
call
->
app_last_rcv
)
{
printk
(
"%s(%p,%p,%d): Inconsistent call state (%s, last pkt)"
,
printk
(
"%s(%p,%p,%
Z
d): Inconsistent call state (%s, last pkt)"
,
__FUNCTION__
,
call
,
call
->
app_read_buf
,
call
->
app_mark
,
rxrpc_call_states
[
call
->
app_call_state
]);
BUG
();
...
...
@@ -1574,7 +1596,7 @@ static int __rxrpc_call_read_data(struct rxrpc_call *call)
case
RXRPC_CSTATE_SRVR_SND_REPLY
:
if
(
!
call
->
app_last_rcv
)
{
printk
(
"%s(%p,%p,%d): Inconsistent call state (%s, not last pkt)"
,
printk
(
"%s(%p,%p,%
Z
d): Inconsistent call state (%s, not last pkt)"
,
__FUNCTION__
,
call
,
call
->
app_read_buf
,
call
->
app_mark
,
rxrpc_call_states
[
call
->
app_call_state
]);
BUG
();
...
...
@@ -1616,11 +1638,11 @@ static int __rxrpc_call_read_data(struct rxrpc_call *call)
/* drag as much data as we need out of this packet */
qty
=
min
(
call
->
app_mark
,
msg
->
dsize
);
_debug
(
"reading %u from skb=%p off=%lu"
,
qty
,
msg
->
pkt
,
msg
->
offset
);
_debug
(
"reading %
Z
u from skb=%p off=%lu"
,
qty
,
msg
->
pkt
,
msg
->
offset
);
if
(
call
->
app_read_buf
)
if
(
skb_copy_bits
(
msg
->
pkt
,
msg
->
offset
,
call
->
app_read_buf
,
qty
)
<
0
)
panic
(
"%s: Failed to copy data from packet: (%p,%p,%d)"
,
panic
(
"%s: Failed to copy data from packet: (%p,%p,%
Z
d)"
,
__FUNCTION__
,
call
,
call
->
app_read_buf
,
qty
);
/* if that packet is now empty, discard it */
...
...
@@ -1673,7 +1695,7 @@ static int __rxrpc_call_read_data(struct rxrpc_call *call)
}
if
(
call
->
app_last_rcv
)
{
_debug
(
"Insufficient data (%
u/%
u)"
,
call
->
app_ready_qty
,
call
->
app_mark
);
_debug
(
"Insufficient data (%
Zu/%Z
u)"
,
call
->
app_ready_qty
,
call
->
app_mark
);
call
->
app_async_read
=
0
;
call
->
app_mark
=
RXRPC_APP_MARK_EOF
;
call
->
app_read_buf
=
NULL
;
...
...
@@ -1703,7 +1725,7 @@ int rxrpc_call_read_data(struct rxrpc_call *call, void *buffer, size_t size, int
{
int
ret
;
_enter
(
"%p{arq=%
u},%p,%
d,%x"
,
call
,
call
->
app_ready_qty
,
buffer
,
size
,
flags
);
_enter
(
"%p{arq=%
Zu},%p,%Z
d,%x"
,
call
,
call
->
app_ready_qty
,
buffer
,
size
,
flags
);
spin_lock
(
&
call
->
lock
);
...
...
@@ -1799,7 +1821,7 @@ int rxrpc_call_write_data(struct rxrpc_call *call,
char
*
buf
;
int
ret
;
_enter
(
"%p,%u,%p,%02x,%x,%d,%p"
,
call
,
sioc
,
siov
,
rxhdr_flags
,
alloc_flags
,
dup_data
,
size_sent
);
_enter
(
"%p,%
Z
u,%p,%02x,%x,%d,%p"
,
call
,
sioc
,
siov
,
rxhdr_flags
,
alloc_flags
,
dup_data
,
size_sent
);
*
size_sent
=
0
;
size
=
0
;
...
...
@@ -1827,7 +1849,7 @@ int rxrpc_call_write_data(struct rxrpc_call *call,
size
+=
sptr
->
iov_len
;
}
_debug
(
"- size=%
u mtu=%
u"
,
size
,
call
->
conn
->
mtu_size
);
_debug
(
"- size=%
Zu mtu=%Z
u"
,
size
,
call
->
conn
->
mtu_size
);
do
{
/* make sure there's a message under construction */
...
...
@@ -1837,7 +1859,7 @@ int rxrpc_call_write_data(struct rxrpc_call *call,
0
,
NULL
,
alloc_flags
,
&
call
->
snd_nextmsg
);
if
(
ret
<
0
)
goto
out
;
_debug
(
"- allocated new message [ds=%u]"
,
call
->
snd_nextmsg
->
dsize
);
_debug
(
"- allocated new message [ds=%
Z
u]"
,
call
->
snd_nextmsg
->
dsize
);
}
msg
=
call
->
snd_nextmsg
;
...
...
@@ -1857,7 +1879,7 @@ int rxrpc_call_write_data(struct rxrpc_call *call,
space
=
call
->
conn
->
mtu_size
-
msg
->
dsize
;
chunk
=
min
(
space
,
size
);
_debug
(
"- [before] space=%
u chunk=%
u"
,
space
,
chunk
);
_debug
(
"- [before] space=%
Zu chunk=%Z
u"
,
space
,
chunk
);
while
(
!
siov
->
iov_len
)
siov
++
;
...
...
@@ -1916,7 +1938,7 @@ int rxrpc_call_write_data(struct rxrpc_call *call,
}
}
_debug
(
"- [loaded] chunk=%
u size=%
u"
,
chunk
,
size
);
_debug
(
"- [loaded] chunk=%
Zu size=%Z
u"
,
chunk
,
size
);
/* dispatch the message when full, final or requesting ACK */
if
(
msg
->
dsize
>=
call
->
conn
->
mtu_size
||
rxhdr_flags
)
{
...
...
@@ -1929,7 +1951,7 @@ int rxrpc_call_write_data(struct rxrpc_call *call,
ret
=
0
;
out:
_leave
(
" = %d (%
d queued, %
d rem)"
,
ret
,
*
size_sent
,
size
);
_leave
(
" = %d (%
Zd queued, %Z
d rem)"
,
ret
,
*
size_sent
,
size
);
return
ret
;
}
/* end rxrpc_call_write_data() */
...
...
@@ -1960,7 +1982,7 @@ int rxrpc_call_flush(struct rxrpc_call *call)
msg
->
hdr
.
flags
|=
RXRPC_MORE_PACKETS
;
}
_proto
(
"Sending DATA message { ds=%u dc=%u df=%02lu }"
,
_proto
(
"Sending DATA message { ds=%
Z
u dc=%u df=%02lu }"
,
msg
->
dsize
,
msg
->
dcount
,
msg
->
dfree
);
/* queue and adjust call state */
...
...
@@ -1993,7 +2015,8 @@ int rxrpc_call_flush(struct rxrpc_call *call)
call
->
acks_pend_cnt
++
;
mod_timer
(
&
call
->
acks_timeout
,
jiffies
+
rxrpc_call_acks_timeout
);
mod_timer
(
&
call
->
acks_timeout
,
__rxrpc_rtt_based_timeout
(
call
,
rxrpc_call_acks_timeout
));
spin_unlock
(
&
call
->
lock
);
...
...
@@ -2061,7 +2084,7 @@ static void rxrpc_call_resend(struct rxrpc_call *call, rxrpc_seq_t highest)
spin_unlock
(
&
call
->
lock
);
/* send each message again (and ignore any errors we might incur) */
_proto
(
"Resending DATA message { ds=%u dc=%u df=%02lu }"
,
_proto
(
"Resending DATA message { ds=%
Z
u dc=%u df=%02lu }"
,
msg
->
dsize
,
msg
->
dcount
,
msg
->
dfree
);
if
(
rxrpc_conn_sendmsg
(
call
->
conn
,
msg
)
==
0
)
...
...
@@ -2073,7 +2096,7 @@ static void rxrpc_call_resend(struct rxrpc_call *call, rxrpc_seq_t highest)
}
/* reset the timeout */
mod_timer
(
&
call
->
acks_timeout
,
jiffies
+
rxrpc_call_acks_timeout
);
mod_timer
(
&
call
->
acks_timeout
,
__rxrpc_rtt_based_timeout
(
call
,
rxrpc_call_acks_timeout
)
);
spin_unlock
(
&
call
->
lock
);
...
...
net/rxrpc/connection.c
View file @
a8e3a152
...
...
@@ -121,7 +121,7 @@ int rxrpc_create_connection(struct rxrpc_transport *trans,
conn
->
out_epoch
=
rxrpc_epoch
;
conn
->
in_clientflag
=
0
;
conn
->
out_clientflag
=
RXRPC_CLIENT_INITIATED
;
conn
->
conn_id
=
htonl
((
unsigned
)
conn
&
RXRPC_CIDMASK
);
conn
->
conn_id
=
htonl
((
unsigned
long
)
conn
&
RXRPC_CIDMASK
);
conn
->
service_id
=
htons
(
service_id
);
/* attach to peer */
...
...
@@ -547,7 +547,7 @@ int rxrpc_conn_sendmsg(struct rxrpc_connection *conn, struct rxrpc_message *msg)
msghdr
.
msg_controllen
=
0
;
msghdr
.
msg_flags
=
MSG_CONFIRM
|
MSG_DONTWAIT
;
_net
(
"Sending message type %d of %d bytes to %08x:%d"
,
_net
(
"Sending message type %d of %
Z
d bytes to %08x:%d"
,
msg
->
hdr
.
type
,
msg
->
dsize
,
htonl
(
conn
->
addr
.
sin_addr
.
s_addr
),
...
...
net/rxrpc/internal.h
View file @
a8e3a152
...
...
@@ -29,24 +29,24 @@ __RXACCT_DECL(extern atomic_t rxrpc_message_count);
/*
* debug tracing
*/
#define kenter(FMT,
...) printk("==> %s("FMT")\n",__FUNCTION__,##__VA_ARGS__
)
#define kleave(FMT,
...) printk("<== %s()"FMT"\n",__FUNCTION__,##__VA_ARGS__
)
#define kdebug(FMT,
...) printk(" "FMT"\n",##__VA_ARGS__
)
#define kproto(FMT,
...) printk("### "FMT"\n",##__VA_ARGS__
)
#define knet(FMT,
...) printk(" "FMT"\n",##__VA_ARGS__
)
#define kenter(FMT,
a...) printk("==> %s("FMT")\n",__FUNCTION__ , ##a
)
#define kleave(FMT,
a...) printk("<== %s()"FMT"\n",__FUNCTION__ , ##a
)
#define kdebug(FMT,
a...) printk(" "FMT"\n" , ##a
)
#define kproto(FMT,
a...) printk("### "FMT"\n" , ##a
)
#define knet(FMT,
a...) printk(" "FMT"\n" , ##a
)
#if 0
#define _enter(FMT,
...) kenter(FMT,##__VA_ARGS__
)
#define _leave(FMT,
...) kleave(FMT,##__VA_ARGS__
)
#define _debug(FMT,
...) kdebug(FMT,##__VA_ARGS__
)
#define _proto(FMT,
...) kproto(FMT,##__VA_ARGS__
)
#define _net(FMT,
...) knet(FMT,##__VA_ARGS__
)
#define _enter(FMT,
a...) kenter(FMT , ##a
)
#define _leave(FMT,
a...) kleave(FMT , ##a
)
#define _debug(FMT,
a...) kdebug(FMT , ##a
)
#define _proto(FMT,
a...) kproto(FMT , ##a
)
#define _net(FMT,
a...) knet(FMT , ##a
)
#else
#define _enter(FMT,
...) do { if (rxrpc_ktrace) kenter(FMT,##__VA_ARGS__
); } while(0)
#define _leave(FMT,
...) do { if (rxrpc_ktrace) kleave(FMT,##__VA_ARGS__
); } while(0)
#define _debug(FMT,
...) do { if (rxrpc_kdebug) kdebug(FMT,##__VA_ARGS__
); } while(0)
#define _proto(FMT,
...) do { if (rxrpc_kproto) kproto(FMT,##__VA_ARGS__
); } while(0)
#define _net(FMT,
...) do { if (rxrpc_knet) knet (FMT,##__VA_ARGS__
); } while(0)
#define _enter(FMT,
a...) do { if (rxrpc_ktrace) kenter(FMT , ##a
); } while(0)
#define _leave(FMT,
a...) do { if (rxrpc_ktrace) kleave(FMT , ##a
); } while(0)
#define _debug(FMT,
a...) do { if (rxrpc_kdebug) kdebug(FMT , ##a
); } while(0)
#define _proto(FMT,
a...) do { if (rxrpc_kproto) kproto(FMT , ##a
); } while(0)
#define _net(FMT,
a...) do { if (rxrpc_knet) knet (FMT , ##a
); } while(0)
#endif
static
inline
void
rxrpc_discard_my_signals
(
void
)
...
...
net/rxrpc/krxiod.c
View file @
a8e3a152
...
...
@@ -49,11 +49,7 @@ static int rxrpc_krxiod(void *arg)
/* only certain signals are of interest */
spin_lock_irq
(
&
current
->
sig
->
siglock
);
siginitsetinv
(
&
current
->
blocked
,
0
);
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,3)
recalc_sigpending
();
#else
recalc_sigpending
(
current
);
#endif
spin_unlock_irq
(
&
current
->
sig
->
siglock
);
/* loop around waiting for work to do */
...
...
net/rxrpc/krxsecd.c
View file @
a8e3a152
...
...
@@ -61,11 +61,7 @@ static int rxrpc_krxsecd(void *arg)
/* only certain signals are of interest */
spin_lock_irq
(
&
current
->
sig
->
siglock
);
siginitsetinv
(
&
current
->
blocked
,
0
);
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,3)
recalc_sigpending
();
#else
recalc_sigpending
(
current
);
#endif
spin_unlock_irq
(
&
current
->
sig
->
siglock
);
/* loop around waiting for work to do */
...
...
net/rxrpc/krxtimod.c
View file @
a8e3a152
...
...
@@ -79,11 +79,7 @@ static int krxtimod(void *arg)
/* only certain signals are of interest */
spin_lock_irq
(
&
current
->
sig
->
siglock
);
siginitsetinv
(
&
current
->
blocked
,
0
);
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,3)
recalc_sigpending
();
#else
recalc_sigpending
(
current
);
#endif
spin_unlock_irq
(
&
current
->
sig
->
siglock
);
/* loop around looking for things to attend to */
...
...
net/rxrpc/peer.c
View file @
a8e3a152
...
...
@@ -370,11 +370,13 @@ void rxrpc_peer_calculate_rtt(struct rxrpc_peer *peer,
if
(
peer
->
rtt_usage
<
RXRPC_RTT_CACHE_SIZE
)
peer
->
rtt_usage
++
;
/* recalculate RTT */
rtt
=
0
;
for
(
loop
=
peer
->
rtt_usage
-
1
;
loop
>=
0
;
loop
--
)
rtt
+=
peer
->
rtt_cache
[
loop
];
peer
->
rtt
=
do_div
(
rtt
,
peer
->
rtt_usage
);
do_div
(
rtt
,
peer
->
rtt_usage
);
peer
->
rtt
=
rtt
;
_leave
(
" RTT=%lu.%lums"
,
peer
->
rtt
/
1000
,
peer
->
rtt
%
1000
);
_leave
(
" RTT=%lu.%lums"
,
(
long
)(
peer
->
rtt
/
1000
),(
long
)(
peer
->
rtt
%
1000
)
);
}
/* end rxrpc_peer_calculate_rtt() */
net/rxrpc/proc.c
View file @
a8e3a152
...
...
@@ -22,13 +22,6 @@
#include <rxrpc/message.h>
#include "internal.h"
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0))
static
inline
struct
proc_dir_entry
*
PDE
(
const
struct
inode
*
inode
)
{
return
(
struct
proc_dir_entry
*
)
inode
->
u
.
generic_ip
;
}
#endif
static
struct
proc_dir_entry
*
proc_rxrpc
;
static
int
rxrpc_proc_transports_open
(
struct
inode
*
inode
,
struct
file
*
file
);
...
...
@@ -379,14 +372,14 @@ static int rxrpc_proc_peers_show(struct seq_file *m, void *v)
if
(
!
list_empty
(
&
peer
->
timeout
.
link
))
timeout
=
(
signed
long
)
peer
->
timeout
.
timo_jif
-
(
signed
long
)
jiffies
;
seq_printf
(
m
,
"%5hu %08x %5d %5d %8ld %5u %7lu
\n
"
,
seq_printf
(
m
,
"%5hu %08x %5d %5d %8ld %5
Z
u %7lu
\n
"
,
peer
->
trans
->
port
,
ntohl
(
peer
->
addr
.
s_addr
),
atomic_read
(
&
peer
->
usage
),
atomic_read
(
&
peer
->
conn_count
),
timeout
,
peer
->
if_mtu
,
peer
->
rtt
(
long
)
peer
->
rtt
);
return
0
;
...
...
@@ -484,7 +477,7 @@ static int rxrpc_proc_conns_show(struct seq_file *m, void *v)
if
(
!
list_empty
(
&
conn
->
timeout
.
link
))
timeout
=
(
signed
long
)
conn
->
timeout
.
timo_jif
-
(
signed
long
)
jiffies
;
seq_printf
(
m
,
"%5hu %08x %5hu %04hx %08x %-3.3s %08x %08x %5u %8ld
\n
"
,
seq_printf
(
m
,
"%5hu %08x %5hu %04hx %08x %-3.3s %08x %08x %5
Z
u %8ld
\n
"
,
conn
->
trans
->
port
,
ntohl
(
conn
->
addr
.
sin_addr
.
s_addr
),
ntohs
(
conn
->
addr
.
sin_port
),
...
...
net/rxrpc/transport.c
View file @
a8e3a152
...
...
@@ -691,12 +691,12 @@ static void rxrpc_trans_receive_error_report(struct rxrpc_transport *trans)
msg
.
msg_controllen
=
(
char
*
)
msg
.
msg_control
-
(
char
*
)
&
emsg
;
if
(
msg
.
msg_controllen
<
sizeof
(
emsg
.
cmsg
)
||
msg
.
msg_namelen
<
sizeof
(
sin
))
{
printk
(
"%s: short control message (nlen=%u clen=%u fl=%x)
\n
"
,
printk
(
"%s: short control message (nlen=%u clen=%
Z
u fl=%x)
\n
"
,
__FUNCTION__
,
msg
.
msg_namelen
,
msg
.
msg_controllen
,
msg
.
msg_flags
);
continue
;
}
_net
(
"Rx Received control message { len=%u level=%u type=%u }"
,
_net
(
"Rx Received control message { len=%
Z
u level=%u type=%u }"
,
emsg
.
cmsg
.
cmsg_len
,
emsg
.
cmsg
.
cmsg_level
,
emsg
.
cmsg
.
cmsg_type
);
if
(
sin
.
sin_family
!=
AF_INET
)
{
...
...
@@ -715,7 +715,7 @@ static void rxrpc_trans_receive_error_report(struct rxrpc_transport *trans)
}
if
(
msg
.
msg_controllen
<
sizeof
(
emsg
.
cmsg
)
+
sizeof
(
emsg
.
ee
))
{
printk
(
"%s: short error message (%u)
\n
"
,
__FUNCTION__
,
msg
.
msg_controllen
);
printk
(
"%s: short error message (%
Z
u)
\n
"
,
__FUNCTION__
,
msg
.
msg_controllen
);
_leave
(
""
);
return
;
}
...
...
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