OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
NFSv4.2: LAYOUTSTATS is optional to implement
[sagit-ice-cold/kernel_xiaomi_msm8998.git]
/
fs
/
nfs
/
pnfs.c
diff --git
a/fs/nfs/pnfs.c
b/fs/nfs/pnfs.c
index
40baceb
..
0ba9a02
100644
(file)
--- a/
fs/nfs/pnfs.c
+++ b/
fs/nfs/pnfs.c
@@
-2266,6
+2266,9
@@
pnfs_report_layoutstat(struct inode *inode)
if (!pnfs_enabled_sb(server) || !ld->prepare_layoutstats)
goto out;
+ if (!nfs_server_capable(inode, NFS_CAP_LAYOUTSTATS))
+ goto out;
+
if (test_and_set_bit(NFS_INO_LAYOUTSTATS, &nfsi->flags))
goto out;