diff options
author | Olaf Faaland <[email protected]> | 2017-03-07 13:18:53 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2017-03-20 17:43:39 -0700 |
commit | 94b1ab2ae01e9ee642aee87dd1a73e8d63629372 (patch) | |
tree | 80d300102f31abe29242d71d0dbefe27b21846b6 /README.markdown | |
parent | e0aacd9b9767a877ad61b74cf87c0da856bb1e8a (diff) |
Linux 4.11 compat: vfs_getattr() takes 4 args
There are changes to vfs_getattr() in torvalds/linux@a528d35. The new
interface is:
int vfs_getattr(const struct path *path, struct kstat *stat,
u32 request_mask, unsigned int query_flags)
The request_mask argument indicates which field(s) the caller intends to
use. Fields the caller does not specify via request_mask may be set in
the returned struct anyway, but their values may be approximate.
The query_flags argument indicates whether the filesystem must update
the attributes from the backing store.
This patch uses the query_flags which result in vfs_getattr behaving the same
as it did with the 2-argument version which the kernel provided before
Linux 4.11.
Members blksize and blocks are now always the same size regardless of
arch. They match the size of the equivalent members in vnode_t.
The configure checks are modified to ensure that the appropriate
vfs_getattr() interface is used.
A more complete fix, removing the ZFS dependency on vfs_getattr()
entirely, is deferred as it is a much larger project.
Reviewed-by: Chunwei Chen <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Olaf Faaland <[email protected]>
Closes #608
Diffstat (limited to 'README.markdown')
0 files changed, 0 insertions, 0 deletions