All of lore.kernel.org
 help / color / mirror / Atom feed
* + fuse-generic_write_checks-for-direct_io.patch added to -mm tree
@ 2007-05-18 17:44 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2007-05-18 17:44 UTC (permalink / raw)
  To: mm-commits; +Cc: mszeredi


The patch titled
     fuse: generic_write_checks() for direct_io
has been added to the -mm tree.  Its filename is
     fuse-generic_write_checks-for-direct_io.patch

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: fuse: generic_write_checks() for direct_io
From: Miklos Szeredi <mszeredi@suse.cz>

This fixes O_APPEND in direct IO mode.  Also checks writes against file size
limits, notably rlimits.

Reported by Greg Bruno.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 fs/fuse/file.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)

diff -puN fs/fuse/file.c~fuse-generic_write_checks-for-direct_io fs/fuse/file.c
--- a/fs/fuse/file.c~fuse-generic_write_checks-for-direct_io
+++ a/fs/fuse/file.c
@@ -609,7 +609,9 @@ static ssize_t fuse_direct_write(struct 
 	ssize_t res;
 	/* Don't allow parallel writes to the same file */
 	mutex_lock(&inode->i_mutex);
-	res = fuse_direct_io(file, buf, count, ppos, 1);
+	res = generic_write_checks(file, ppos, &count, 0);
+	if (!res)
+		res = fuse_direct_io(file, buf, count, ppos, 1);
 	mutex_unlock(&inode->i_mutex);
 	return res;
 }
_

Patches currently in -mm which might be from mszeredi@suse.cz are

fuse-generic_write_checks-for-direct_io.patch
fuse-delete-inode-on-drop.patch
split-mmap.patch
only-allow-nonlinear-vmas-for-ram-backed-filesystems.patch
unprivileged-mounts-add-user-mounts-to-the-kernel.patch
unprivileged-mounts-allow-unprivileged-umount.patch
unprivileged-mounts-account-user-mounts.patch
unprivileged-mounts-propagate-error-values-from-clone_mnt.patch
unprivileged-mounts-allow-unprivileged-bind-mounts.patch
unprivileged-mounts-put-declaration-of-put_filesystem-in-fsh.patch
unprivileged-mounts-allow-unprivileged-mounts.patch
unprivileged-mounts-allow-unprivileged-fuse-mounts.patch
unprivileged-mounts-propagation-inherit-owner-from-parent.patch
unprivileged-mounts-add-no-submounts-flag.patch

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-05-18 17:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-18 17:44 + fuse-generic_write_checks-for-direct_io.patch added to -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.