projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1b69b1
)
NFS: Use nfs_server_capable() for checknig NFS_CAP_SEEK
author
Anna Schumaker
<Anna.Schumaker@netapp.com>
Thu, 23 Oct 2014 18:00:54 +0000
(14:00 -0400)
committer
Trond Myklebust
<trond.myklebust@primarydata.com>
Mon, 24 Nov 2014 17:49:13 +0000
(12:49 -0500)
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>
fs/nfs/nfs42proc.c
patch
|
blob
|
history
diff --git
a/fs/nfs/nfs42proc.c
b/fs/nfs/nfs42proc.c
index 0886f1db59179d1e0414d37a5012714cbdf334e3..056f5aafecc1dbd4c14949dc38b5baa1e0f49f3d 100644
(file)
--- 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);