diff --git a/fs/ceph/inode.c b/fs/ceph/inode.c index 4e7610357d89..1b0a1ac6ed74 100644 --- a/fs/ceph/inode.c +++ b/fs/ceph/inode.c @@ -2970,7 +2970,7 @@ int ceph_permission(struct mnt_idmap *idmap, struct inode *inode, err = ceph_do_getattr(inode, CEPH_CAP_AUTH_SHARED, false); if (!err) - err = generic_permission(&nop_mnt_idmap, inode, mask); + err = generic_permission(idmap, inode, mask); return err; }