All of lore.kernel.org
 help / color / mirror / Atom feed
* + seq-file-use-seek_-macros-instead-of-hardcoded-numbers.patch added to -mm tree
@ 2013-01-23 22:06 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2013-01-23 22:06 UTC (permalink / raw)
  To: mm-commits; +Cc: gorcunov


The patch titled
     Subject: seq-file: use SEEK_ macros instead of hardcoded numbers
has been added to the -mm tree.  Its filename is
     seq-file-use-seek_-macros-instead-of-hardcoded-numbers.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

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

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Cyrill Gorcunov <gorcunov@openvz.org>
Subject: seq-file: use SEEK_ macros instead of hardcoded numbers

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 fs/seq_file.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff -puN fs/seq_file.c~seq-file-use-seek_-macros-instead-of-hardcoded-numbers fs/seq_file.c
--- a/fs/seq_file.c~seq-file-use-seek_-macros-instead-of-hardcoded-numbers
+++ a/fs/seq_file.c
@@ -308,9 +308,9 @@ loff_t seq_lseek(struct file *file, loff
 	mutex_lock(&m->lock);
 	m->version = file->f_version;
 	switch (whence) {
-		case 1:
+		case SEEK_CUR:
 			offset += file->f_pos;
-		case 0:
+		case SEEK_SET:
 			if (offset < 0)
 				break;
 			retval = offset;
_

Patches currently in -mm which might be from gorcunov@openvz.org are

linux-next.patch
signal-allow-to-send-any-siginfo-to-itself.patch
signalfd-add-ability-to-return-siginfo-in-a-raw-format-v2.patch
signalfd-add-ability-to-return-siginfo-in-a-raw-format-v2-fix.patch
signalfd-add-ability-to-read-siginfo-s-without-dequeuing-signals-v4.patch
seq-file-use-seek_-macros-instead-of-hardcoded-numbers.patch


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

only message in thread, other threads:[~2013-01-23 22:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-23 22:06 + seq-file-use-seek_-macros-instead-of-hardcoded-numbers.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.