X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=fs%2Fpnode.c;h=d42514e32380b5edb38f7985069efe8d8ccc80fa;hb=24562486be76cf223b8d911f45e1d26eb3364b13;hp=8066b8dd748f6800a09694ee62c2a0b33c97d20a;hpb=70057a5a61a9c703aac0cc51811de8d3384d2889;p=karo-tx-linux.git diff --git a/fs/pnode.c b/fs/pnode.c index 8066b8dd748f..d42514e32380 100644 --- a/fs/pnode.c +++ b/fs/pnode.c @@ -288,7 +288,7 @@ out: */ static inline int do_refcount_check(struct vfsmount *mnt, int count) { - int mycount = atomic_read(&mnt->mnt_count) - mnt->mnt_ghosts; + int mycount = mnt_get_count(mnt) - mnt->mnt_ghosts; return (mycount > count); } @@ -300,7 +300,7 @@ static inline int do_refcount_check(struct vfsmount *mnt, int count) * Check if any of these mounts that **do not have submounts** * have more references than 'refcnt'. If so return busy. * - * vfsmount lock must be held for read or write + * vfsmount lock must be held for write */ int propagate_mount_busy(struct vfsmount *mnt, int refcnt) {