Re: [PATCH] ext2: conditional removal of NFSD code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Jan 07, 2007 at 12:44:56AM +0300, Alexey Dobriyan wrote:
> > #if defined(CONFIG_EXPORTFS) || defined(CONFIG_EXPORTFS_MODULE)
> > #define set_export_ops(sb, ops)		sb->s_export_op = ops
> > #else
> > #define set_export_ops(sb, ops)		0
> > #endif
> >
> > That way you can get rid of the function pointer from the struct
> > superblock too.
> 
> Exactly! I've just started with filesystems I use.
> 
> it should be wrapped in do {} while 0, of course.

What the hell for?  Repeat after me:
	* do {} while(0) is always inferior to ((void)0)
	* do { expr; } while(0) is always inferior to ((void)(expr))
-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux