summaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorAnna Schumaker <Anna.Schumaker@netapp.com>2014-10-23 14:00:54 -0400
committerTrond Myklebust <trond.myklebust@primarydata.com>2014-11-24 12:49:13 -0500
commit878ffa9f855e84d35d950f1abeb5a37b8435baea (patch)
treeb08c4741239a07b2a404999a45e4a6125b01e116 /fs/nfs
parentc1b69b1ca1f5a8669034348cee9e495fde99bf69 (diff)
downloadop-kernel-dev-878ffa9f855e84d35d950f1abeb5a37b8435baea.zip
op-kernel-dev-878ffa9f855e84d35d950f1abeb5a37b8435baea.tar.gz
NFS: Use nfs_server_capable() for checknig NFS_CAP_SEEK
This should make the code easier to maintain in the future. Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/nfs42proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs42proc.c b/fs/nfs/nfs42proc.c
index 0886f1d..056f5aa 100644
--- a/fs/nfs/nfs42proc.c
+++ b/fs/nfs/nfs42proc.c
@@ -50,7 +50,7 @@ loff_t nfs42_proc_llseek(struct file *filep, loff_t offset, int whence)
struct nfs_server *server = NFS_SERVER(inode);
int status;
- if (!(server->caps & NFS_CAP_SEEK))
+ if (!nfs_server_capable(inode, NFS_CAP_SEEK))
return -ENOTSUPP;
status = nfs42_set_rw_stateid(&args.sa_stateid, filep, FMODE_READ);
OpenPOWER on IntegriCloud