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
ca1ba071
Commit
ca1ba071
authored
Aug 23, 2003
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Plain Diff
Merge samba.org:/scratch/anton/linux-2.5
into samba.org:/scratch/anton/tmp3
parents
be76fe34
bf4a3963
Changes
55
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
55 changed files
with
641 additions
and
375 deletions
+641
-375
Documentation/filesystems/Locking
Documentation/filesystems/Locking
+93
-57
Documentation/nmi_watchdog.txt
Documentation/nmi_watchdog.txt
+1
-1
MAINTAINERS
MAINTAINERS
+2
-4
arch/alpha/kernel/sys_marvel.c
arch/alpha/kernel/sys_marvel.c
+0
-7
arch/i386/Kconfig
arch/i386/Kconfig
+0
-4
arch/i386/defconfig
arch/i386/defconfig
+0
-1
arch/i386/kernel/acpi/boot.c
arch/i386/kernel/acpi/boot.c
+1
-0
arch/i386/kernel/dmi_scan.c
arch/i386/kernel/dmi_scan.c
+4
-24
arch/i386/kernel/setup.c
arch/i386/kernel/setup.c
+1
-0
arch/i386/lib/usercopy.c
arch/i386/lib/usercopy.c
+97
-77
arch/x86_64/kernel/pci-gart.c
arch/x86_64/kernel/pci-gart.c
+0
-6
drivers/base/power/resume.c
drivers/base/power/resume.c
+1
-1
drivers/base/power/suspend.c
drivers/base/power/suspend.c
+1
-1
drivers/media/video/Kconfig
drivers/media/video/Kconfig
+0
-10
drivers/net/seeq8005.c
drivers/net/seeq8005.c
+1
-1
drivers/net/wan/Kconfig
drivers/net/wan/Kconfig
+25
-3
drivers/net/wan/dscc4.c
drivers/net/wan/dscc4.c
+191
-38
drivers/pci/hotplug/cpqphp_core.c
drivers/pci/hotplug/cpqphp_core.c
+0
-1
drivers/pci/hotplug/cpqphp_nvram.c
drivers/pci/hotplug/cpqphp_nvram.c
+0
-1
drivers/pci/names.c
drivers/pci/names.c
+3
-3
drivers/pci/pci-driver.c
drivers/pci/pci-driver.c
+2
-4
drivers/pci/setup-bus.c
drivers/pci/setup-bus.c
+0
-5
drivers/scsi/NCR5380.c
drivers/scsi/NCR5380.c
+0
-2
drivers/scsi/NCR5380.h
drivers/scsi/NCR5380.h
+1
-3
drivers/scsi/aacraid/aacraid.h
drivers/scsi/aacraid/aacraid.h
+1
-1
drivers/scsi/aha1740.c
drivers/scsi/aha1740.c
+3
-4
drivers/scsi/atari_NCR5380.c
drivers/scsi/atari_NCR5380.c
+0
-2
drivers/scsi/g_NCR5380.c
drivers/scsi/g_NCR5380.c
+1
-1
drivers/scsi/mac_NCR5380.c
drivers/scsi/mac_NCR5380.c
+0
-2
drivers/scsi/sun3_NCR5380.c
drivers/scsi/sun3_NCR5380.c
+1
-1
drivers/scsi/ultrastor.c
drivers/scsi/ultrastor.c
+1
-1
drivers/usb/media/se401.c
drivers/usb/media/se401.c
+3
-0
drivers/usb/media/stv680.c
drivers/usb/media/stv680.c
+3
-0
drivers/usb/media/usbvideo.c
drivers/usb/media/usbvideo.c
+2
-0
drivers/usb/serial/console.c
drivers/usb/serial/console.c
+1
-1
drivers/video/tridentfb.c
drivers/video/tridentfb.c
+3
-2
fs/block_dev.c
fs/block_dev.c
+43
-5
fs/cramfs/inode.c
fs/cramfs/inode.c
+2
-1
fs/ext3/balloc.c
fs/ext3/balloc.c
+71
-79
fs/ext3/namei.c
fs/ext3/namei.c
+5
-4
fs/proc/array.c
fs/proc/array.c
+1
-1
include/asm-i386/mach-bigsmp/mach_apic.h
include/asm-i386/mach-bigsmp/mach_apic.h
+2
-0
include/asm-i386/mach-es7000/mach_apic.h
include/asm-i386/mach-es7000/mach_apic.h
+2
-0
include/asm-i386/mach-numaq/mach_apic.h
include/asm-i386/mach-numaq/mach_apic.h
+2
-0
include/asm-i386/mach-summit/mach_apic.h
include/asm-i386/mach-summit/mach_apic.h
+2
-0
include/asm-i386/mach-visws/mach_apic.h
include/asm-i386/mach-visws/mach_apic.h
+2
-0
include/linux/pci.h
include/linux/pci.h
+36
-1
include/linux/sched.h
include/linux/sched.h
+3
-1
init/Kconfig
init/Kconfig
+1
-1
init/do_mounts.c
init/do_mounts.c
+0
-2
init/do_mounts.h
init/do_mounts.h
+0
-10
kernel/fork.c
kernel/fork.c
+17
-0
mm/filemap.c
mm/filemap.c
+3
-0
mm/vmscan.c
mm/vmscan.c
+5
-1
sound/isa/opl3sa2.c
sound/isa/opl3sa2.c
+1
-0
No files found.
Documentation/filesystems/Locking
View file @
ca1ba071
...
@@ -28,8 +28,9 @@ d_iput: no no no yes
...
@@ -28,8 +28,9 @@ d_iput: no no no yes
--------------------------- inode_operations ---------------------------
--------------------------- inode_operations ---------------------------
prototypes:
prototypes:
int (*create) (struct inode *,struct dentry *,int);
int (*create) (struct inode *,struct dentry *,int, struct nameidata *);
struct dentry * (*lookup) (struct inode *,struct dentry *);
struct dentry * (*lookup) (struct inode *,struct dentry *, struct nameid
ata *);
int (*link) (struct dentry *,struct inode *,struct dentry *);
int (*link) (struct dentry *,struct inode *,struct dentry *);
int (*unlink) (struct inode *,struct dentry *);
int (*unlink) (struct inode *,struct dentry *);
int (*symlink) (struct inode *,struct dentry *,const char *);
int (*symlink) (struct inode *,struct dentry *,const char *);
...
@@ -38,13 +39,13 @@ prototypes:
...
@@ -38,13 +39,13 @@ prototypes:
int (*mknod) (struct inode *,struct dentry *,int,dev_t);
int (*mknod) (struct inode *,struct dentry *,int,dev_t);
int (*rename) (struct inode *, struct dentry *,
int (*rename) (struct inode *, struct dentry *,
struct inode *, struct dentry *);
struct inode *, struct dentry *);
int (*readlink) (struct dentry *, char *,int);
int (*readlink) (struct dentry *, char
__user
*,int);
int (*follow_link) (struct dentry *, struct nameidata *);
int (*follow_link) (struct dentry *, struct nameidata *);
void (*truncate) (struct inode *);
void (*truncate) (struct inode *);
int (*permission) (struct inode *, int);
int (*permission) (struct inode *, int
, struct nameidata *
);
int (*setattr) (struct dentry *, struct iattr *);
int (*setattr) (struct dentry *, struct iattr *);
int (*getattr) (struct vfsmount *, struct dentry *, struct kstat *);
int (*getattr) (struct vfsmount *, struct dentry *, struct kstat *);
int (*setxattr) (struct dentry *, const char *,
void *, size_t,
int);
int (*setxattr) (struct dentry *, const char *,
const void *,size_t,
int);
ssize_t (*getxattr) (struct dentry *, const char *, void *, size_t);
ssize_t (*getxattr) (struct dentry *, const char *, void *, size_t);
ssize_t (*listxattr) (struct dentry *, char *, size_t);
ssize_t (*listxattr) (struct dentry *, char *, size_t);
int (*removexattr) (struct dentry *, const char *);
int (*removexattr) (struct dentry *, const char *);
...
@@ -85,42 +86,55 @@ of the locking scheme for directory operations.
...
@@ -85,42 +86,55 @@ of the locking scheme for directory operations.
--------------------------- super_operations ---------------------------
--------------------------- super_operations ---------------------------
prototypes:
prototypes:
struct inode *(*alloc_inode)(struct super_block *sb);
void (*destroy_inode)(struct inode *);
void (*read_inode) (struct inode *);
void (*read_inode) (struct inode *);
void (*dirty_inode) (struct inode *);
void (*write_inode) (struct inode *, int);
void (*write_inode) (struct inode *, int);
void (*put_inode) (struct inode *);
void (*put_inode) (struct inode *);
void (*drop_inode) (struct inode *);
void (*drop_inode) (struct inode *);
void (*delete_inode) (struct inode *);
void (*delete_inode) (struct inode *);
void (*put_super) (struct super_block *);
void (*put_super) (struct super_block *);
void (*write_super) (struct super_block *);
void (*write_super) (struct super_block *);
int (*sync_fs) (struct super_block *sb, int wait);
int (*sync_fs)(struct super_block *sb, int wait);
int (*statfs) (struct super_block *, struct statfs *);
void (*write_super_lockfs) (struct super_block *);
void (*unlockfs) (struct super_block *);
int (*statfs) (struct super_block *, struct kstatfs *);
int (*remount_fs) (struct super_block *, int *, char *);
int (*remount_fs) (struct super_block *, int *, char *);
void (*clear_inode) (struct inode *);
void (*clear_inode) (struct inode *);
void (*umount_begin) (struct super_block *);
void (*umount_begin) (struct super_block *);
int (*show_options)(struct seq_file *, struct vfsmount *);
locking rules:
locking rules:
All may block.
All may block.
BKL s_lock mount_sem
BKL s_lock s_umount
read_inode: yes (see below)
alloc_inode: no no no
write_inode: no
destroy_inode: no
put_inode: no
read_inode: no (see below)
drop_inode: no !!!inode_lock!!!
dirty_inode: no (must not sleep)
delete_inode: no
write_inode: no
clear_inode: no
put_inode: no
put_super: yes yes maybe (see below)
drop_inode: no !!!inode_lock!!!
write_super: no yes maybe (see below)
delete_inode: no
sync_fs: no no maybe (see below)
put_super: yes yes no
statfs: no no no
write_super: no yes read
remount_fs: yes yes maybe (see below)
sync_fs: no no read
umount_begin: yes no maybe (see below)
write_super_lockfs: ?
unlockfs: ?
statfs: no no no
remount_fs: no yes maybe (see below)
clear_inode: no
umount_begin: yes no no
show_options: no (vfsmount->sem)
->read_inode() is not a method - it's a callback used in iget().
->read_inode() is not a method - it's a callback used in iget().
rules for mount_sem are not too nice - it is going to die and be replaced
->remount_fs() will have the s_umount lock if it's already mounted.
by better scheme anyway
.
When called from get_sb_single, it does NOT have the s_umount lock
.
--------------------------- file_system_type ---------------------------
--------------------------- file_system_type ---------------------------
prototypes:
prototypes:
struct super_block *(*get_sb) (struct file_system_type *, int, const char *, void *);
struct super_block *(*get_sb) (struct file_system_type *, int,
const char *, void *);
void (*kill_sb) (struct super_block *);
void (*kill_sb) (struct super_block *);
locking rules:
locking rules:
may block BKL
may block BKL
...
@@ -128,7 +142,7 @@ get_sb yes yes
...
@@ -128,7 +142,7 @@ get_sb yes yes
kill_sb yes yes
kill_sb yes yes
->get_sb() returns error or a locked superblock (exclusive on ->s_umount).
->get_sb() returns error or a locked superblock (exclusive on ->s_umount).
->kill_sb() takes a locked superblock, does all shutdown work on it,
->kill_sb() takes a
write-
locked superblock, does all shutdown work on it,
unlocks and drops the reference.
unlocks and drops the reference.
--------------------------- address_space_operations --------------------------
--------------------------- address_space_operations --------------------------
...
@@ -138,12 +152,15 @@ prototypes:
...
@@ -138,12 +152,15 @@ prototypes:
int (*sync_page)(struct page *);
int (*sync_page)(struct page *);
int (*writepages)(struct address_space *, struct writeback_control *);
int (*writepages)(struct address_space *, struct writeback_control *);
int (*set_page_dirty)(struct page *page);
int (*set_page_dirty)(struct page *page);
int (*readpages)(struct file *filp, struct address_space *mapping,
struct list_head *pages, unsigned nr_pages);
int (*prepare_write)(struct file *, struct page *, unsigned, unsigned);
int (*prepare_write)(struct file *, struct page *, unsigned, unsigned);
int (*commit_write)(struct file *, struct page *, unsigned, unsigned);
int (*commit_write)(struct file *, struct page *, unsigned, unsigned);
int (*bmap)(struct address_space *, long
);
sector_t (*bmap)(struct address_space *, sector_t
);
int (*invalidatepage) (struct page *, unsigned long);
int (*invalidatepage) (struct page *, unsigned long);
int (*releasepage) (struct page *, int);
int (*releasepage) (struct page *, int);
int (*direct_IO)(int, struct inode *, struct kiobuf *, unsigned long, int);
int (*direct_IO)(int, struct kiocb *, const struct iovec *iov,
loff_t offset, unsigned long nr_segs);
locking rules:
locking rules:
All except set_page_dirty may block
All except set_page_dirty may block
...
@@ -151,15 +168,16 @@ locking rules:
...
@@ -151,15 +168,16 @@ locking rules:
BKL PageLocked(page)
BKL PageLocked(page)
writepage: no yes, unlocks (see below)
writepage: no yes, unlocks (see below)
readpage: no yes, unlocks
readpage: no yes, unlocks
readpages: no
sync_page: no maybe
sync_page: no maybe
writepages: no
writepages: no
set_page_dirty no no
set_page_dirty no no
readpages: no
prepare_write: no yes
prepare_write: no yes
commit_write: no yes
commit_write: no yes
bmap: yes
bmap: yes
invalidatepage: no yes
invalidatepage: no yes
releasepage: no yes
releasepage: no yes
direct_IO: no
->prepare_write(), ->commit_write(), ->sync_page() and ->readpage()
->prepare_write(), ->commit_write(), ->sync_page() and ->readpage()
may be called from the request handler (/dev/loop).
may be called from the request handler (/dev/loop).
...
@@ -253,8 +271,8 @@ prototypes:
...
@@ -253,8 +271,8 @@ prototypes:
locking rules:
locking rules:
BKL may block
BKL may block
fl_notify: yes no
fl_notify: yes no
fl_insert: yes
maybe
fl_insert: yes
no
fl_remove: yes
maybe
fl_remove: yes
no
Currently only NLM provides instances of this class. None of the
Currently only NLM provides instances of this class. None of the
them block. If you have out-of-tree instances - please, show up. Locking
them block. If you have out-of-tree instances - please, show up. Locking
in that area will change.
in that area will change.
...
@@ -274,57 +292,75 @@ prototypes:
...
@@ -274,57 +292,75 @@ prototypes:
int (*open) (struct inode *, struct file *);
int (*open) (struct inode *, struct file *);
int (*release) (struct inode *, struct file *);
int (*release) (struct inode *, struct file *);
int (*ioctl) (struct inode *, struct file *, unsigned, unsigned long);
int (*ioctl) (struct inode *, struct file *, unsigned, unsigned long);
int (*check_media_change) (kdev_t);
int (*media_changed) (struct gendisk *);
int (*revalidate) (kdev_t);
int (*revalidate_disk) (struct gendisk *);
locking rules:
locking rules:
BKL bd_sem
BKL bd_sem
open: yes yes
open: yes yes
release: yes yes
release: yes yes
ioctl: yes no
ioctl: yes no
check_media_change: yes
no
media_changed: no
no
revalidate
: yes
no
revalidate
_disk: no
no
The last two are called only from check_disk_change(). Prototypes are very
The last two are called only from check_disk_change().
bad - as soon as we'll get disk_struct they will change (and methods will
become per-disk instead of per-partition).
--------------------------- file_operations -------------------------------
--------------------------- file_operations -------------------------------
prototypes:
prototypes:
loff_t (*llseek) (struct file *, loff_t, int);
loff_t (*llseek) (struct file *, loff_t, int);
ssize_t (*read) (struct file *, char *, size_t, loff_t *);
ssize_t (*read) (struct file *, char __user *, size_t, loff_t *);
ssize_t (*write) (struct file *, const char *, size_t, loff_t *);
ssize_t (*aio_read) (struct kiocb *, char __user *, size_t, loff_t);
ssize_t (*write) (struct file *, const char __user *, size_t, loff_t *);
ssize_t (*aio_write) (struct kiocb *, const char __user *, size_t,
loff_t);
int (*readdir) (struct file *, void *, filldir_t);
int (*readdir) (struct file *, void *, filldir_t);
unsigned int (*poll) (struct file *, struct poll_table_struct *);
unsigned int (*poll) (struct file *, struct poll_table_struct *);
int (*ioctl) (struct inode *, struct file *, unsigned int, unsigned long);
int (*ioctl) (struct inode *, struct file *, unsigned int,
unsigned long);
int (*mmap) (struct file *, struct vm_area_struct *);
int (*mmap) (struct file *, struct vm_area_struct *);
int (*open) (struct inode *, struct file *);
int (*open) (struct inode *, struct file *);
int (*flush) (struct file *);
int (*flush) (struct file *);
int (*release) (struct inode *, struct file *);
int (*release) (struct inode *, struct file *);
int (*fsync) (struct file *, struct dentry *, int datasync);
int (*fsync) (struct file *, struct dentry *, int datasync);
int (*aio_fsync) (struct kiocb *, int datasync);
int (*fasync) (int, struct file *, int);
int (*fasync) (int, struct file *, int);
int (*lock) (struct file *, int, struct file_lock *);
int (*lock) (struct file *, int, struct file_lock *);
ssize_t (*readv) (struct file *, const struct iovec *, unsigned long, loff_t *);
ssize_t (*readv) (struct file *, const struct iovec *, unsigned long,
ssize_t (*writev) (struct file *, const struct iovec *, unsigned long, loff_t *);
loff_t *);
ssize_t (*writev) (struct file *, const struct iovec *, unsigned long,
loff_t *);
ssize_t (*sendfile) (struct file *, loff_t *, size_t, read_actor_t,
void __user *);
ssize_t (*sendpage) (struct file *, struct page *, int, size_t,
loff_t *, int);
unsigned long (*get_unmapped_area)(struct file *, unsigned long,
unsigned long, unsigned long, unsigned long);
};
};
locking rules:
locking rules:
All except ->poll() may block.
All except ->poll() may block.
BKL
BKL
llseek: yes (see below)
llseek: no (see below)
read: no
read: no
write: no
aio_read: no
readdir: no
write: no
poll: no
aio_write: no
ioctl: yes (see below)
readdir: no
mmap: no
poll: no
open: maybe (see below)
ioctl: yes (see below)
flush: no
mmap: no
release: no
open: maybe (see below)
fsync: yes (see below)
flush: no
fasync: yes (see below)
release: no
lock: yes
fsync: no (see below)
readv: no
aio_fsync: no
writev: no
fasync: yes (see below)
lock: yes
readv: no
writev: no
sendfile: no
sendpage: no
get_unmapped_area: no
->llseek() locking has moved from llseek to the individual llseek
->llseek() locking has moved from llseek to the individual llseek
implementations. If your fs is not using generic_file_llseek, you
implementations. If your fs is not using generic_file_llseek, you
...
...
Documentation/nmi_watchdog.txt
View file @
ca1ba071
...
@@ -12,7 +12,7 @@ This can be used to debug hard kernel lockups. By executing periodic
...
@@ -12,7 +12,7 @@ This can be used to debug hard kernel lockups. By executing periodic
NMI interrupts, the kernel can monitor whether any CPU has locked up,
NMI interrupts, the kernel can monitor whether any CPU has locked up,
and print out debugging messages if so.
and print out debugging messages if so.
In order to use the NMI watchdo
c
, you need to have APIC support in your
In order to use the NMI watchdo
g
, you need to have APIC support in your
kernel. For SMP kernels, APIC support gets compiled in automatically. For
kernel. For SMP kernels, APIC support gets compiled in automatically. For
UP, enable either CONFIG_X86_UP_APIC (Processor type and features -> Local
UP, enable either CONFIG_X86_UP_APIC (Processor type and features -> Local
APIC support on uniprocessors) or CONFIG_X86_UP_IOAPIC (Processor type and
APIC support on uniprocessors) or CONFIG_X86_UP_IOAPIC (Processor type and
...
...
MAINTAINERS
View file @
ca1ba071
...
@@ -437,10 +437,8 @@ M: hpa@zytor.com
...
@@ -437,10 +437,8 @@ M: hpa@zytor.com
S: Maintained
S: Maintained
CRAMFS FILESYSTEM
CRAMFS FILESYSTEM
P: Daniel Quinlan
W: http://sourceforge.net/projects/cramfs/
M: quinlan@transmeta.com
S: Orphan
W: http://sourceforge.net/projects/cramfs/
S: Maintained
CREDITS FILE
CREDITS FILE
P: John A. Martin
P: John A. Martin
...
...
arch/alpha/kernel/sys_marvel.c
View file @
ca1ba071
...
@@ -33,13 +33,6 @@
...
@@ -33,13 +33,6 @@
# error NR_IRQS < MARVEL_NR_IRQS !!!
# error NR_IRQS < MARVEL_NR_IRQS !!!
#endif
#endif
/* ??? Should probably be generic. */
#ifdef CONFIG_PCI_NAMES
#define pci_pretty_name(x) ((x)->pretty_name)
#else
#define pci_pretty_name(x) ""
#endif
/*
/*
* Interrupt handling.
* Interrupt handling.
...
...
arch/i386/Kconfig
View file @
ca1ba071
...
@@ -1204,10 +1204,6 @@ source "drivers/pnp/Kconfig"
...
@@ -1204,10 +1204,6 @@ source "drivers/pnp/Kconfig"
source "drivers/block/Kconfig"
source "drivers/block/Kconfig"
config MOUNT_ROOT_FAILED_MSG
bool
default y
source "drivers/ide/Kconfig"
source "drivers/ide/Kconfig"
source "drivers/scsi/Kconfig"
source "drivers/scsi/Kconfig"
...
...
arch/i386/defconfig
View file @
ca1ba071
...
@@ -228,7 +228,6 @@ CONFIG_BLK_DEV_FD=y
...
@@ -228,7 +228,6 @@ CONFIG_BLK_DEV_FD=y
# CONFIG_BLK_DEV_RAM is not set
# CONFIG_BLK_DEV_RAM is not set
# CONFIG_BLK_DEV_INITRD is not set
# CONFIG_BLK_DEV_INITRD is not set
CONFIG_LBD=y
CONFIG_LBD=y
CONFIG_MOUNT_ROOT_FAILED_MSG=y
#
#
# ATA/ATAPI/MFM/RLL support
# ATA/ATAPI/MFM/RLL support
...
...
arch/i386/kernel/acpi/boot.c
View file @
ca1ba071
...
@@ -34,6 +34,7 @@
...
@@ -34,6 +34,7 @@
#if defined (CONFIG_X86_LOCAL_APIC)
#if defined (CONFIG_X86_LOCAL_APIC)
#include <mach_apic.h>
#include <mach_apic.h>
#include <mach_mpparse.h>
#include <mach_mpparse.h>
#include <asm/io_apic.h>
#endif
#endif
#define PREFIX "ACPI: "
#define PREFIX "ACPI: "
...
...
arch/i386/kernel/dmi_scan.c
View file @
ca1ba071
...
@@ -162,6 +162,8 @@ enum
...
@@ -162,6 +162,8 @@ enum
static
char
*
dmi_ident
[
DMI_STRING_MAX
];
static
char
*
dmi_ident
[
DMI_STRING_MAX
];
#ifdef CONFIG_ACPI_BOOT
/* print some information suitable for a blacklist entry. */
/* print some information suitable for a blacklist entry. */
static
void
dmi_dump_system
(
void
)
static
void
dmi_dump_system
(
void
)
{
{
...
@@ -176,6 +178,8 @@ static void dmi_dump_system(void)
...
@@ -176,6 +178,8 @@ static void dmi_dump_system(void)
dmi_ident
[
DMI_BOARD_VERSION
]);
dmi_ident
[
DMI_BOARD_VERSION
]);
}
}
#endif
/*
/*
* Save a DMI string
* Save a DMI string
*/
*/
...
@@ -1116,27 +1120,3 @@ void __init dmi_scan_machine(void)
...
@@ -1116,27 +1120,3 @@ void __init dmi_scan_machine(void)
}
}
EXPORT_SYMBOL
(
is_unsafe_smbus
);
EXPORT_SYMBOL
(
is_unsafe_smbus
);
#ifdef CONFIG_MOUNT_ROOT_FAILED_MSG
/*
* mount_root_failed_msg()
*
* Called from mount_block_root() upon failure to mount root.
* architecture dependent to give different platforms
* the opportunity to print different handy messages
* On x86 this lives here b/c it dumps out some DMI info.
*/
void
mount_root_failed_msg
(
void
)
{
#ifdef CONFIG_ACPI_BOOT
printk
(
"Try booting with pci=noacpi, acpi=ht, "
"or acpi=off on the command line.
\n
"
);
printk
(
"If one helps, please report the following lines:
\n
"
);
dmi_dump_system
();
#endif
}
#endif
/* CONFIG_MOUNT_ROOT_FAILED_MSG */
arch/i386/kernel/setup.c
View file @
ca1ba071
...
@@ -43,6 +43,7 @@
...
@@ -43,6 +43,7 @@
#include <asm/setup.h>
#include <asm/setup.h>
#include <asm/arch_hooks.h>
#include <asm/arch_hooks.h>
#include <asm/sections.h>
#include <asm/sections.h>
#include <asm/io_apic.h>
#include "setup_arch_pre.h"
#include "setup_arch_pre.h"
#include "mach_resources.h"
#include "mach_resources.h"
...
...
arch/i386/lib/usercopy.c
View file @
ca1ba071
...
@@ -222,85 +222,105 @@ __copy_user_intel(void *to, const void *from,unsigned long size)
...
@@ -222,85 +222,105 @@ __copy_user_intel(void *to, const void *from,unsigned long size)
{
{
int
d0
,
d1
;
int
d0
,
d1
;
__asm__
__volatile__
(
__asm__
__volatile__
(
" .align 2,0x90
\n
"
" .align 2,0x90
\n
"
"0: movl 32(%4), %%eax
\n
"
"1: movl 32(%4), %%eax
\n
"
" cmpl $67, %0
\n
"
" cmpl $67, %0
\n
"
" jbe 1f
\n
"
" jbe 3f
\n
"
" movl 64(%4), %%eax
\n
"
"2: movl 64(%4), %%eax
\n
"
" .align 2,0x90
\n
"
" .align 2,0x90
\n
"
"1: movl 0(%4), %%eax
\n
"
"3: movl 0(%4), %%eax
\n
"
" movl 4(%4), %%edx
\n
"
"4: movl 4(%4), %%edx
\n
"
"2: movl %%eax, 0(%3)
\n
"
"5: movl %%eax, 0(%3)
\n
"
"21: movl %%edx, 4(%3)
\n
"
"6: movl %%edx, 4(%3)
\n
"
" movl 8(%4), %%eax
\n
"
"7: movl 8(%4), %%eax
\n
"
" movl 12(%4),%%edx
\n
"
"8: movl 12(%4),%%edx
\n
"
"3: movl %%eax, 8(%3)
\n
"
"9: movl %%eax, 8(%3)
\n
"
"31: movl %%edx, 12(%3)
\n
"
"10: movl %%edx, 12(%3)
\n
"
" movl 16(%4), %%eax
\n
"
"11: movl 16(%4), %%eax
\n
"
" movl 20(%4), %%edx
\n
"
"12: movl 20(%4), %%edx
\n
"
"4: movl %%eax, 16(%3)
\n
"
"13: movl %%eax, 16(%3)
\n
"
"41: movl %%edx, 20(%3)
\n
"
"14: movl %%edx, 20(%3)
\n
"
" movl 24(%4), %%eax
\n
"
"15: movl 24(%4), %%eax
\n
"
" movl 28(%4), %%edx
\n
"
"16: movl 28(%4), %%edx
\n
"
"10: movl %%eax, 24(%3)
\n
"
"17: movl %%eax, 24(%3)
\n
"
"51: movl %%edx, 28(%3)
\n
"
"18: movl %%edx, 28(%3)
\n
"
" movl 32(%4), %%eax
\n
"
"19: movl 32(%4), %%eax
\n
"
" movl 36(%4), %%edx
\n
"
"20: movl 36(%4), %%edx
\n
"
"11: movl %%eax, 32(%3)
\n
"
"21: movl %%eax, 32(%3)
\n
"
"61: movl %%edx, 36(%3)
\n
"
"22: movl %%edx, 36(%3)
\n
"
" movl 40(%4), %%eax
\n
"
"23: movl 40(%4), %%eax
\n
"
" movl 44(%4), %%edx
\n
"
"24: movl 44(%4), %%edx
\n
"
"12: movl %%eax, 40(%3)
\n
"
"25: movl %%eax, 40(%3)
\n
"
"71: movl %%edx, 44(%3)
\n
"
"26: movl %%edx, 44(%3)
\n
"
" movl 48(%4), %%eax
\n
"
"27: movl 48(%4), %%eax
\n
"
" movl 52(%4), %%edx
\n
"
"28: movl 52(%4), %%edx
\n
"
"13: movl %%eax, 48(%3)
\n
"
"29: movl %%eax, 48(%3)
\n
"
"81: movl %%edx, 52(%3)
\n
"
"30: movl %%edx, 52(%3)
\n
"
" movl 56(%4), %%eax
\n
"
"31: movl 56(%4), %%eax
\n
"
" movl 60(%4), %%edx
\n
"
"32: movl 60(%4), %%edx
\n
"
"14: movl %%eax, 56(%3)
\n
"
"33: movl %%eax, 56(%3)
\n
"
"91: movl %%edx, 60(%3)
\n
"
"34: movl %%edx, 60(%3)
\n
"
" addl $-64, %0
\n
"
" addl $-64, %0
\n
"
" addl $64, %4
\n
"
" addl $64, %4
\n
"
" addl $64, %3
\n
"
" addl $64, %3
\n
"
" cmpl $63, %0
\n
"
" cmpl $63, %0
\n
"
" ja 0b
\n
"
" ja 1b
\n
"
"5: movl %0, %%eax
\n
"
"35: movl %0, %%eax
\n
"
" shrl $2, %0
\n
"
" shrl $2, %0
\n
"
" andl $3, %%eax
\n
"
" andl $3, %%eax
\n
"
" cld
\n
"
" cld
\n
"
"6: rep; movsl
\n
"
"99: rep; movsl
\n
"
" movl %%eax, %0
\n
"
"36: movl %%eax, %0
\n
"
"7: rep; movsb
\n
"
"37: rep; movsb
\n
"
"8:
\n
"
"100:
\n
"
".section .fixup,
\"
ax
\"\n
"
".section .fixup,
\"
ax
\"\n
"
"9: lea 0(%%eax,%0,4),%0
\n
"
"101: lea 0(%%eax,%0,4),%0
\n
"
" jmp 8b
\n
"
" jmp 100b
\n
"
".previous
\n
"
".previous
\n
"
".section __ex_table,
\"
a
\"\n
"
".section __ex_table,
\"
a
\"\n
"
" .align 4
\n
"
" .align 4
\n
"
" .long 2b,8b
\n
"
" .long 1b,100b
\n
"
" .long 21b,8b
\n
"
" .long 2b,100b
\n
"
" .long 3b,8b
\n
"
" .long 3b,100b
\n
"
" .long 31b,8b
\n
"
" .long 4b,100b
\n
"
" .long 4b,8b
\n
"
" .long 5b,100b
\n
"
" .long 41b,8b
\n
"
" .long 6b,100b
\n
"
" .long 10b,8b
\n
"
" .long 7b,100b
\n
"
" .long 51b,8b
\n
"
" .long 8b,100b
\n
"
" .long 11b,8b
\n
"
" .long 9b,100b
\n
"
" .long 61b,8b
\n
"
" .long 10b,100b
\n
"
" .long 12b,8b
\n
"
" .long 11b,100b
\n
"
" .long 71b,8b
\n
"
" .long 12b,100b
\n
"
" .long 13b,8b
\n
"
" .long 13b,100b
\n
"
" .long 81b,8b
\n
"
" .long 14b,100b
\n
"
" .long 14b,8b
\n
"
" .long 15b,100b
\n
"
" .long 91b,8b
\n
"
" .long 16b,100b
\n
"
" .long 6b,9b
\n
"
" .long 17b,100b
\n
"
" .long 7b,8b
\n
"
" .long 18b,100b
\n
"
".previous"
" .long 19b,100b
\n
"
" .long 20b,100b
\n
"
" .long 21b,100b
\n
"
" .long 22b,100b
\n
"
" .long 23b,100b
\n
"
" .long 24b,100b
\n
"
" .long 25b,100b
\n
"
" .long 26b,100b
\n
"
" .long 27b,100b
\n
"
" .long 28b,100b
\n
"
" .long 29b,100b
\n
"
" .long 30b,100b
\n
"
" .long 31b,100b
\n
"
" .long 32b,100b
\n
"
" .long 33b,100b
\n
"
" .long 34b,100b
\n
"
" .long 35b,100b
\n
"
" .long 36b,100b
\n
"
" .long 37b,100b
\n
"
" .long 99b,101b
\n
"
".previous"
:
"=&c"
(
size
),
"=&D"
(
d0
),
"=&S"
(
d1
)
:
"=&c"
(
size
),
"=&D"
(
d0
),
"=&S"
(
d1
)
:
"1"
(
to
),
"2"
(
from
),
"0"
(
size
)
:
"1"
(
to
),
"2"
(
from
),
"0"
(
size
)
:
"eax"
,
"edx"
,
"memory"
);
:
"eax"
,
"edx"
,
"memory"
);
return
size
;
return
size
;
}
}
...
...
arch/x86_64/kernel/pci-gart.c
View file @
ca1ba071
...
@@ -31,12 +31,6 @@
...
@@ -31,12 +31,6 @@
#include <asm/kdebug.h>
#include <asm/kdebug.h>
#include <asm/proto.h>
#include <asm/proto.h>
#ifdef CONFIG_PCI_NAMES
#define pci_pretty_name(dev) ((dev)->pretty_name)
#else
#define pci_pretty_name(dev) ""
#endif
dma_addr_t
bad_dma_address
;
dma_addr_t
bad_dma_address
;
unsigned
long
iommu_bus_base
;
/* GART remapping area (physical) */
unsigned
long
iommu_bus_base
;
/* GART remapping area (physical) */
...
...
drivers/base/power/resume.c
View file @
ca1ba071
...
@@ -150,4 +150,4 @@ void device_resume(u32 level)
...
@@ -150,4 +150,4 @@ void device_resume(u32 level)
printk
(
"%s is deprecated. Called from:
\n
"
,
__FUNCTION__
);
printk
(
"%s is deprecated. Called from:
\n
"
,
__FUNCTION__
);
dump_stack
();
dump_stack
();
}
}
EXPORT_SYMBOL
(
device_resume
);
drivers/base/power/suspend.c
View file @
ca1ba071
...
@@ -232,4 +232,4 @@ int device_suspend(u32 state, u32 level)
...
@@ -232,4 +232,4 @@ int device_suspend(u32 state, u32 level)
dump_stack
();
dump_stack
();
return
-
EFAULT
;
return
-
EFAULT
;
}
}
EXPORT_SYMBOL
(
device_suspend
);
drivers/media/video/Kconfig
View file @
ca1ba071
...
@@ -5,16 +5,6 @@
...
@@ -5,16 +5,6 @@
menu "Video For Linux"
menu "Video For Linux"
depends on VIDEO_DEV!=n
depends on VIDEO_DEV!=n
config VIDEO_PROC_FS
bool "V4L information in proc filesystem"
depends on PROC_FS
help
If you say Y here, you are able to access video device information
in /proc/video.
To use this option, you have to check, that the "/proc file system
support" (CONFIG_PROC_FS) is enabled too.
comment "Video Adapters"
comment "Video Adapters"
config VIDEO_BT848
config VIDEO_BT848
...
...
drivers/net/seeq8005.c
View file @
ca1ba071
...
@@ -706,7 +706,7 @@ static void hardware_send_packet(struct net_device * dev, char *buf, int length)
...
@@ -706,7 +706,7 @@ static void hardware_send_packet(struct net_device * dev, char *buf, int length)
inline
void
wait_for_buffer
(
struct
net_device
*
dev
)
inline
void
wait_for_buffer
(
struct
net_device
*
dev
)
{
{
int
ioaddr
=
dev
->
base_addr
;
int
ioaddr
=
dev
->
base_addr
;
int
tmp
;
unsigned
long
tmp
;
int
status
;
int
status
;
tmp
=
jiffies
+
HZ
;
tmp
=
jiffies
+
HZ
;
...
...
drivers/net/wan/Kconfig
View file @
ca1ba071
...
@@ -172,9 +172,6 @@ config COMX_PROTO_FR
...
@@ -172,9 +172,6 @@ config COMX_PROTO_FR
<file:Documentation/modules.txt>. The module will be called
<file:Documentation/modules.txt>. The module will be called
comx-proto-fr.
comx-proto-fr.
#
# The Etinc driver has not been tested as non-modular yet.
#
config DSCC4
config DSCC4
tristate "Etinc PCISYNC serial board support"
tristate "Etinc PCISYNC serial board support"
depends on WAN && PCI && m
depends on WAN && PCI && m
...
@@ -189,6 +186,31 @@ config DSCC4
...
@@ -189,6 +186,31 @@ config DSCC4
The module will be called dscc4. For general information about
The module will be called dscc4. For general information about
modules read <file:Documentation/modules.txt>.
modules read <file:Documentation/modules.txt>.
config DSCC4_PCISYNC
bool "Etinc PCISYNC features"
depends on DSCC4
help
Due to Etinc's design choice for its PCISYNC cards, some operations
are only allowed on specific ports of the DSCC4. This option is the
only way for the driver to know that it shouldn't return a success
code for these operations.
Please say Y if your card is an Etinc's PCISYNC.
config DSCC4_PCI_RST
bool "Hard reset support"
depends on DSCC4
help
Various DSCC4 bugs forbid any reliable software reset of the asic.
As a replacement, some vendors provide a way to assert the PCI #RST
pin of DSCC4 through the GPIO port of the card. If you choose Y,
the driver will make use of this feature before module removal
(i.e. rmmod).
The feature is known to be available on Commtech's cards.
Contact your manufacturer for details.
Say Y if your card supports this feature.
#
#
# Lan Media's board. Currently 1000, 1200, 5200, 5245
# Lan Media's board. Currently 1000, 1200, 5200, 5245
#
#
...
...
drivers/net/wan/dscc4.c
View file @
ca1ba071
This diff is collapsed.
Click to expand it.
drivers/pci/hotplug/cpqphp_core.c
View file @
ca1ba071
...
@@ -34,7 +34,6 @@
...
@@ -34,7 +34,6 @@
#include <linux/kernel.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/types.h>
#include <linux/proc_fs.h>
#include <linux/proc_fs.h>
#include <linux/miscdevice.h>
#include <linux/slab.h>
#include <linux/slab.h>
#include <linux/workqueue.h>
#include <linux/workqueue.h>
#include <linux/pci.h>
#include <linux/pci.h>
...
...
drivers/pci/hotplug/cpqphp_nvram.c
View file @
ca1ba071
...
@@ -31,7 +31,6 @@
...
@@ -31,7 +31,6 @@
#include <linux/kernel.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/types.h>
#include <linux/proc_fs.h>
#include <linux/proc_fs.h>
#include <linux/miscdevice.h>
#include <linux/slab.h>
#include <linux/slab.h>
#include <linux/workqueue.h>
#include <linux/workqueue.h>
#include <linux/pci.h>
#include <linux/pci.h>
...
...
drivers/pci/names.c
View file @
ca1ba071
...
@@ -80,14 +80,14 @@ void __devinit pci_name_device(struct pci_dev *dev)
...
@@ -80,14 +80,14 @@ void __devinit pci_name_device(struct pci_dev *dev)
}
}
/* Ok, found the vendor, but unknown device */
/* Ok, found the vendor, but unknown device */
sprintf
(
name
,
"PCI device %04x:%04x (%."
DEVICE
_NAME_HALF
"s)"
,
sprintf
(
name
,
"PCI device %04x:%04x (%."
PCI
_NAME_HALF
"s)"
,
dev
->
vendor
,
dev
->
device
,
vendor_p
->
name
);
dev
->
vendor
,
dev
->
device
,
vendor_p
->
name
);
return
;
return
;
/* Full match */
/* Full match */
match_device:
{
match_device:
{
char
*
n
=
name
+
sprintf
(
name
,
"%."
DEVICE
_NAME_HALF
char
*
n
=
name
+
sprintf
(
name
,
"%."
PCI
_NAME_HALF
"s %."
DEVICE
_NAME_HALF
"s"
,
"s %."
PCI
_NAME_HALF
"s"
,
vendor_p
->
name
,
device_p
->
name
);
vendor_p
->
name
,
device_p
->
name
);
int
nr
=
device_p
->
seen
+
1
;
int
nr
=
device_p
->
seen
+
1
;
device_p
->
seen
=
nr
;
device_p
->
seen
=
nr
;
...
...
drivers/pci/pci-driver.c
View file @
ca1ba071
...
@@ -122,10 +122,8 @@ __pci_device_probe(struct pci_driver *drv, struct pci_dev *pci_dev)
...
@@ -122,10 +122,8 @@ __pci_device_probe(struct pci_driver *drv, struct pci_dev *pci_dev)
if
(
!
pci_dev
->
driver
&&
drv
->
probe
)
{
if
(
!
pci_dev
->
driver
&&
drv
->
probe
)
{
error
=
pci_device_probe_static
(
drv
,
pci_dev
);
error
=
pci_device_probe_static
(
drv
,
pci_dev
);
if
(
error
>=
0
)
if
(
error
==
-
ENODEV
)
return
error
;
error
=
pci_device_probe_dynamic
(
drv
,
pci_dev
);
error
=
pci_device_probe_dynamic
(
drv
,
pci_dev
);
}
}
return
error
;
return
error
;
}
}
...
...
drivers/pci/setup-bus.c
View file @
ca1ba071
...
@@ -203,11 +203,6 @@ pci_setup_bridge(struct pci_bus *bus)
...
@@ -203,11 +203,6 @@ pci_setup_bridge(struct pci_bus *bus)
Enable ISA in either case (FIXME!). */
Enable ISA in either case (FIXME!). */
l
=
(
bus
->
resource
[
0
]
->
flags
&
IORESOURCE_BUS_HAS_VGA
)
?
0x0c
:
0x04
;
l
=
(
bus
->
resource
[
0
]
->
flags
&
IORESOURCE_BUS_HAS_VGA
)
?
0x0c
:
0x04
;
pci_write_config_word
(
bridge
,
PCI_BRIDGE_CONTROL
,
l
);
pci_write_config_word
(
bridge
,
PCI_BRIDGE_CONTROL
,
l
);
/* Make sure the bridge COMMAND register has the appropriate
bits set, just in case...
*/
pcibios_enable_device
(
bridge
,
0xfff
);
}
}
/* Check whether the bridge supports optional I/O and
/* Check whether the bridge supports optional I/O and
...
...
drivers/scsi/NCR5380.c
View file @
ca1ba071
...
@@ -852,9 +852,7 @@ char *lprint_command(unsigned char *cmd, char *pos, char *buffer, int len);
...
@@ -852,9 +852,7 @@ char *lprint_command(unsigned char *cmd, char *pos, char *buffer, int len);
static
static
char
*
lprint_opcode
(
int
opcode
,
char
*
pos
,
char
*
buffer
,
int
length
);
char
*
lprint_opcode
(
int
opcode
,
char
*
pos
,
char
*
buffer
,
int
length
);
#ifndef NCR5380_proc_info
static
static
#endif
int
NCR5380_proc_info
(
struct
Scsi_Host
*
instance
,
char
*
buffer
,
char
**
start
,
off_t
offset
,
int
length
,
int
inout
)
int
NCR5380_proc_info
(
struct
Scsi_Host
*
instance
,
char
*
buffer
,
char
**
start
,
off_t
offset
,
int
length
,
int
inout
)
{
{
char
*
pos
=
buffer
;
char
*
pos
=
buffer
;
...
...
drivers/scsi/NCR5380.h
View file @
ca1ba071
...
@@ -310,10 +310,8 @@ static int NCR5380_bus_reset(Scsi_Cmnd * cmd);
...
@@ -310,10 +310,8 @@ static int NCR5380_bus_reset(Scsi_Cmnd * cmd);
static
int
NCR5380_host_reset
(
Scsi_Cmnd
*
cmd
);
static
int
NCR5380_host_reset
(
Scsi_Cmnd
*
cmd
);
static
int
NCR5380_device_reset
(
Scsi_Cmnd
*
cmd
);
static
int
NCR5380_device_reset
(
Scsi_Cmnd
*
cmd
);
static
int
NCR5380_queue_command
(
Scsi_Cmnd
*
cmd
,
void
(
*
done
)
(
Scsi_Cmnd
*
));
static
int
NCR5380_queue_command
(
Scsi_Cmnd
*
cmd
,
void
(
*
done
)
(
Scsi_Cmnd
*
));
#ifdef NCR5380_proc_info
static
int
NCR5380_proc_info
(
struct
Scsi_Host
*
instance
,
char
*
buffer
,
char
**
start
,
int
NCR5380_proc_info
(
struct
Scsi_Host
*
instance
,
char
*
buffer
,
char
**
start
,
off_t
offset
,
int
length
,
int
inout
);
off_t
offset
,
int
length
,
int
inout
);
#endif
static
void
NCR5380_reselect
(
struct
Scsi_Host
*
instance
);
static
void
NCR5380_reselect
(
struct
Scsi_Host
*
instance
);
static
int
NCR5380_select
(
struct
Scsi_Host
*
instance
,
Scsi_Cmnd
*
cmd
,
int
tag
);
static
int
NCR5380_select
(
struct
Scsi_Host
*
instance
,
Scsi_Cmnd
*
cmd
,
int
tag
);
...
...
drivers/scsi/aacraid/aacraid.h
View file @
ca1ba071
...
@@ -549,7 +549,7 @@ struct aac_queue {
...
@@ -549,7 +549,7 @@ struct aac_queue {
/* This is only valid for adapter to host command queues. */
/* This is only valid for adapter to host command queues. */
spinlock_t
*
lock
;
/* Spinlock for this queue must take this lock before accessing the lock */
spinlock_t
*
lock
;
/* Spinlock for this queue must take this lock before accessing the lock */
spinlock_t
lockdata
;
/* Actual lock (used only on one side of the lock) */
spinlock_t
lockdata
;
/* Actual lock (used only on one side of the lock) */
u
32
SavedIrql
;
/* Previous IRQL when the spin lock is taken */
u
nsigned
long
SavedIrql
;
/* Previous IRQL when the spin lock is taken */
u32
padding
;
/* Padding - FIXME - can remove I believe */
u32
padding
;
/* Padding - FIXME - can remove I believe */
struct
aac_list_head
cmdq
;
/* A queue of FIBs which need to be prcessed by the FS thread. This is */
struct
aac_list_head
cmdq
;
/* A queue of FIBs which need to be prcessed by the FS thread. This is */
// struct list_head cmdq; /* A queue of FIBs which need to be prcessed by the FS thread. This is */
// struct list_head cmdq; /* A queue of FIBs which need to be prcessed by the FS thread. This is */
...
...
drivers/scsi/aha1740.c
View file @
ca1ba071
...
@@ -602,8 +602,8 @@ static int aha1740_probe (struct device *dev)
...
@@ -602,8 +602,8 @@ static int aha1740_probe (struct device *dev)
outb
(
G2CNTRL_HRST
,
G2CNTRL
(
slotbase
));
outb
(
G2CNTRL_HRST
,
G2CNTRL
(
slotbase
));
outb
(
0
,
G2CNTRL
(
slotbase
));
outb
(
0
,
G2CNTRL
(
slotbase
));
}
}
printk
(
KERN_INFO
"Configuring
%s
at IO:%x, IRQ %d
\n
"
,
printk
(
KERN_INFO
"Configuring
slot %d
at IO:%x, IRQ %d
\n
"
,
dev
->
name
,
slotbase
,
irq_level
);
edev
->
slot
,
slotbase
,
irq_level
);
printk
(
KERN_INFO
"aha174x: Extended translation %sabled.
\n
"
,
printk
(
KERN_INFO
"aha174x: Extended translation %sabled.
\n
"
,
translation
?
"en"
:
"dis"
);
translation
?
"en"
:
"dis"
);
shpnt
=
scsi_host_alloc
(
&
aha1740_template
,
shpnt
=
scsi_host_alloc
(
&
aha1740_template
,
...
@@ -656,8 +656,7 @@ static __devexit int aha1740_remove (struct device *dev)
...
@@ -656,8 +656,7 @@ static __devexit int aha1740_remove (struct device *dev)
struct
Scsi_Host
*
shpnt
=
dev
->
driver_data
;
struct
Scsi_Host
*
shpnt
=
dev
->
driver_data
;
struct
aha1740_hostdata
*
host
=
HOSTDATA
(
shpnt
);
struct
aha1740_hostdata
*
host
=
HOSTDATA
(
shpnt
);
if
(
scsi_remove_host
(
shpnt
))
scsi_remove_host
(
shpnt
);
return
-
EBUSY
;
free_irq
(
shpnt
->
irq
,
shpnt
);
free_irq
(
shpnt
->
irq
,
shpnt
);
dma_unmap_single
(
dev
,
host
->
ecb_dma_addr
,
dma_unmap_single
(
dev
,
host
->
ecb_dma_addr
,
...
...
drivers/scsi/atari_NCR5380.c
View file @
ca1ba071
...
@@ -743,9 +743,7 @@ static void NCR5380_print_status (struct Scsi_Host *instance)
...
@@ -743,9 +743,7 @@ static void NCR5380_print_status (struct Scsi_Host *instance)
static
static
char
*
lprint_Scsi_Cmnd
(
Scsi_Cmnd
*
cmd
,
char
*
pos
,
char
*
buffer
,
int
length
);
char
*
lprint_Scsi_Cmnd
(
Scsi_Cmnd
*
cmd
,
char
*
pos
,
char
*
buffer
,
int
length
);
#ifndef NCR5380_proc_info
static
static
#endif
int
NCR5380_proc_info
(
struct
Scsi_Host
*
instance
,
char
*
buffer
,
char
**
start
,
off_t
offset
,
int
NCR5380_proc_info
(
struct
Scsi_Host
*
instance
,
char
*
buffer
,
char
**
start
,
off_t
offset
,
int
length
,
int
inout
)
int
length
,
int
inout
)
{
{
...
...
drivers/scsi/g_NCR5380.c
View file @
ca1ba071
...
@@ -780,7 +780,7 @@ static int sprint_Scsi_Cmnd(char *buffer, int len, Scsi_Cmnd * cmd)
...
@@ -780,7 +780,7 @@ static int sprint_Scsi_Cmnd(char *buffer, int len, Scsi_Cmnd * cmd)
* Locks: global cli/lock for queue walk
* Locks: global cli/lock for queue walk
*/
*/
int
generic_NCR5380_proc_info
(
struct
Scsi_Host
*
scsi_ptr
,
char
*
buffer
,
char
**
start
,
off_t
offset
,
int
length
,
int
inout
)
static
int
generic_NCR5380_proc_info
(
struct
Scsi_Host
*
scsi_ptr
,
char
*
buffer
,
char
**
start
,
off_t
offset
,
int
length
,
int
inout
)
{
{
int
len
=
0
;
int
len
=
0
;
NCR5380_local_declare
();
NCR5380_local_declare
();
...
...
drivers/scsi/mac_NCR5380.c
View file @
ca1ba071
...
@@ -768,9 +768,7 @@ static void NCR5380_print_status (struct Scsi_Host *instance)
...
@@ -768,9 +768,7 @@ static void NCR5380_print_status (struct Scsi_Host *instance)
static
static
char
*
lprint_Scsi_Cmnd
(
Scsi_Cmnd
*
cmd
,
char
*
pos
,
char
*
buffer
,
int
length
);
char
*
lprint_Scsi_Cmnd
(
Scsi_Cmnd
*
cmd
,
char
*
pos
,
char
*
buffer
,
int
length
);
#ifndef NCR5380_proc_info
static
static
#endif
int
NCR5380_proc_info
(
struct
Scsi_Host
*
instance
,
char
*
buffer
,
char
**
start
,
off_t
offset
,
int
NCR5380_proc_info
(
struct
Scsi_Host
*
instance
,
char
*
buffer
,
char
**
start
,
off_t
offset
,
int
length
,
int
inout
)
int
length
,
int
inout
)
{
{
...
...
drivers/scsi/sun3_NCR5380.c
View file @
ca1ba071
...
@@ -754,7 +754,7 @@ static void NCR5380_print_status (struct Scsi_Host *instance)
...
@@ -754,7 +754,7 @@ static void NCR5380_print_status (struct Scsi_Host *instance)
static
static
char
*
lprint_Scsi_Cmnd
(
Scsi_Cmnd
*
cmd
,
char
*
pos
,
char
*
buffer
,
int
length
);
char
*
lprint_Scsi_Cmnd
(
Scsi_Cmnd
*
cmd
,
char
*
pos
,
char
*
buffer
,
int
length
);
int
NCR5380_proc_info
(
struct
Scsi_Host
*
instance
,
char
*
buffer
,
char
**
start
,
static
int
NCR5380_proc_info
(
struct
Scsi_Host
*
instance
,
char
*
buffer
,
char
**
start
,
off_t
offset
,
int
length
,
int
inout
)
off_t
offset
,
int
length
,
int
inout
)
{
{
char
*
pos
=
buffer
;
char
*
pos
=
buffer
;
...
...
drivers/scsi/ultrastor.c
View file @
ca1ba071
...
@@ -294,7 +294,7 @@ static inline void build_sg_list(struct mscp *, Scsi_Cmnd *SCpnt);
...
@@ -294,7 +294,7 @@ static inline void build_sg_list(struct mscp *, Scsi_Cmnd *SCpnt);
/* Always called with host lock held */
/* Always called with host lock held */
static
inline
int
find_and_clear_bit_16
(
unsigned
short
*
field
)
static
inline
int
find_and_clear_bit_16
(
unsigned
long
*
field
)
{
{
int
rv
;
int
rv
;
...
...
drivers/usb/media/se401.c
View file @
ca1ba071
...
@@ -130,6 +130,9 @@ static void rvfree(void *mem, unsigned long size)
...
@@ -130,6 +130,9 @@ static void rvfree(void *mem, unsigned long size)
*
*
***************************************************************************/
***************************************************************************/
#warning please convert me from procfs to sysfs
#undef CONFIG_VIDEO_PROC_FS
#if defined(CONFIG_PROC_FS) && defined(CONFIG_VIDEO_PROC_FS)
#if defined(CONFIG_PROC_FS) && defined(CONFIG_VIDEO_PROC_FS)
static
struct
proc_dir_entry
*
se401_proc_entry
=
NULL
;
static
struct
proc_dir_entry
*
se401_proc_entry
=
NULL
;
...
...
drivers/usb/media/stv680.c
View file @
ca1ba071
...
@@ -519,6 +519,9 @@ static int stv_init (struct usb_stv *stv680)
...
@@ -519,6 +519,9 @@ static int stv_init (struct usb_stv *stv680)
* /proc interface
* /proc interface
*******************************************************************/
*******************************************************************/
#warning please convert me from procfs to sysfs
#undef CONFIG_VIDEO_PROC_FS
#if defined(CONFIG_PROC_FS) && defined(CONFIG_VIDEO_PROC_FS)
#if defined(CONFIG_PROC_FS) && defined(CONFIG_VIDEO_PROC_FS)
static
struct
proc_dir_entry
*
stv680_proc_entry
=
NULL
;
static
struct
proc_dir_entry
*
stv680_proc_entry
=
NULL
;
...
...
drivers/usb/media/usbvideo.c
View file @
ca1ba071
...
@@ -37,6 +37,8 @@
...
@@ -37,6 +37,8 @@
static
int
video_nr
=
-
1
;
static
int
video_nr
=
-
1
;
MODULE_PARM
(
video_nr
,
"i"
);
MODULE_PARM
(
video_nr
,
"i"
);
#warning please convert me from procfs to sysfs
#define USES_PROC_FS 0
/*
/*
* Local prototypes.
* Local prototypes.
*/
*/
...
...
drivers/usb/serial/console.c
View file @
ca1ba071
...
@@ -143,7 +143,7 @@ static int __init usb_console_setup(struct console *co, char *options)
...
@@ -143,7 +143,7 @@ static int __init usb_console_setup(struct console *co, char *options)
return
-
ENODEV
;
return
-
ENODEV
;
}
}
port
=
&
serial
->
port
[
0
];
port
=
serial
->
port
[
0
];
port
->
tty
=
NULL
;
port
->
tty
=
NULL
;
info
->
port
=
port
;
info
->
port
=
port
;
...
...
drivers/video/tridentfb.c
View file @
ca1ba071
...
@@ -454,9 +454,10 @@ static struct accel_switch accel_image = {
...
@@ -454,9 +454,10 @@ static struct accel_switch accel_image = {
static
void
tridentfb_fillrect
(
struct
fb_info
*
info
,
const
struct
fb_fillrect
*
fr
)
static
void
tridentfb_fillrect
(
struct
fb_info
*
info
,
const
struct
fb_fillrect
*
fr
)
{
{
int
bpp
=
info
->
var
.
bits_per_pixel
;
int
bpp
=
info
->
var
.
bits_per_pixel
;
int
dx
,
dy
,
w
,
h
,
col
;
int
col
;
switch
(
bpp
)
{
switch
(
bpp
)
{
default:
case
8
:
col
=
fr
->
color
;
case
8
:
col
=
fr
->
color
;
break
;
break
;
case
16
:
col
=
((
u16
*
)(
info
->
pseudo_palette
))[
fr
->
color
];
case
16
:
col
=
((
u16
*
)(
info
->
pseudo_palette
))[
fr
->
color
];
...
@@ -1129,7 +1130,7 @@ static int __devinit trident_pci_probe(struct pci_dev * dev, const struct pci_de
...
@@ -1129,7 +1130,7 @@ static int __devinit trident_pci_probe(struct pci_dev * dev, const struct pci_de
return
-
1
;
return
-
1
;
}
}
output
(
"%s board found
\n
"
,
dev
->
dev
.
name
);
output
(
"%s board found
\n
"
,
pci_name
(
dev
)
);
#if 0
#if 0
output("Trident board found : mem = %X,io = %X, mem_v = %X, io_v = %X\n",
output("Trident board found : mem = %X,io = %X, mem_v = %X, io_v = %X\n",
tridentfb_fix.smem_start, tridentfb_fix.mmio_start, fb_info.screen_base, default_par.io_virt);
tridentfb_fix.smem_start, tridentfb_fix.mmio_start, fb_info.screen_base, default_par.io_virt);
...
...
fs/block_dev.c
View file @
ca1ba071
...
@@ -419,12 +419,34 @@ void bd_forget(struct inode *inode)
...
@@ -419,12 +419,34 @@ void bd_forget(struct inode *inode)
int
bd_claim
(
struct
block_device
*
bdev
,
void
*
holder
)
int
bd_claim
(
struct
block_device
*
bdev
,
void
*
holder
)
{
{
int
res
=
-
EBUSY
;
int
res
;
spin_lock
(
&
bdev_lock
);
spin_lock
(
&
bdev_lock
);
if
(
!
bdev
->
bd_holder
||
bdev
->
bd_holder
==
holder
)
{
bdev
->
bd_holder
=
holder
;
/* first decide result */
if
(
bdev
->
bd_holder
==
holder
)
res
=
0
;
/* already a holder */
else
if
(
bdev
->
bd_holder
!=
NULL
)
res
=
-
EBUSY
;
/* held by someone else */
else
if
(
bdev
->
bd_contains
==
bdev
)
res
=
0
;
/* is a whole device which isn't held */
else
if
(
bdev
->
bd_contains
->
bd_holder
==
bd_claim
)
res
=
0
;
/* is a partition of a device that is being partitioned */
else
if
(
bdev
->
bd_contains
->
bd_holder
!=
NULL
)
res
=
-
EBUSY
;
/* is a partition of a held device */
else
res
=
0
;
/* is a partition of an un-held device */
/* now impose change */
if
(
res
==
0
)
{
/* note that for a whole device bd_holders
* will be incremented twice, and bd_holder will
* be set to bd_claim before being set to holder
*/
bdev
->
bd_contains
->
bd_holders
++
;
bdev
->
bd_contains
->
bd_holder
=
bd_claim
;
bdev
->
bd_holders
++
;
bdev
->
bd_holders
++
;
res
=
0
;
bdev
->
bd_holder
=
holder
;
}
}
spin_unlock
(
&
bdev_lock
);
spin_unlock
(
&
bdev_lock
);
return
res
;
return
res
;
...
@@ -433,6 +455,8 @@ int bd_claim(struct block_device *bdev, void *holder)
...
@@ -433,6 +455,8 @@ int bd_claim(struct block_device *bdev, void *holder)
void
bd_release
(
struct
block_device
*
bdev
)
void
bd_release
(
struct
block_device
*
bdev
)
{
{
spin_lock
(
&
bdev_lock
);
spin_lock
(
&
bdev_lock
);
if
(
!--
bdev
->
bd_contains
->
bd_holders
)
bdev
->
bd_contains
->
bd_holder
=
NULL
;
if
(
!--
bdev
->
bd_holders
)
if
(
!--
bdev
->
bd_holders
)
bdev
->
bd_holder
=
NULL
;
bdev
->
bd_holder
=
NULL
;
spin_unlock
(
&
bdev_lock
);
spin_unlock
(
&
bdev_lock
);
...
@@ -619,6 +643,7 @@ int blkdev_get(struct block_device *bdev, mode_t mode, unsigned flags, int kind)
...
@@ -619,6 +643,7 @@ int blkdev_get(struct block_device *bdev, mode_t mode, unsigned flags, int kind)
int
blkdev_open
(
struct
inode
*
inode
,
struct
file
*
filp
)
int
blkdev_open
(
struct
inode
*
inode
,
struct
file
*
filp
)
{
{
struct
block_device
*
bdev
;
struct
block_device
*
bdev
;
int
res
;
/*
/*
* Preserve backwards compatibility and allow large file access
* Preserve backwards compatibility and allow large file access
...
@@ -631,7 +656,18 @@ int blkdev_open(struct inode * inode, struct file * filp)
...
@@ -631,7 +656,18 @@ int blkdev_open(struct inode * inode, struct file * filp)
bd_acquire
(
inode
);
bd_acquire
(
inode
);
bdev
=
inode
->
i_bdev
;
bdev
=
inode
->
i_bdev
;
return
do_open
(
bdev
,
inode
,
filp
);
res
=
do_open
(
bdev
,
inode
,
filp
);
if
(
res
)
return
res
;
if
(
!
(
filp
->
f_flags
&
O_EXCL
)
)
return
0
;
if
(
!
(
res
=
bd_claim
(
bdev
,
filp
)))
return
0
;
blkdev_put
(
bdev
,
BDEV_FILE
);
return
res
;
}
}
int
blkdev_put
(
struct
block_device
*
bdev
,
int
kind
)
int
blkdev_put
(
struct
block_device
*
bdev
,
int
kind
)
...
@@ -680,6 +716,8 @@ int blkdev_put(struct block_device *bdev, int kind)
...
@@ -680,6 +716,8 @@ int blkdev_put(struct block_device *bdev, int kind)
int
blkdev_close
(
struct
inode
*
inode
,
struct
file
*
filp
)
int
blkdev_close
(
struct
inode
*
inode
,
struct
file
*
filp
)
{
{
if
(
inode
->
i_bdev
->
bd_holder
==
filp
)
bd_release
(
inode
->
i_bdev
);
return
blkdev_put
(
inode
->
i_bdev
,
BDEV_FILE
);
return
blkdev_put
(
inode
->
i_bdev
,
BDEV_FILE
);
}
}
...
...
fs/cramfs/inode.c
View file @
ca1ba071
...
@@ -218,7 +218,8 @@ static int cramfs_fill_super(struct super_block *sb, void *data, int silent)
...
@@ -218,7 +218,8 @@ static int cramfs_fill_super(struct super_block *sb, void *data, int silent)
/* check at 512 byte offset */
/* check at 512 byte offset */
memcpy
(
&
super
,
cramfs_read
(
sb
,
512
,
sizeof
(
super
)),
sizeof
(
super
));
memcpy
(
&
super
,
cramfs_read
(
sb
,
512
,
sizeof
(
super
)),
sizeof
(
super
));
if
(
super
.
magic
!=
CRAMFS_MAGIC
)
{
if
(
super
.
magic
!=
CRAMFS_MAGIC
)
{
printk
(
KERN_ERR
"cramfs: wrong magic
\n
"
);
if
(
!
silent
)
printk
(
KERN_ERR
"cramfs: wrong magic
\n
"
);
goto
out
;
goto
out
;
}
}
}
}
...
...
fs/ext3/balloc.c
View file @
ca1ba071
...
@@ -279,7 +279,8 @@ void ext3_free_blocks (handle_t *handle, struct inode * inode,
...
@@ -279,7 +279,8 @@ void ext3_free_blocks (handle_t *handle, struct inode * inode,
return
;
return
;
}
}
/* For ext3 allocations, we must not reuse any blocks which are
/*
* For ext3 allocations, we must not reuse any blocks which are
* allocated in the bitmap buffer's "last committed data" copy. This
* allocated in the bitmap buffer's "last committed data" copy. This
* prevents deletes from freeing up the page for reuse until we have
* prevents deletes from freeing up the page for reuse until we have
* committed the delete transaction.
* committed the delete transaction.
...
@@ -294,14 +295,21 @@ void ext3_free_blocks (handle_t *handle, struct inode * inode,
...
@@ -294,14 +295,21 @@ void ext3_free_blocks (handle_t *handle, struct inode * inode,
* data-writes at some point, and disable it for metadata allocations or
* data-writes at some point, and disable it for metadata allocations or
* sync-data inodes.
* sync-data inodes.
*/
*/
static
inline
int
ext3_test_allocatable
(
int
nr
,
struct
buffer_head
*
bh
,
static
inline
int
ext3_test_allocatable
(
int
nr
,
struct
buffer_head
*
bh
)
int
have_access
)
{
{
int
ret
;
struct
journal_head
*
jh
=
bh2jh
(
bh
);
if
(
ext3_test_bit
(
nr
,
bh
->
b_data
))
if
(
ext3_test_bit
(
nr
,
bh
->
b_data
))
return
0
;
return
0
;
if
(
!
have_access
||
!
buffer_jbd
(
bh
)
||
!
bh2jh
(
bh
)
->
b_committed_data
)
return
1
;
jbd_lock_bh_state
(
bh
);
return
!
ext3_test_bit
(
nr
,
bh2jh
(
bh
)
->
b_committed_data
);
if
(
!
jh
->
b_committed_data
)
ret
=
1
;
else
ret
=
!
ext3_test_bit
(
nr
,
jh
->
b_committed_data
);
jbd_unlock_bh_state
(
bh
);
return
ret
;
}
}
/*
/*
...
@@ -311,11 +319,12 @@ static inline int ext3_test_allocatable(int nr, struct buffer_head *bh,
...
@@ -311,11 +319,12 @@ static inline int ext3_test_allocatable(int nr, struct buffer_head *bh,
* the initial goal; then for a free byte somewhere in the bitmap; then
* the initial goal; then for a free byte somewhere in the bitmap; then
* for any free bit in the bitmap.
* for any free bit in the bitmap.
*/
*/
static
int
find_next_usable_block
(
int
start
,
struct
buffer_head
*
bh
,
static
int
int
maxblocks
,
int
have_acces
s
)
find_next_usable_block
(
int
start
,
struct
buffer_head
*
bh
,
int
maxblock
s
)
{
{
int
here
,
next
;
int
here
,
next
;
char
*
p
,
*
r
;
char
*
p
,
*
r
;
struct
journal_head
*
jh
=
bh2jh
(
bh
);
if
(
start
>
0
)
{
if
(
start
>
0
)
{
/*
/*
...
@@ -328,48 +337,38 @@ static int find_next_usable_block(int start, struct buffer_head *bh,
...
@@ -328,48 +337,38 @@ static int find_next_usable_block(int start, struct buffer_head *bh,
*/
*/
int
end_goal
=
(
start
+
63
)
&
~
63
;
int
end_goal
=
(
start
+
63
)
&
~
63
;
here
=
ext3_find_next_zero_bit
(
bh
->
b_data
,
end_goal
,
start
);
here
=
ext3_find_next_zero_bit
(
bh
->
b_data
,
end_goal
,
start
);
if
(
here
<
end_goal
&&
if
(
here
<
end_goal
&&
ext3_test_allocatable
(
here
,
bh
))
ext3_test_allocatable
(
here
,
bh
,
have_access
))
return
here
;
return
here
;
ext3_debug
(
"Bit not found near goal
\n
"
);
ext3_debug
(
"Bit not found near goal
\n
"
);
}
}
here
=
start
;
here
=
start
;
if
(
here
<
0
)
if
(
here
<
0
)
here
=
0
;
here
=
0
;
/*
p
=
((
char
*
)
bh
->
b_data
)
+
(
here
>>
3
);
* There has been no free block found in the near vicinity of
* the goal: do a search forward through the block groups,
* searching in each group first for an entire free byte in the
* bitmap and then for any free bit.
*
* Search first in the remainder of the current group
*/
p
=
((
char
*
)
bh
->
b_data
)
+
(
here
>>
3
);
r
=
memscan
(
p
,
0
,
(
maxblocks
-
here
+
7
)
>>
3
);
r
=
memscan
(
p
,
0
,
(
maxblocks
-
here
+
7
)
>>
3
);
next
=
(
r
-
((
char
*
)
bh
->
b_data
))
<<
3
;
next
=
(
r
-
((
char
*
)
bh
->
b_data
))
<<
3
;
if
(
next
<
maxblocks
&&
ext3_test_allocatable
(
next
,
bh
,
have_access
))
if
(
next
<
maxblocks
&&
ext3_test_allocatable
(
next
,
bh
))
return
next
;
return
next
;
/* The bitmap search --- search forward alternately
/*
* through the actual bitmap and the last-committed copy
* The bitmap search --- search forward alternately through the actual
* until we find a bit free in both. */
* bitmap and the last-committed copy until we find a bit free in
* both
*/
while
(
here
<
maxblocks
)
{
while
(
here
<
maxblocks
)
{
next
=
ext3_find_next_zero_bit
((
unsigned
long
*
)
bh
->
b_data
,
next
=
ext3_find_next_zero_bit
(
bh
->
b_data
,
maxblocks
,
here
);
maxblocks
,
here
);
if
(
next
>=
maxblocks
)
if
(
next
>=
maxblocks
)
return
-
1
;
return
-
1
;
if
(
ext3_test_allocatable
(
next
,
bh
,
have_access
))
if
(
ext3_test_allocatable
(
next
,
bh
))
return
next
;
return
next
;
jbd_lock_bh_state
(
bh
);
if
(
have_access
)
if
(
jh
->
b_committed_data
)
here
=
ext3_find_next_zero_bit
here
=
ext3_find_next_zero_bit
(
jh
->
b_committed_data
,
((
unsigned
long
*
)
bh2jh
(
bh
)
->
b_committed_data
,
maxblocks
,
next
);
maxblocks
,
next
);
jbd_unlock_bh_state
(
bh
);
}
}
return
-
1
;
return
-
1
;
}
}
...
@@ -384,14 +383,20 @@ static int find_next_usable_block(int start, struct buffer_head *bh,
...
@@ -384,14 +383,20 @@ static int find_next_usable_block(int start, struct buffer_head *bh,
static
inline
int
static
inline
int
claim_block
(
spinlock_t
*
lock
,
int
block
,
struct
buffer_head
*
bh
)
claim_block
(
spinlock_t
*
lock
,
int
block
,
struct
buffer_head
*
bh
)
{
{
struct
journal_head
*
jh
=
bh2jh
(
bh
);
int
ret
;
if
(
ext3_set_bit_atomic
(
lock
,
block
,
bh
->
b_data
))
if
(
ext3_set_bit_atomic
(
lock
,
block
,
bh
->
b_data
))
return
0
;
return
0
;
if
(
buffer_jbd
(
bh
)
&&
bh2jh
(
bh
)
->
b_committed_data
&&
jbd_lock_bh_state
(
bh
);
ext3_test_bit
(
block
,
bh2jh
(
bh
)
->
b_committed_data
))
{
if
(
jh
->
b_committed_data
&&
ext3_test_bit
(
block
,
jh
->
b_committed_data
))
{
ext3_clear_bit_atomic
(
lock
,
block
,
bh
->
b_data
);
ext3_clear_bit_atomic
(
lock
,
block
,
bh
->
b_data
);
return
0
;
ret
=
0
;
}
else
{
ret
=
1
;
}
}
return
1
;
jbd_unlock_bh_state
(
bh
);
return
ret
;
}
}
/*
/*
...
@@ -403,43 +408,34 @@ static int
...
@@ -403,43 +408,34 @@ static int
ext3_try_to_allocate
(
struct
super_block
*
sb
,
handle_t
*
handle
,
int
group
,
ext3_try_to_allocate
(
struct
super_block
*
sb
,
handle_t
*
handle
,
int
group
,
struct
buffer_head
*
bitmap_bh
,
int
goal
,
int
*
errp
)
struct
buffer_head
*
bitmap_bh
,
int
goal
,
int
*
errp
)
{
{
int
i
,
fatal
=
0
;
int
i
;
int
have_access
=
0
;
int
fatal
;
int
credits
=
0
;
int
credits
=
0
;
*
errp
=
0
;
*
errp
=
0
;
if
(
goal
>=
0
&&
ext3_test_allocatable
(
goal
,
bitmap_bh
,
0
))
/*
goto
got
;
* Make sure we use undo access for the bitmap, because it is critical
* that we do the frozen_data COW on bitmap buffers in all cases even
repeat:
* if the buffer is in BJ_Forget state in the committing transaction.
goal
=
find_next_usable_block
(
goal
,
bitmap_bh
,
*/
EXT3_BLOCKS_PER_GROUP
(
sb
),
have_access
);
BUFFER_TRACE
(
bitmap_bh
,
"get undo access for new block"
);
if
(
goal
<
0
)
fatal
=
ext3_journal_get_undo_access
(
handle
,
bitmap_bh
,
&
credits
);
if
(
fatal
)
{
*
errp
=
fatal
;
goto
fail
;
goto
fail
;
}
for
(
i
=
0
;
repeat:
i
<
7
&&
goal
>
0
&&
if
(
goal
<
0
||
!
ext3_test_allocatable
(
goal
,
bitmap_bh
))
{
ext3_test_allocatable
(
goal
-
1
,
bitmap_bh
,
have_access
);
goal
=
find_next_usable_block
(
goal
,
bitmap_bh
,
i
++
,
goal
--
);
EXT3_BLOCKS_PER_GROUP
(
sb
));
if
(
goal
<
0
)
got:
goto
fail_access
;
if
(
!
have_access
)
{
/*
for
(
i
=
0
;
i
<
7
&&
goal
>
0
&&
* Make sure we use undo access for the bitmap, because it is
ext3_test_allocatable
(
goal
-
1
,
bitmap_bh
);
* critical that we do the frozen_data COW on bitmap buffers in
i
++
,
goal
--
);
* all cases even if the buffer is in BJ_Forget state in the
* committing transaction.
*/
BUFFER_TRACE
(
bitmap_bh
,
"get undo access for new block"
);
fatal
=
ext3_journal_get_undo_access
(
handle
,
bitmap_bh
,
&
credits
);
if
(
fatal
)
{
*
errp
=
fatal
;
goto
fail
;
}
jbd_lock_bh_state
(
bitmap_bh
);
have_access
=
1
;
}
}
if
(
!
claim_block
(
sb_bgl_lock
(
EXT3_SB
(
sb
),
group
),
goal
,
bitmap_bh
))
{
if
(
!
claim_block
(
sb_bgl_lock
(
EXT3_SB
(
sb
),
group
),
goal
,
bitmap_bh
))
{
...
@@ -449,29 +445,25 @@ ext3_try_to_allocate(struct super_block *sb, handle_t *handle, int group,
...
@@ -449,29 +445,25 @@ ext3_try_to_allocate(struct super_block *sb, handle_t *handle, int group,
*/
*/
goal
++
;
goal
++
;
if
(
goal
>=
EXT3_BLOCKS_PER_GROUP
(
sb
))
if
(
goal
>=
EXT3_BLOCKS_PER_GROUP
(
sb
))
goto
fail
;
goto
fail
_access
;
goto
repeat
;
goto
repeat
;
}
}
BUFFER_TRACE
(
bitmap_bh
,
"journal_dirty_metadata for bitmap block"
);
BUFFER_TRACE
(
bitmap_bh
,
"journal_dirty_metadata for bitmap block"
);
jbd_unlock_bh_state
(
bitmap_bh
);
fatal
=
ext3_journal_dirty_metadata
(
handle
,
bitmap_bh
);
fatal
=
ext3_journal_dirty_metadata
(
handle
,
bitmap_bh
);
if
(
fatal
)
{
if
(
fatal
)
{
*
errp
=
fatal
;
*
errp
=
fatal
;
goto
fail
;
goto
fail
;
}
}
return
goal
;
return
goal
;
fail_access:
BUFFER_TRACE
(
bitmap_bh
,
"journal_release_buffer"
);
ext3_journal_release_buffer
(
handle
,
bitmap_bh
,
credits
);
fail:
fail:
if
(
have_access
)
{
BUFFER_TRACE
(
bitmap_bh
,
"journal_release_buffer"
);
jbd_unlock_bh_state
(
bitmap_bh
);
ext3_journal_release_buffer
(
handle
,
bitmap_bh
,
credits
);
}
return
-
1
;
return
-
1
;
}
}
/*
/*
* ext3_new_block uses a goal block to assist allocation. If the goal is
* ext3_new_block uses a goal block to assist allocation. If the goal is
* free, or there is a free block within 32 blocks of the goal, that block
* free, or there is a free block within 32 blocks of the goal, that block
...
...
fs/ext3/namei.c
View file @
ca1ba071
...
@@ -1284,6 +1284,7 @@ static int make_indexed_dir(handle_t *handle, struct dentry *dentry,
...
@@ -1284,6 +1284,7 @@ static int make_indexed_dir(handle_t *handle, struct dentry *dentry,
unsigned
blocksize
;
unsigned
blocksize
;
struct
dx_hash_info
hinfo
;
struct
dx_hash_info
hinfo
;
u32
block
;
u32
block
;
struct
fake_dirent
*
fde
;
blocksize
=
dir
->
i_sb
->
s_blocksize
;
blocksize
=
dir
->
i_sb
->
s_blocksize
;
dxtrace
(
printk
(
"Creating index
\n
"
));
dxtrace
(
printk
(
"Creating index
\n
"
));
...
@@ -1304,7 +1305,8 @@ static int make_indexed_dir(handle_t *handle, struct dentry *dentry,
...
@@ -1304,7 +1305,8 @@ static int make_indexed_dir(handle_t *handle, struct dentry *dentry,
data1
=
bh2
->
b_data
;
data1
=
bh2
->
b_data
;
/* The 0th block becomes the root, move the dirents out */
/* The 0th block becomes the root, move the dirents out */
de
=
(
struct
ext3_dir_entry_2
*
)
&
root
->
info
;
fde
=
&
root
->
dotdot
;
de
=
(
struct
ext3_dir_entry_2
*
)((
char
*
)
fde
+
fde
->
rec_len
);
len
=
((
char
*
)
root
)
+
blocksize
-
(
char
*
)
de
;
len
=
((
char
*
)
root
)
+
blocksize
-
(
char
*
)
de
;
memcpy
(
data1
,
de
,
len
);
memcpy
(
data1
,
de
,
len
);
de
=
(
struct
ext3_dir_entry_2
*
)
data1
;
de
=
(
struct
ext3_dir_entry_2
*
)
data1
;
...
@@ -2006,9 +2008,9 @@ static int ext3_rmdir (struct inode * dir, struct dentry *dentry)
...
@@ -2006,9 +2008,9 @@ static int ext3_rmdir (struct inode * dir, struct dentry *dentry)
* recovery. */
* recovery. */
inode
->
i_size
=
0
;
inode
->
i_size
=
0
;
ext3_orphan_add
(
handle
,
inode
);
ext3_orphan_add
(
handle
,
inode
);
inode
->
i_ctime
=
dir
->
i_ctime
=
dir
->
i_mtime
=
CURRENT_TIME
;
ext3_mark_inode_dirty
(
handle
,
inode
);
ext3_mark_inode_dirty
(
handle
,
inode
);
dir
->
i_nlink
--
;
dir
->
i_nlink
--
;
inode
->
i_ctime
=
dir
->
i_ctime
=
dir
->
i_mtime
=
CURRENT_TIME
;
ext3_update_dx_flag
(
dir
);
ext3_update_dx_flag
(
dir
);
ext3_mark_inode_dirty
(
handle
,
dir
);
ext3_mark_inode_dirty
(
handle
,
dir
);
...
@@ -2060,8 +2062,8 @@ static int ext3_unlink(struct inode * dir, struct dentry *dentry)
...
@@ -2060,8 +2062,8 @@ static int ext3_unlink(struct inode * dir, struct dentry *dentry)
inode
->
i_nlink
--
;
inode
->
i_nlink
--
;
if
(
!
inode
->
i_nlink
)
if
(
!
inode
->
i_nlink
)
ext3_orphan_add
(
handle
,
inode
);
ext3_orphan_add
(
handle
,
inode
);
ext3_mark_inode_dirty
(
handle
,
inode
);
inode
->
i_ctime
=
dir
->
i_ctime
;
inode
->
i_ctime
=
dir
->
i_ctime
;
ext3_mark_inode_dirty
(
handle
,
inode
);
retval
=
0
;
retval
=
0
;
end_unlink:
end_unlink:
...
@@ -2220,7 +2222,6 @@ static int ext3_rename (struct inode * old_dir, struct dentry *old_dentry,
...
@@ -2220,7 +2222,6 @@ static int ext3_rename (struct inode * old_dir, struct dentry *old_dentry,
goto
end_rename
;
goto
end_rename
;
}
else
{
}
else
{
BUFFER_TRACE
(
new_bh
,
"get write access"
);
BUFFER_TRACE
(
new_bh
,
"get write access"
);
BUFFER_TRACE
(
new_bh
,
"get_write_access"
);
ext3_journal_get_write_access
(
handle
,
new_bh
);
ext3_journal_get_write_access
(
handle
,
new_bh
);
new_de
->
inode
=
le32_to_cpu
(
old_inode
->
i_ino
);
new_de
->
inode
=
le32_to_cpu
(
old_inode
->
i_ino
);
if
(
EXT3_HAS_INCOMPAT_FEATURE
(
new_dir
->
i_sb
,
if
(
EXT3_HAS_INCOMPAT_FEATURE
(
new_dir
->
i_sb
,
...
...
fs/proc/array.c
View file @
ca1ba071
...
@@ -300,7 +300,7 @@ int proc_pid_stat(struct task_struct *task, char * buffer)
...
@@ -300,7 +300,7 @@ int proc_pid_stat(struct task_struct *task, char * buffer)
task_lock
(
task
);
task_lock
(
task
);
mm
=
task
->
mm
;
mm
=
task
->
mm
;
if
(
mm
)
if
(
mm
)
atomic_inc
(
&
mm
->
mm_users
);
mm
=
mmgrab
(
mm
);
if
(
task
->
tty
)
{
if
(
task
->
tty
)
{
tty_pgrp
=
task
->
tty
->
pgrp
;
tty_pgrp
=
task
->
tty
->
pgrp
;
tty_nr
=
task
->
tty
->
device
;
tty_nr
=
task
->
tty
->
device
;
...
...
include/asm-i386/mach-bigsmp/mach_apic.h
View file @
ca1ba071
...
@@ -98,6 +98,8 @@ extern u8 cpu_2_logical_apicid[];
...
@@ -98,6 +98,8 @@ extern u8 cpu_2_logical_apicid[];
/* Mapping from cpu number to logical apicid */
/* Mapping from cpu number to logical apicid */
static
inline
int
cpu_to_logical_apicid
(
int
cpu
)
static
inline
int
cpu_to_logical_apicid
(
int
cpu
)
{
{
if
(
cpu
>=
NR_CPUS
)
return
BAD_APICID
;
return
(
int
)
cpu_2_logical_apicid
[
cpu
];
return
(
int
)
cpu_2_logical_apicid
[
cpu
];
}
}
...
...
include/asm-i386/mach-es7000/mach_apic.h
View file @
ca1ba071
...
@@ -123,6 +123,8 @@ extern u8 cpu_2_logical_apicid[];
...
@@ -123,6 +123,8 @@ extern u8 cpu_2_logical_apicid[];
/* Mapping from cpu number to logical apicid */
/* Mapping from cpu number to logical apicid */
static
inline
int
cpu_to_logical_apicid
(
int
cpu
)
static
inline
int
cpu_to_logical_apicid
(
int
cpu
)
{
{
if
(
cpu
>=
NR_CPUS
)
return
BAD_APICID
;
return
(
int
)
cpu_2_logical_apicid
[
cpu
];
return
(
int
)
cpu_2_logical_apicid
[
cpu
];
}
}
...
...
include/asm-i386/mach-numaq/mach_apic.h
View file @
ca1ba071
...
@@ -60,6 +60,8 @@ static inline physid_mask_t ioapic_phys_id_map(physid_mask_t phys_map)
...
@@ -60,6 +60,8 @@ static inline physid_mask_t ioapic_phys_id_map(physid_mask_t phys_map)
extern
u8
cpu_2_logical_apicid
[];
extern
u8
cpu_2_logical_apicid
[];
static
inline
int
cpu_to_logical_apicid
(
int
cpu
)
static
inline
int
cpu_to_logical_apicid
(
int
cpu
)
{
{
if
(
cpu
>=
NR_CPUS
)
return
BAD_APICID
;
return
(
int
)
cpu_2_logical_apicid
[
cpu
];
return
(
int
)
cpu_2_logical_apicid
[
cpu
];
}
}
...
...
include/asm-i386/mach-summit/mach_apic.h
View file @
ca1ba071
...
@@ -80,6 +80,8 @@ static inline int apicid_to_node(int logical_apicid)
...
@@ -80,6 +80,8 @@ static inline int apicid_to_node(int logical_apicid)
extern
u8
cpu_2_logical_apicid
[];
extern
u8
cpu_2_logical_apicid
[];
static
inline
int
cpu_to_logical_apicid
(
int
cpu
)
static
inline
int
cpu_to_logical_apicid
(
int
cpu
)
{
{
if
(
cpu
>=
NR_CPUS
)
return
BAD_APICID
;
return
(
int
)
cpu_2_logical_apicid
[
cpu
];
return
(
int
)
cpu_2_logical_apicid
[
cpu
];
}
}
...
...
include/asm-i386/mach-visws/mach_apic.h
View file @
ca1ba071
#ifndef __ASM_MACH_APIC_H
#ifndef __ASM_MACH_APIC_H
#define __ASM_MACH_APIC_H
#define __ASM_MACH_APIC_H
#include <mach_apicdef.h>
#define APIC_DFR_VALUE (APIC_DFR_FLAT)
#define APIC_DFR_VALUE (APIC_DFR_FLAT)
#define no_balance_irq (0)
#define no_balance_irq (0)
...
...
include/linux/pci.h
View file @
ca1ba071
...
@@ -420,7 +420,9 @@ struct pci_dev {
...
@@ -420,7 +420,9 @@ struct pci_dev {
unsigned
int
transparent
:
1
;
/* Transparent PCI bridge */
unsigned
int
transparent
:
1
;
/* Transparent PCI bridge */
unsigned
int
multifunction
:
1
;
/* Part of multi-function device */
unsigned
int
multifunction
:
1
;
/* Part of multi-function device */
#ifdef CONFIG_PCI_NAMES
#ifdef CONFIG_PCI_NAMES
char
pretty_name
[
DEVICE_NAME_SIZE
];
/* pretty name for users to see */
#define PCI_NAME_SIZE 50
#define PCI_NAME_HALF __stringify(20)
/* less than half to handle slop */
char
pretty_name
[
PCI_NAME_SIZE
];
/* pretty name for users to see */
#endif
#endif
};
};
...
@@ -524,6 +526,32 @@ struct pci_driver {
...
@@ -524,6 +526,32 @@ struct pci_driver {
#define to_pci_driver(drv) container_of(drv,struct pci_driver, driver)
#define to_pci_driver(drv) container_of(drv,struct pci_driver, driver)
/**
* PCI_DEVICE - macro used to describe a specific pci device
* @vend: the 16 bit PCI Vendor ID
* @dev: the 16 bit PCI Device ID
*
* This macro is used to create a struct pci_device_id that matches a
* specific device. The subvendor and subdevice fields will be set to
* PCI_ANY_ID.
*/
#define PCI_DEVICE(vend,dev) \
.vendor = (vend), .device = (dev), \
.subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID
/**
* PCI_DEVICE_CLASS - macro used to describe a specific pci device class
* @dev_class: the class, subclass, prog-if triple for this device
* @dev_class_mask: the class mask for this device
*
* This macro is used to create a struct pci_device_id that matches a
* specific PCI class. The vendor, device, subvendor, and subdevice
* fields will be set to PCI_ANY_ID.
*/
#define PCI_DEVICE_CLASS(dev_class,dev_class_mask) \
.class = (dev_class), .class_mask = (dev_class_mask), \
.vendor = PCI_ANY_ID, .device = PCI_ANY_ID, \
.subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID
/* these external functions are only available when PCI support is enabled */
/* these external functions are only available when PCI support is enabled */
#ifdef CONFIG_PCI
#ifdef CONFIG_PCI
...
@@ -814,6 +842,13 @@ static inline char *pci_name(struct pci_dev *pdev)
...
@@ -814,6 +842,13 @@ static inline char *pci_name(struct pci_dev *pdev)
return
pdev
->
dev
.
bus_id
;
return
pdev
->
dev
.
bus_id
;
}
}
/* Some archs want to see the pretty pci name, so use this macro */
#ifdef CONFIG_PCI_NAMES
#define pci_pretty_name(dev) ((dev)->pretty_name)
#else
#define pci_pretty_name(dev) ""
#endif
/*
/*
* The world is not perfect and supplies us with broken PCI devices.
* The world is not perfect and supplies us with broken PCI devices.
* For at least a part of these bugs we need a work-around, so both
* For at least a part of these bugs we need a work-around, so both
...
...
include/linux/sched.h
View file @
ca1ba071
...
@@ -638,6 +638,8 @@ static inline void mmdrop(struct mm_struct * mm)
...
@@ -638,6 +638,8 @@ static inline void mmdrop(struct mm_struct * mm)
/* mmput gets rid of the mappings and all user-space */
/* mmput gets rid of the mappings and all user-space */
extern
void
mmput
(
struct
mm_struct
*
);
extern
void
mmput
(
struct
mm_struct
*
);
/* Grab a reference to the mm if its not already going away */
extern
struct
mm_struct
*
mmgrab
(
struct
mm_struct
*
);
/* Remove the current tasks stale references to the old mm_struct */
/* Remove the current tasks stale references to the old mm_struct */
extern
void
mm_release
(
struct
task_struct
*
,
struct
mm_struct
*
);
extern
void
mm_release
(
struct
task_struct
*
,
struct
mm_struct
*
);
...
@@ -745,7 +747,7 @@ static inline struct mm_struct * get_task_mm(struct task_struct * task)
...
@@ -745,7 +747,7 @@ static inline struct mm_struct * get_task_mm(struct task_struct * task)
task_lock
(
task
);
task_lock
(
task
);
mm
=
task
->
mm
;
mm
=
task
->
mm
;
if
(
mm
)
if
(
mm
)
atomic_inc
(
&
mm
->
mm_users
);
mm
=
mmgrab
(
mm
);
task_unlock
(
task
);
task_unlock
(
task
);
return
mm
;
return
mm
;
...
...
init/Kconfig
View file @
ca1ba071
...
@@ -140,7 +140,7 @@ config IKCONFIG
...
@@ -140,7 +140,7 @@ config IKCONFIG
config IKCONFIG_PROC
config IKCONFIG_PROC
bool "Enable access to .config through /proc/ikconfig"
bool "Enable access to .config through /proc/ikconfig"
depends on IKCONFIG
depends on IKCONFIG
&& PROC_FS
---help---
---help---
This option enables access to kernel configuration file and build
This option enables access to kernel configuration file and build
information through /proc/ikconfig.
information through /proc/ikconfig.
...
...
init/do_mounts.c
View file @
ca1ba071
...
@@ -286,8 +286,6 @@ void __init mount_block_root(char *name, int flags)
...
@@ -286,8 +286,6 @@ void __init mount_block_root(char *name, int flags)
root_device_name
,
b
);
root_device_name
,
b
);
printk
(
"Please append a correct
\"
root=
\"
boot option
\n
"
);
printk
(
"Please append a correct
\"
root=
\"
boot option
\n
"
);
mount_root_failed_msg
();
/* architecture dependent */
panic
(
"VFS: Unable to mount root fs on %s"
,
b
);
panic
(
"VFS: Unable to mount root fs on %s"
,
b
);
}
}
panic
(
"VFS: Unable to mount root fs on %s"
,
__bdevname
(
ROOT_DEV
,
b
));
panic
(
"VFS: Unable to mount root fs on %s"
,
__bdevname
(
ROOT_DEV
,
b
));
...
...
init/do_mounts.h
View file @
ca1ba071
...
@@ -80,13 +80,3 @@ static inline void md_run_setup(void) {}
...
@@ -80,13 +80,3 @@ static inline void md_run_setup(void) {}
#endif
#endif
#ifdef CONFIG_MOUNT_ROOT_FAILED_MSG
void
mount_root_failed_msg
(
void
);
#else
static
inline
void
mount_root_failed_msg
(
void
)
{}
#endif
kernel/fork.c
View file @
ca1ba071
...
@@ -398,6 +398,23 @@ void mmput(struct mm_struct *mm)
...
@@ -398,6 +398,23 @@ void mmput(struct mm_struct *mm)
}
}
}
}
/*
* Checks if the use count of an mm is non-zero and if so
* returns a reference to it after bumping up the use count.
* If the use count is zero, it means this mm is going away,
* so return NULL.
*/
struct
mm_struct
*
mmgrab
(
struct
mm_struct
*
mm
)
{
spin_lock
(
&
mmlist_lock
);
if
(
!
atomic_read
(
&
mm
->
mm_users
))
mm
=
NULL
;
else
atomic_inc
(
&
mm
->
mm_users
);
spin_unlock
(
&
mmlist_lock
);
return
mm
;
}
/* Please note the differences between mmput and mm_release.
/* Please note the differences between mmput and mm_release.
* mmput is called whenever we stop holding onto a mm_struct,
* mmput is called whenever we stop holding onto a mm_struct,
* error success whatever.
* error success whatever.
...
...
mm/filemap.c
View file @
ca1ba071
...
@@ -67,6 +67,9 @@
...
@@ -67,6 +67,9 @@
* ->mmap_sem
* ->mmap_sem
* ->lock_page (access_process_vm)
* ->lock_page (access_process_vm)
*
*
* ->mmap_sem
* ->i_sem (msync)
*
* ->inode_lock
* ->inode_lock
* ->sb_lock (fs/fs-writeback.c)
* ->sb_lock (fs/fs-writeback.c)
* ->mapping->page_lock (__sync_single_inode)
* ->mapping->page_lock (__sync_single_inode)
...
...
mm/vmscan.c
View file @
ca1ba071
...
@@ -279,6 +279,7 @@ shrink_list(struct list_head *page_list, unsigned int gfp_mask,
...
@@ -279,6 +279,7 @@ shrink_list(struct list_head *page_list, unsigned int gfp_mask,
while
(
!
list_empty
(
page_list
))
{
while
(
!
list_empty
(
page_list
))
{
struct
page
*
page
;
struct
page
*
page
;
int
may_enter_fs
;
int
may_enter_fs
;
int
referenced
;
page
=
list_entry
(
page_list
->
prev
,
struct
page
,
lru
);
page
=
list_entry
(
page_list
->
prev
,
struct
page
,
lru
);
list_del
(
&
page
->
lru
);
list_del
(
&
page
->
lru
);
...
@@ -298,7 +299,8 @@ shrink_list(struct list_head *page_list, unsigned int gfp_mask,
...
@@ -298,7 +299,8 @@ shrink_list(struct list_head *page_list, unsigned int gfp_mask,
goto
keep_locked
;
goto
keep_locked
;
pte_chain_lock
(
page
);
pte_chain_lock
(
page
);
if
(
page_referenced
(
page
)
&&
page_mapping_inuse
(
page
))
{
referenced
=
page_referenced
(
page
);
if
(
referenced
&&
page_mapping_inuse
(
page
))
{
/* In active use or really unfreeable. Activate it. */
/* In active use or really unfreeable. Activate it. */
pte_chain_unlock
(
page
);
pte_chain_unlock
(
page
);
goto
activate_locked
;
goto
activate_locked
;
...
@@ -358,6 +360,8 @@ shrink_list(struct list_head *page_list, unsigned int gfp_mask,
...
@@ -358,6 +360,8 @@ shrink_list(struct list_head *page_list, unsigned int gfp_mask,
* See swapfile.c:page_queue_congested().
* See swapfile.c:page_queue_congested().
*/
*/
if
(
PageDirty
(
page
))
{
if
(
PageDirty
(
page
))
{
if
(
referenced
)
goto
keep_locked
;
if
(
!
is_page_cache_freeable
(
page
))
if
(
!
is_page_cache_freeable
(
page
))
goto
keep_locked
;
goto
keep_locked
;
if
(
!
mapping
)
if
(
!
mapping
)
...
...
sound/isa/opl3sa2.c
View file @
ca1ba071
...
@@ -752,6 +752,7 @@ static int __devinit snd_opl3sa2_probe(int dev,
...
@@ -752,6 +752,7 @@ static int __devinit snd_opl3sa2_probe(int dev,
err
=
-
ENOMEM
;
err
=
-
ENOMEM
;
goto
__error
;
goto
__error
;
}
}
spin_lock_init
(
&
chip
->
reg_lock
);
chip
->
irq
=
-
1
;
chip
->
irq
=
-
1
;
if
((
err
=
snd_device_new
(
card
,
SNDRV_DEV_LOWLEVEL
,
chip
,
&
ops
))
<
0
)
if
((
err
=
snd_device_new
(
card
,
SNDRV_DEV_LOWLEVEL
,
chip
,
&
ops
))
<
0
)
goto
__error
;
goto
__error
;
...
...
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