* [PATCH] 2.4.27 fs/open.c code small cleanup
@ 2004-08-13 5:49 Nikolay
2004-08-13 3:02 ` William Lee Irwin III
2004-08-13 5:02 ` Willy Tarreau
0 siblings, 2 replies; 4+ messages in thread
From: Nikolay @ 2004-08-13 5:49 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 101 bytes --]
A little clean up, soon I'll send few bug fixes and cleanups.
(see the attached file for more info)
[-- Attachment #2: kernel.diff --]
[-- Type: application/octet-stream, Size: 1232 bytes --]
diff -u linux-2.4.27/MAINTAINERS linux-2.4.27/MAINTAINERS
--- linux-2.4.27/MAINTAINERS 2004-08-09 02:48:53.000000000 +0300
+++ linux-2.4.27/MAINTAINERS 2004-08-09 02:51:04.000000000 +0300
@@ -1806,6 +1806,12 @@
L: linux-video@atrey.karlin.mff.cuni.cz
S: Maintained
+SYS_FSTATFS CODE CLEANUP
+P: Nikolay Alexandrov
+M: Nikolay@Alexandrov.ws
+W: http://kstats.blackwall.org
+S: Maintained
+
SYSV FILESYSTEM
P: Christoph Hellwig
M: hch@infradead.org
diff -u linux-2.4.27/fs/open.c linux-2.4.27/fs/open.c
--- linux-2.4.27/fs/open.c 2004-08-09 02:22:58.000000000 +0300
+++ linux-2.4.27/fs/open.c 2004-08-09 02:24:48.000000000 +0300
@@ -2,6 +2,7 @@
* linux/fs/open.c
*
* Copyright (C) 1991, 1992 Linus Torvalds
+ * 08.08.2004 - vfs_fstatfs code cleanup -- Nikolay Alexandrov (Nikolay@Alexandrov.ws)
*/
#include <linux/string.h>
@@ -62,12 +63,11 @@
error = -EBADF;
file = fget(fd);
if (!file)
- goto out;
+ return error;
error = vfs_statfs(file->f_dentry->d_inode->i_sb, &tmp);
if (!error && copy_to_user(buf, &tmp, sizeof(struct statfs)))
error = -EFAULT;
fput(file);
-out:
return error;
}
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] 2.4.27 fs/open.c code small cleanup
2004-08-13 5:49 [PATCH] 2.4.27 fs/open.c code small cleanup Nikolay
@ 2004-08-13 3:02 ` William Lee Irwin III
2004-08-13 5:02 ` Willy Tarreau
1 sibling, 0 replies; 4+ messages in thread
From: William Lee Irwin III @ 2004-08-13 3:02 UTC (permalink / raw)
To: Nikolay; +Cc: linux-kernel
On Fri, Aug 13, 2004 at 05:49:40AM -0000, Nikolay wrote:
> A little clean up, soon I'll send few bug fixes and cleanups.
> (see the attached file for more info)
A MAINTAINERS entry for this is way over the top.
-- wli
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] 2.4.27 fs/open.c code small cleanup
2004-08-13 5:49 [PATCH] 2.4.27 fs/open.c code small cleanup Nikolay
2004-08-13 3:02 ` William Lee Irwin III
@ 2004-08-13 5:02 ` Willy Tarreau
2004-08-13 16:26 ` Marcelo Tosatti
1 sibling, 1 reply; 4+ messages in thread
From: Willy Tarreau @ 2004-08-13 5:02 UTC (permalink / raw)
To: Nikolay; +Cc: linux-kernel
Hi,
On Fri, Aug 13, 2004 at 05:49:40AM -0000, Nikolay wrote:
> A little clean up, soon I'll send few bug fixes and cleanups.
I don't know for others, but I find it preferable not to change these
core files for such trivial cleanups. It will not change the output code
nor will make the source much more readable, but may break some external
useful patches. There are patches such as vserver and grsecurity which
touch open.c, and there are certainly others.
BTW, I noticed that credits are by far the most important part of this patch...
Regards,
Willy
> diff -u linux-2.4.27/MAINTAINERS linux-2.4.27/MAINTAINERS
> --- linux-2.4.27/MAINTAINERS 2004-08-09 02:48:53.000000000 +0300
> +++ linux-2.4.27/MAINTAINERS 2004-08-09 02:51:04.000000000 +0300
> @@ -1806,6 +1806,12 @@
> L: linux-video@atrey.karlin.mff.cuni.cz
> S: Maintained
>
> +SYS_FSTATFS CODE CLEANUP
> +P: Nikolay Alexandrov
> +M: Nikolay@Alexandrov.ws
> +W: http://kstats.blackwall.org
> +S: Maintained
> +
> SYSV FILESYSTEM
> P: Christoph Hellwig
> M: hch@infradead.org
> diff -u linux-2.4.27/fs/open.c linux-2.4.27/fs/open.c
> --- linux-2.4.27/fs/open.c 2004-08-09 02:22:58.000000000 +0300
> +++ linux-2.4.27/fs/open.c 2004-08-09 02:24:48.000000000 +0300
> @@ -2,6 +2,7 @@
> * linux/fs/open.c
> *
> * Copyright (C) 1991, 1992 Linus Torvalds
> + * 08.08.2004 - vfs_fstatfs code cleanup -- Nikolay Alexandrov (Nikolay@Alexandrov.ws)
> */
>
> #include <linux/string.h>
> @@ -62,12 +63,11 @@
> error = -EBADF;
> file = fget(fd);
> if (!file)
> - goto out;
> + return error;
> error = vfs_statfs(file->f_dentry->d_inode->i_sb, &tmp);
> if (!error && copy_to_user(buf, &tmp, sizeof(struct statfs)))
> error = -EFAULT;
> fput(file);
> -out:
> return error;
> }
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] 2.4.27 fs/open.c code small cleanup
2004-08-13 5:02 ` Willy Tarreau
@ 2004-08-13 16:26 ` Marcelo Tosatti
0 siblings, 0 replies; 4+ messages in thread
From: Marcelo Tosatti @ 2004-08-13 16:26 UTC (permalink / raw)
To: Willy Tarreau; +Cc: Nikolay, linux-kernel
On Fri, Aug 13, 2004 at 07:02:40AM +0200, Willy Tarreau wrote:
> Hi,
>
> On Fri, Aug 13, 2004 at 05:49:40AM -0000, Nikolay wrote:
> > A little clean up, soon I'll send few bug fixes and cleanups.
>
> I don't know for others, but I find it preferable not to change these
> core files for such trivial cleanups. It will not change the output code
> nor will make the source much more readable, but may break some external
> useful patches. There are patches such as vserver and grsecurity which
> touch open.c, and there are certainly others.
Agreed.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-08-13 17:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-13 5:49 [PATCH] 2.4.27 fs/open.c code small cleanup Nikolay
2004-08-13 3:02 ` William Lee Irwin III
2004-08-13 5:02 ` Willy Tarreau
2004-08-13 16:26 ` Marcelo Tosatti
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox