From: Anna Schumaker Date: Thu, 23 Oct 2014 18:00:54 +0000 (-0400) Subject: NFS: Use nfs_server_capable() for checknig NFS_CAP_SEEK X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=878ffa9f855e84d35d950f1abeb5a37b8435baea;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Trond Myklebust --- diff --git a/fs/nfs/nfs42proc.c b/fs/nfs/nfs42proc.c index 0886f1db5917..056f5aafecc1 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);