Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9823f161 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "fscrypt: Fix Data Unit Number used in file encryption"

parents 4ee5a08d f2f20b8a
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -20,12 +20,9 @@

struct fscrypt_ctx;

/* iv sector for security/pfe/pfk_fscrypt.c and f2fs. sizeof is required
 * to accommodate 32 bit targets.
 */
/* iv sector for security/pfe/pfk_fscrypt.c and f2fs */
#define PG_DUN(i, p)                                            \
	((((i)->i_ino & 0xffffffff) << (sizeof((i)->i_ino)/2)) | \
				((p)->index & 0xffffffff))
	(((((u64)(i)->i_ino) & 0xffffffff) << 32) | ((p)->index & 0xffffffff))

struct fscrypt_info;