Searched hist:"61 edc3f3b51d2d3948029197cfff6fef7d94e939" (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/drivers/mtd/ubi/ |
H A D | kapi.c | diff 61edc3f3b51d2d3948029197cfff6fef7d94e939 Sun Jun 12 17:49:04 CDT 2016 Richard Weinberger <richard@nod.at> ubi: Don't bypass ->getattr()
Directly accessing inode fields bypasses ->getattr() and can cause problems when the underlying filesystem does not have the default ->getattr() implementation.
So instead of obtaining the backing inode via d_backing_inode() use vfs_getattr() and obtain what we need from the kstat struct.
Cc: Al Viro <viro@zeniv.linux.org.uk> Reported-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Richard Weinberger <richard@nod.at>
|
H A D | build.c | diff 61edc3f3b51d2d3948029197cfff6fef7d94e939 Sun Jun 12 17:49:04 CDT 2016 Richard Weinberger <richard@nod.at> ubi: Don't bypass ->getattr()
Directly accessing inode fields bypasses ->getattr() and can cause problems when the underlying filesystem does not have the default ->getattr() implementation.
So instead of obtaining the backing inode via d_backing_inode() use vfs_getattr() and obtain what we need from the kstat struct.
Cc: Al Viro <viro@zeniv.linux.org.uk> Reported-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Richard Weinberger <richard@nod.at>
|