summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Morton <akpm@digeo.com>2003-05-18 20:27:29 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2003-05-18 20:27:29 -0700
commit20db33b00aee2bee475db63ba55df64fe063188d (patch)
treea59ee4da6482d0f5981159c0580a45842d23ccae
parentb0e3e46a54ca446377ed4ab98cac86b9bdfed16f (diff)
[PATCH] misc fixes
- generic_file_open() comment fix (Bill Irwin) - kerneldoc fix in truncate.c (Aniruddha M Marathe) - remove truncate debug check. - page_lock comment fix (Robert Love) - remove unused device mapper label. - 3c509 docco fix ("Mark Tranchant" <mark@tranchant.freeserve.co.uk>) -- Documentation/networking/3c509.txt | 2 +- drivers/md/dm-ioctl.c | 1 - fs/open.c | 2 +- include/linux/fs.h | 2 +- mm/truncate.c | 8 +++----- 5 files changed, 6 insertions(+), 9 deletions(-)
-rw-r--r--Documentation/networking/3c509.txt2
-rw-r--r--drivers/md/dm-ioctl.c1
-rw-r--r--fs/open.c2
-rw-r--r--include/linux/fs.h2
-rw-r--r--mm/truncate.c8
5 files changed, 6 insertions, 9 deletions
diff --git a/Documentation/networking/3c509.txt b/Documentation/networking/3c509.txt
index 92b60517c8d3..867a99f88c68 100644
--- a/Documentation/networking/3c509.txt
+++ b/Documentation/networking/3c509.txt
@@ -52,7 +52,7 @@ loaded as a module, only the IRQ and transceiver setting may be overridden.
For example, setting two cards to 10base2/IRQ10 and AUI/IRQ11 is done by using
the xcvr and irq module options:
- options 3c509 xcvr=3,3 irq=10,11
+ options 3c509 xcvr=3,1 irq=10,11
(2) Full-duplex mode
diff --git a/drivers/md/dm-ioctl.c b/drivers/md/dm-ioctl.c
index 3bc04ee7cb08..a6fa7d31e43a 100644
--- a/drivers/md/dm-ioctl.c
+++ b/drivers/md/dm-ioctl.c
@@ -1115,7 +1115,6 @@ int __init dm_interface_init(void)
DM_DRIVER_EMAIL);
return 0;
- failed:
if (misc_deregister(&_dm_misc) < 0)
DMERR("misc_deregister failed for control device");
dm_hash_exit();
diff --git a/fs/open.c b/fs/open.c
index f3d0de4d7867..b8ea4700af59 100644
--- a/fs/open.c
+++ b/fs/open.c
@@ -902,7 +902,7 @@ asmlinkage long sys_vhangup(void)
/*
* Called when an inode is about to be open.
- * We use this to disallow opening RW large files on 32bit systems if
+ * We use this to disallow opening large files on 32bit systems if
* the caller didn't specify O_LARGEFILE. On 64bit systems we force
* on this flag in sys_open.
*/
diff --git a/include/linux/fs.h b/include/linux/fs.h
index e514d070e334..7365aef817b5 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -313,7 +313,7 @@ struct backing_dev_info;
struct address_space {
struct inode *host; /* owner: inode, block_device */
struct radix_tree_root page_tree; /* radix tree of all pages */
- spinlock_t page_lock; /* and rwlock protecting it */
+ spinlock_t page_lock; /* and spinlock protecting it */
struct list_head clean_pages; /* list of clean pages */
struct list_head dirty_pages; /* list of dirty pages */
struct list_head locked_pages; /* list of locked pages */
diff --git a/mm/truncate.c b/mm/truncate.c
index 8828e0e48bf0..0f6706fcda18 100644
--- a/mm/truncate.c
+++ b/mm/truncate.c
@@ -173,15 +173,13 @@ void truncate_inode_pages(struct address_space *mapping, loff_t lstart)
}
pagevec_release(&pvec);
}
- if (lstart == 0 && mapping->nrpages)
- printk("%s: I goofed!\n", __FUNCTION__);
}
/**
* invalidate_mapping_pages - Invalidate all the unlocked pages of one inode
- * @inode: the address_space which holds the pages to invalidate
- * @end: the index of the last page to invalidate (inclusive)
- * @nr_pages: defines the pagecache span. Invalidate up to @start + @nr_pages
+ * @mapping: the address_space which holds the pages to invalidate
+ * @start: the offset 'from' which to invalidate
+ * @end: the offset 'to' which to invalidate (inclusive)
*
* This function only removes the unlocked pages, if you want to
* remove all the pages of one inode, you must call truncate_inode_pages.