linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] reiserfs: remove duplicate define
@ 2013-10-21  7:54 Michael Opdenacker
  2013-10-23  9:50 ` Jan Kara
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Opdenacker @ 2013-10-21  7:54 UTC (permalink / raw)
  To: viro
  Cc: reiserfs-devel, linux-kernel, jeffm, marco.stornelli, jack,
	Michael Opdenacker

This patch removes a duplicate define in fs/reiserfs/reiserfs.h

Signed-off-by: Michael Opdenacker <michael.opdenacker@free-electrons.com>
---
 fs/reiserfs/reiserfs.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/fs/reiserfs/reiserfs.h b/fs/reiserfs/reiserfs.h
index f8adaee..a27d69b 100644
--- a/fs/reiserfs/reiserfs.h
+++ b/fs/reiserfs/reiserfs.h
@@ -597,7 +597,6 @@ void reiserfs_file_buffer(struct buffer_head *bh, int list);
 extern struct file_system_type reiserfs_fs_type;
 int reiserfs_resize(struct super_block *, unsigned long);
 
-#define CARRY_ON                0
 #define SCHEDULE_OCCURRED       1
 
 #define SB_BUFFER_WITH_SB(s) (REISERFS_SB(s)->s_sbh)
-- 
1.8.1.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] reiserfs: remove duplicate define
  2013-10-21  7:54 [PATCH] reiserfs: remove duplicate define Michael Opdenacker
@ 2013-10-23  9:50 ` Jan Kara
  2013-10-24  5:28   ` Michael Opdenacker
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Kara @ 2013-10-23  9:50 UTC (permalink / raw)
  To: Michael Opdenacker
  Cc: viro, reiserfs-devel, linux-kernel, jeffm, marco.stornelli, jack

On Mon 21-10-13 09:54:57, Michael Opdenacker wrote:
> This patch removes a duplicate define in fs/reiserfs/reiserfs.h
  Hum, so the duplicate define certainly isn't nice but it's really a
result of a namespace collision between return codes of two different (sets
of) functions. So deleting the duplicate isn't really solving the problem,
just hiding it. So I'd prefer more one of the following two solutions:
1) Just ignore the problem. Reiserfs is mostly dead and this isn't likely to
cause any subtle issues.
2) Prefix the return codes somehow so that those two error namespaces don't
clash. As a bonus you can convert defines to enums but I'm not sure that's
worth the bother (prefixing is a simple search & replace so that should be
trivial, well except for the CARRY_ON case).

								Honza
> 
> Signed-off-by: Michael Opdenacker <michael.opdenacker@free-electrons.com>
> ---
>  fs/reiserfs/reiserfs.h | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/fs/reiserfs/reiserfs.h b/fs/reiserfs/reiserfs.h
> index f8adaee..a27d69b 100644
> --- a/fs/reiserfs/reiserfs.h
> +++ b/fs/reiserfs/reiserfs.h
> @@ -597,7 +597,6 @@ void reiserfs_file_buffer(struct buffer_head *bh, int list);
>  extern struct file_system_type reiserfs_fs_type;
>  int reiserfs_resize(struct super_block *, unsigned long);
>  
> -#define CARRY_ON                0
>  #define SCHEDULE_OCCURRED       1
>  
>  #define SB_BUFFER_WITH_SB(s) (REISERFS_SB(s)->s_sbh)
> -- 
> 1.8.1.2
> 
-- 
Jan Kara <jack@suse.cz>
SUSE Labs, CR

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] reiserfs: remove duplicate define
  2013-10-23  9:50 ` Jan Kara
@ 2013-10-24  5:28   ` Michael Opdenacker
  0 siblings, 0 replies; 3+ messages in thread
From: Michael Opdenacker @ 2013-10-24  5:28 UTC (permalink / raw)
  To: Jan Kara; +Cc: viro, reiserfs-devel, linux-kernel, jeffm, marco.stornelli

Hi Jan,

Thank you for your review!

On 10/23/2013 11:50 AM, Jan Kara wrote:
> On Mon 21-10-13 09:54:57, Michael Opdenacker wrote:
>> This patch removes a duplicate define in fs/reiserfs/reiserfs.h
>   Hum, so the duplicate define certainly isn't nice but it's really a
> result of a namespace collision between return codes of two different (sets
> of) functions. So deleting the duplicate isn't really solving the problem,
> just hiding it. So I'd prefer more one of the following two solutions:
> 1) Just ignore the problem. Reiserfs is mostly dead and this isn't likely to
> cause any subtle issues.
> 2) Prefix the return codes somehow so that those two error namespaces don't
> clash. As a bonus you can convert defines to enums but I'm not sure that's
> worth the bother (prefixing is a simple search & replace so that should be
> trivial, well except for the CARRY_ON case).
I like your second solution, adding a prefix to avoid collisions between
two error namespaces, all the more as this looks like a good solution
for similar issues that I found.

Thanks again,

Cheers,

Michael.

-- 
Michael Opdenacker, CEO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
+33 484 258 098


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-10-24  5:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-21  7:54 [PATCH] reiserfs: remove duplicate define Michael Opdenacker
2013-10-23  9:50 ` Jan Kara
2013-10-24  5:28   ` Michael Opdenacker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).