From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-lf0-x243.google.com ([2a00:1450:4010:c07::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cpwXd-0002qA-U8 for barebox@lists.infradead.org; Mon, 20 Mar 2017 12:36:08 +0000 Received: by mail-lf0-x243.google.com with SMTP id v2so10138651lfi.2 for ; Mon, 20 Mar 2017 05:35:47 -0700 (PDT) From: Antony Pavlov Date: Mon, 20 Mar 2017 15:35:31 +0300 Message-Id: <20170320123532.24059-7-antonynpavlov@gmail.com> In-Reply-To: <20170320123532.24059-1-antonynpavlov@gmail.com> References: <20170320123532.24059-1-antonynpavlov@gmail.com> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 6/7] ext4: determine group descriptor size for 64bit feature To: barebox@lists.infradead.org VGhpcyBpcyBhbiBhZG9wdGlvbiBvZiB0aGUgVS1Cb290IGNvbW1pdHMKCnwgY29tbWl0IGZjMjE0 ZWY5MDkxMDE1OWYzM2ZiZTkyYTZjYjc3ODM5YTI3ZmE4YTYKfCBBdXRob3I6IFN0ZWZhbiBCcsO8 bnMgPHN0ZWZhbi5icnVlbnNAcnd0aC1hYWNoZW4uZGU+CnwgRGF0ZTogICBTYXQgU2VwIDE3IDAy OjEwOjA3IDIwMTYgKzAyMDAKfAp8ICAgICBleHQ0OiBkZXRlcm1pbmUgZ3JvdXAgZGVzY3JpcHRv ciBzaXplIGZvciA2NGJpdCBmZWF0dXJlCnwKfCAgICAgSWYgRVhUNF9GRUFUVVJFX0lOQ09NUEFU XzY0QklUIGlzIHNldCwgdGhlIGRlc2NyaXB0b3IgY2FuIGJlIHJlYWQgZnJvbQp8ICAgICB0aGUg c3VwZXJibG9ja3MsIG90aGVyd2lzZSBp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