Skip to content

Commit

Permalink
NFS: Use nfs_server_capable() for checknig NFS_CAP_SEEK
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Anna Schumaker authored and Trond Myklebust committed Nov 24, 2014
1 parent c1b69b1 commit 878ffa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfs/nfs42proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 878ffa9

Please sign in to comment.