mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-26 09:54:22 +03:00
Linux 3.9 compat: Do not depend on f_vfsmnt
torvalds/linux@182be68478 removed the preprocessor definition for f_vfsmnt. The ability to access the mountpoint via ->f_path.mnt has been stable for a long time, so we switch to that. Signed-off-by: Richard Yao <ryao@cs.stonybrook.edu> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
parent
10087fe1fa
commit
bc90df6688
@ -175,7 +175,7 @@ vn_open(const char *path, uio_seg_t seg, int flags, int mode,
|
||||
if (IS_ERR(fp))
|
||||
SRETURN(-PTR_ERR(fp));
|
||||
|
||||
rc = vfs_getattr(fp->f_vfsmnt, fp->f_dentry, &stat);
|
||||
rc = vfs_getattr(fp->f_path.mnt, fp->f_dentry, &stat);
|
||||
if (rc) {
|
||||
filp_close(fp, 0);
|
||||
SRETURN(-rc);
|
||||
@ -602,7 +602,7 @@ vn_getattr(vnode_t *vp, vattr_t *vap, int flags, void *x3, void *x4)
|
||||
|
||||
fp = vp->v_file;
|
||||
|
||||
rc = vfs_getattr(fp->f_vfsmnt, fp->f_dentry, &stat);
|
||||
rc = vfs_getattr(fp->f_path.mnt, fp->f_dentry, &stat);
|
||||
if (rc)
|
||||
SRETURN(-rc);
|
||||
|
||||
@ -754,7 +754,7 @@ vn_getf(int fd)
|
||||
if (vp == NULL)
|
||||
SGOTO(out_fget, rc);
|
||||
|
||||
if (vfs_getattr(lfp->f_vfsmnt, lfp->f_dentry, &stat))
|
||||
if (vfs_getattr(lfp->f_path.mnt, lfp->f_dentry, &stat))
|
||||
SGOTO(out_vnode, rc);
|
||||
|
||||
mutex_enter(&vp->v_lock);
|
||||
|
Loading…
Reference in New Issue
Block a user