commit | 61edc3f3b51d2d3948029197cfff6fef7d94e939 | [log] [tgz] |
---|---|---|
author | Richard Weinberger <richard@nod.at> | Mon Jun 13 00:49:04 2016 +0200 |
committer | Richard Weinberger <richard@nod.at> | Tue Jun 14 10:51:42 2016 +0200 |
tree | 0bcdb8eaa9992c0eabe6ec43b175cf7afa3f1b6a | |
parent | 1a498ec45eeabcb246c3c3f5822ed9ac1b4f70d8 [diff] |
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>