mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-22 08:49:45 +00:00
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>
This commit is contained in:
parent
c1b69b1ca1
commit
878ffa9f85
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue