xattr.c (78ab59fee07f22464f32eafebab2bd97ba94ff2d) | xattr.c (d3624466b56dd5b1886c1dff500525b544c19c83) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * 4 * Copyright (C) 2019-2021 Paragon Software GmbH, All rights reserved. 5 * 6 */ 7 8#include <linux/blkdev.h> --- 12 unchanged lines hidden (view full) --- 21#define SYSTEM_DOS_ATTRIB "system.dos_attrib" 22#define SYSTEM_NTFS_ATTRIB "system.ntfs_attrib" 23#define SYSTEM_NTFS_SECURITY "system.ntfs_security" 24// clang-format on 25 26static inline size_t unpacked_ea_size(const struct EA_FULL *ea) 27{ 28 return ea->size ? le32_to_cpu(ea->size) | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * 4 * Copyright (C) 2019-2021 Paragon Software GmbH, All rights reserved. 5 * 6 */ 7 8#include <linux/blkdev.h> --- 12 unchanged lines hidden (view full) --- 21#define SYSTEM_DOS_ATTRIB "system.dos_attrib" 22#define SYSTEM_NTFS_ATTRIB "system.ntfs_attrib" 23#define SYSTEM_NTFS_SECURITY "system.ntfs_security" 24// clang-format on 25 26static inline size_t unpacked_ea_size(const struct EA_FULL *ea) 27{ 28 return ea->size ? le32_to_cpu(ea->size) |
29 : ALIGN(struct_size( 30 ea, name, 31 1 + ea->name_len + le16_to_cpu(ea->elength)), 4); | 29 : ALIGN(struct_size(ea, name, 30 1 + ea->name_len + 31 le16_to_cpu(ea->elength)), 32 4); |
32} 33 34static inline size_t packed_ea_size(const struct EA_FULL *ea) 35{ 36 return struct_size(ea, name, 37 1 + ea->name_len + le16_to_cpu(ea->elength)) - 38 offsetof(struct EA_FULL, flags); 39} --- 1079 unchanged lines hidden --- | 33} 34 35static inline size_t packed_ea_size(const struct EA_FULL *ea) 36{ 37 return struct_size(ea, name, 38 1 + ea->name_len + le16_to_cpu(ea->elength)) - 39 offsetof(struct EA_FULL, flags); 40} --- 1079 unchanged lines hidden --- |