07 Jan, 2006
3 commits
-
Optimise rmap functions by minimising atomic operations when we know there
will be no concurrent modifications.Signed-off-by: Nick Piggin
Cc: Hugh Dickins
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
Implement copy-on-write support for hugetlb mappings so MAP_PRIVATE can be
supported. This helps us to safely use hugetlb pages in many more
applications. The patch makes the following changes. If needed, I also have
it broken out according to the following paragraphs.1. Add a pair of functions to set/clear write access on huge ptes. The
writable check in make_huge_pte is moved out to the caller for use by COW
later.2. Hugetlb copy-on-write requires special case handling in the following
situations:- copy_hugetlb_page_range() - Copied pages must be write protected so
a COW fault will be triggered (if necessary) if those pages are written
to.- find_or_alloc_huge_page() - Only MAP_SHARED pages are added to the
page cache. MAP_PRIVATE pages still need to be locked however.3. Provide hugetlb_cow() and calls from hugetlb_fault() and
hugetlb_no_page() which handles the COW fault by making the actual copy.4. Remove the check in hugetlbfs_file_map() so that MAP_PRIVATE mmaps
will be allowed. Make MAP_HUGETLB exempt from the depricated VM_RESERVED
mapping check.Signed-off-by: David Gibson
Signed-off-by: Adam Litke
Cc: William Lee Irwin III
Cc: "Seth, Rohit"
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
nls_utf8 is available, and the check in hfsplus_fill_super checks the wrong
pointer for NULLness (it checks the saved nls, not the new one that it
needs to use.)Signed-off-by: Joshua Kwan
Cc: Roman Zippel
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
06 Jan, 2006
1 commit
05 Jan, 2006
9 commits
-
Trivial manual merge fixup for usb_find_interface clashes.
-
In particular, allow over-large read- or write-requests to be downgraded
to a more reasonable range, rather than considering them outright errors.We want to protect lower layers from (the sadly all too common) overflow
conditions, but prefer to do so by chopping the requests up, rather than
just refusing them outright.Cc: Peter Anvin
Cc: Ulrich Drepper
Cc: Andi Kleen
Cc: Al Viro
Signed-off-by: Linus Torvalds -
I noticed that if sysfs_make_dirent fails to allocate the sd, then a
null will be passed to sysfs_put.Signed-off-by: Steven Rostedt
Signed-off-by: Greg Kroah-Hartman -
Block devices need to add the block device name to the symlink they put
in the device directory, otherwise multiple symlinks of the same name
can be created. This matches the class system, which works the same
way, we just forgot to convert block at the same time.Cc: Pete Zaitcev
Signed-off-by: Greg Kroah-Hartman -
Leave the overloaded "hotplug" word to susbsystems which are handling
real devices. The driver core does not "plug" anything, it just exports
the state to userspace and generates events.Signed-off-by: Kay Sievers
Signed-off-by: Greg Kroah-Hartman -
The names of these events have been confusing from the beginning
on, as they have been more like claim/release events. We needed these
events for noticing HAL if storage devices have been mounted.Thanks to Al, we have the proper solution now and can poll()
/proc/mounts instead to get notfied about mount tree changes.Signed-off-by: Kay Sievers
Signed-off-by: Greg Kroah-Hartman
04 Jan, 2006
13 commits
-
To help in reducing the number of include dependencies, several files were
touched as they were getting needed headers indirectly for stuff they use.Thanks also to Alan Menegotto for pointing out that net/dccp/proto.c had
linux/dccp.h include twice.Signed-off-by: Arnaldo Carvalho de Melo
Signed-off-by: David S. Miller -
Signed-off-by: Mark Fasheh
-
- cluster/sys.c: make needlessly global code static
- dlm/: "extern" declarations for variables belong into header files
(and in this case, they are already in dlmdomain.h)Signed-off-by: Adrian Bunk
Signed-off-by: Mark Fasheh -
Link the code into the kernel build system. OCFS2 is marked as
experimental.Signed-off-by: Mark Fasheh
Signed-off-by: Kurt Hackel -
The OCFS2 file system module.
Signed-off-by: Mark Fasheh
Signed-off-by: Kurt Hackel -
dlmfs: A minimal dlm userspace interface implemented via a virtual
file system.
Most of the OCFS2 tools make use of this to take cluster locks when
doing operations on the file system.Signed-off-by: Mark Fasheh
Signed-off-by: Kurt Hackel -
A distributed lock manager built with the cluster file system use case
in mind. The OCFS2 dlm exposes a VMS style API, though things have
been simplified internally. The only lock levels implemented currently
are NLMODE, PRMODE and EXMODE.Signed-off-by: Mark Fasheh
Signed-off-by: Kurt Hackel -
Node messaging via tcp. Used by the dlm and the file system for point
to point communication between nodes.Signed-off-by: Mark Fasheh
Signed-off-by: Kurt Hackel -
Disk based heartbeat. Configured and started from userspace, the
kernel component handles I/O submission and event generation via
callback mechanism.Signed-off-by: Mark Fasheh
Signed-off-by: Kurt Hackel -
A simple node information service, filled and updated from
userspace. The rest of the stack queries this service for simple node
information.Signed-off-by: Mark Fasheh
Signed-off-by: Kurt Hackel -
Very simple printk wrapper which adds the ability to enable various
sets of debug messages at run-time.Signed-off-by: Mark Fasheh
Signed-off-by: Kurt Hackel -
readpage(), prepare_write(), and commit_write() callers are updated to
understand the special return code AOP_TRUNCATED_PAGE in the style of
writepage() and WRITEPAGE_ACTIVATE. AOP_TRUNCATED_PAGE tells the caller that
the callee has unlocked the page and that the operation should be tried again
with a new page. OCFS2 uses this to detect and work around a lock inversion in
its aop methods. There should be no change in behaviour for methods that don't
return AOP_TRUNCATED_PAGE.WRITEPAGE_ACTIVATE is also prepended with AOP_ for consistency and they are
made enums so that kerneldoc can be used to document their semantics.Signed-off-by: Zach Brown
-
Configfs, a file system for userspace-driven kernel object configuration.
The OCFS2 stack makes extensive use of this for propagation of cluster
configuration information into kernel.Signed-off-by: Joel Becker
03 Jan, 2006
4 commits
-
This patch removes all references to the bouncing address
rddunlap@osdl.org and one dead web page from the kernel.Signed-off-by: Adrian Bunk
Acked-by: Randy Dunlap -
As everyone knows, the rule is: "i before e.. um.. always."
Signed-off-by: Matt Mackall
Signed-off-by: Adrian Bunk -
qnx4_new_block() is neither implemented nor used.
Signed-off-by: Adrian Bunk
Signed-off-by: Anders Larsen -
This patch removes pointers to the defunct UDF mailing list.
Signed-off-by: Adrian Bunk
31 Dec, 2005
1 commit
-
The old /proc interfaces were never updated to use loff_t, and are just
generally broken. Now, we should be using the seq_file interface for
all of the proc files, but converting the legacy functions is more work
than most people care for and has little upside..But at least we can make the non-LFS rules explicit, rather than just
insanely wrapping the offset or something.Signed-off-by: Linus Torvalds
30 Dec, 2005
2 commits
-
Prevent page->index << PAGE_CACHE_SHIFT from overflowing.
There is a casting there, but was added without care, so it's at the wrong
place. Note the extra parens around the shift - "+" is higher precedence than
"<
Signed-off-by: Linus Torvalds -
Trivial removal of unused variable from this file - doesn't even change the
generated assembly code, in fact (gcc should trigger a warning for unused value
here).Signed-off-by: Paolo 'Blaisorblade' Giarrusso
Signed-off-by: Linus Torvalds
23 Dec, 2005
2 commits
-
Introduce a Kconfig symbol SPARC that is defined on both the sparc and
sparc64 architectures.This symbol makes some dependencies more readable.
Signed-off-by: Adrian Bunk
Signed-off-by: David S. Miller -
NFS client prevents mandatory lock, but there is a flaw on it; Locks are
possibly left if the mode is changed while locking.This permits unlocking even if the mandatory lock bits are set.
Signed-off-by: ASANO Masahiro
Signed-off-by: Linus Torvalds
21 Dec, 2005
2 commits
-
There's currently a diagnostic printk in relay_switch_subbuf() meant as
a warning if you accidentally try to log an event larger than the
sub-buffer size.The problem is if this happens while logging from somewhere it's not
safe to be doing printks, such as in the scheduler, you can end up with
a deadlock. This patch removes the warning from relay_switch_subbuf()
and instead prints some diagnostic info when the channel is closed.Thanks to Mathieu Desnoyers for pointing out the problem and
suggesting a fix.Signed-off-by: Tom Zanussi
Signed-off-by: Linus Torvalds -
We must check for MAY_SATTR before setting acls, which includes checking
for read-only exports: the lower-level setxattr operation that
eventually sets the acl cannot check export-level restrictions.Bug reported by Martin Walter .
Signed-off-by: Andreas Gruenbacher
Acked-by: Trond Myklebust
Signed-off-by: Linus Torvalds
20 Dec, 2005
2 commits
-
When mixing -olock and -onolock mounts on the same client, we have to
check that fl->fl_u.nfs_fl.owner is set before dereferencing it.Signed-off-by: Trond Myklebust
-
Ensure we call unmap_mapping_range() and sync dirty pages to disk before
doing an NFS direct write.Signed-off-by: Trond Myklebust
16 Dec, 2005
1 commit
-
This merge is pretty extensive. The conflict is over the new
req->retries parameter, so I had to change the prototype to
scsi_setup_blk_pc_cmnd() and the usage in sd, sr and st.Signed-off-by: James Bottomley