Re: [PATCH 2/6] Return 32/64-bit dir name hash according to usage type

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

 



On 08/16/2011 11:22 PM, Andreas Dilger wrote:
+static inline int is_32bit_api(void) +{ +#ifdef
HAVE_IS_COMPAT_TASK +	return is_compat_task();

Looking more closely, this should actually be "#ifdef CONFIG_COMPAT"
in the mainline kernel.

HAVE_IS_COMPAT_TASK is from the Lustre configure script for detecting
which kernel is_compat_task() was added in, since it appeared in some
kernels at 2.6.17 but wasn't in most arches until 2.6.29.

Sorry I didn't notice this earlier.


Oh no, I also should have noticed it :( I even made a small test program [1], but I then never executed it in 32bit mode :(


Cheers,
Bernd

[1]
http://www.pci.uni-heidelberg.de/tc/usr/bernd/downloads/test_seekdir/
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux