wok-6.x rev 20228

grub: add ext4 patch (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Mar 01 12:06:16 2018 +0100 (2018-03-01)
parents b4680310d62a
children 8570053d906b
files grub/stuff/ext3_256byte_inode+ext4.diff
line diff
     1.1 --- a/grub/stuff/ext3_256byte_inode+ext4.diff	Thu Mar 01 11:55:46 2018 +0100
     1.2 +++ b/grub/stuff/ext3_256byte_inode+ext4.diff	Thu Mar 01 12:06:16 2018 +0100
     1.3 @@ -262,7 +262,7 @@
     1.4   
     1.5   /* ext2/super.c */
     1.6  -#define log2(n) ffz(~(n))
     1.7 -+//#define log2(n) ffz(~(n))
     1.8 ++#define log2(n) ffz(~(n))
     1.9   
    1.10   #define EXT2_SUPER_MAGIC      0xEF53	/* include/linux/ext2_fs.h */
    1.11   #define EXT2_ROOT_INO              2	/* include/linux/ext2_fs.h */
    1.12 @@ -344,14 +344,14 @@
    1.13  -:	   "r" (~word));
    1.14  -  return word;
    1.15  -}
    1.16 -+//static __inline__ unsigned long
    1.17 -+//ffz (unsigned long word)
    1.18 -+//{
    1.19 -+//  __asm__ ("bsfl %1,%0"
    1.20 -+//:	   "=r" (word)
    1.21 -+//:	   "r" (~word));
    1.22 -+//  return word;
    1.23 -+//}
    1.24 ++static __inline__ unsigned long
    1.25 ++ffz (unsigned long word)
    1.26 ++{
    1.27 ++  __asm__ ("bsfl %1,%0"
    1.28 ++:	   "=r" (word)
    1.29 ++:	   "r" (~word));
    1.30 ++  return word;
    1.31 ++}
    1.32   
    1.33   /* check filesystem types and read superblock into memory buffer */
    1.34   int