Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 878ffa9f authored by Anna Schumaker's avatar Anna Schumaker Committed by Trond Myklebust
Browse files

NFS: Use nfs_server_capable() for checknig NFS_CAP_SEEK



This should make the code easier to maintain in the future.

Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent c1b69b1c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);