diff options
author | Richard Weinberger <richard@nod.at> | 2019-04-05 00:34:38 +0200 |
---|---|---|
committer | Stefan Agner <stefan.agner@toradex.com> | 2019-04-09 18:11:47 +0200 |
commit | 93bf1d7cbe98985ba4540b6889011ebbb742da5b (patch) | |
tree | b62f3bb62fa51666edf0ea1455ae2969dfece622 /drivers/pwm/pwm-sun4i.c | |
parent | 795e223e5b157bdde47ff45f2fd06e83ac9935cc (diff) |
ubifs: Limit number of xattrs per inode
Since we have to write one deletion inode per xattr
into the journal, limit the max number of xattrs.
In theory UBIFS supported up to 65535 xattrs per inode.
But this never worked correctly, expect no powercuts happened.
Now we support only as many xattrs as we can store in 50% of a
LEB.
Even for tiny flashes this allows dozens of xattrs per inode,
which is for an embedded filesystem still fine.
In case someone has existing inodes with much more xattrs, it is
still possible to delete them.
UBIFS will fall back to an non-atomic deletion mode.
Reported-by: Stefan Agner <stefan@agner.ch>
Fixes: 1e51764a3c2ac ("UBIFS: add new flash file system")
Signed-off-by: Richard Weinberger <richard@nod.at>
[backport to Linux 4.4]
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Diffstat (limited to 'drivers/pwm/pwm-sun4i.c')
0 files changed, 0 insertions, 0 deletions