* - r-o-bind-mounts-reiser4-remove-is_rdonly-checks.patch removed from -mm tree
@ 2007-02-15 8:34 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2007-02-15 8:34 UTC (permalink / raw)
To: hansendc, haveblue, hch, miklos, viro, mm-commits
The patch titled
r/o bind mounts: reiser4: remove IS_RDONLY() checks
has been removed from the -mm tree. Its filename was
r-o-bind-mounts-reiser4-remove-is_rdonly-checks.patch
This patch was dropped because it had testing failures
------------------------------------------------------
Subject: r/o bind mounts: reiser4: remove IS_RDONLY() checks
From: Dave Hansen <hansendc@us.ibm.com>
This removes all reiser4 users of IS_RDONLY() except for some assert()s, and
reiser4_update_sd().
reiser4_update_sd()'s use appears pretty confined to places already covered by
vfs calls which have already bumped the mnt writer count.
Signed-off-by: Dave Hansen <haveblue@us.ibm.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
fs/reiser4/plugin/file/file.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff -puN fs/reiser4/plugin/file/file.c~r-o-bind-mounts-reiser4-remove-is_rdonly-checks fs/reiser4/plugin/file/file.c
--- a/fs/reiser4/plugin/file/file.c~r-o-bind-mounts-reiser4-remove-is_rdonly-checks
+++ a/fs/reiser4/plugin/file/file.c
@@ -1815,7 +1815,8 @@ int mmap_unix_file(struct file *file, st
down(&uf_info->write);
get_exclusive_access(uf_info);
- if (!IS_RDONLY(inode) && (vma->vm_flags & (VM_MAYWRITE | VM_SHARED))) {
+ if (!__mnt_is_readonly(file->f_vfsmnt) &&
+ (vma->vm_flags & (VM_MAYWRITE | VM_SHARED))) {
/*
* we need file built of extent items. If it is still built of
* tail items we have to convert it. Find what items the file
_
Patches currently in -mm which might be from hansendc@us.ibm.com are
r-o-bind-mounts-reiser4-remove-is_rdonly-checks.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-02-15 8:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-15 8:34 - r-o-bind-mounts-reiser4-remove-is_rdonly-checks.patch removed from -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.