Re: [PATCH] e4defrag: choose the best available posix_fadvise variant

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

 



Hi Ted,

On Thu, Jan 02, 2014 at 07:47:10PM -0500, Theodore Ts'o wrote:
> On Thu, Jan 02, 2014 at 08:43:54AM +0200, Baruch Siach wrote:
> > Use posix_fadvise64() when available. This allows 64bit offsets on 32bit
> > systems.
> > 
> > Rename the internal posix_fadvise() implementation to avoid collision with the
> > C library signature that is sometimes present event when the implementation
> > itself is not. This fixes build errors like:
> > 
> > e4defrag.c:189:2: warning: #warning Using locally defined posix_fadvise interface. [-Wcpp
> > e4defrag.c:203:12: error: conflicting types for ‘posix_fadvise’
> > 
> > Signed-off-by: Baruch Siach <baruch@xxxxxxxxxx>
> 
> Thanks, applied.

Thanks. You seem to have applied v1 of this patch without the #else comment 
fix. I'll fix this up in a follow up patch. Please push your tree so I can 
reference this commit in the log.

Another problem with this patch is that it doesn't takes into account the 
problem of passing 64bit values on 32bit architectures. See the discussion 
under NOTES in the syscall(2) man page for more information on that. I'll try 
to address this in another patch if you think it's worth it. The solution is 
likely to look quite ugly when taking the arch specific alignment requirements 
also into account. The alternative is to require C library support for 
fadvise64_64 on 32bit architectures.

What do you think?

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch@xxxxxxxxxx - tel: +972.2.679.5364, http://www.tkos.co.il -
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux