/* This shouldn't be used directly ouside of the VFS. It does not guarantee that the filesystem will stay r/w, just that it is right  */
int __mnt_is_readonly(struct vfsmount *mnt)
/* This shouldn't be used directly ouside of the VFS. It does not guarantee that the filesystem will stay r/w, just that it is right  */
int __mnt_is_readonly(struct vfsmount *mnt)
{
	if (mnt->mnt_flags & MNT_READONLY)
		return 1;
	if (mnt->mnt_sb->s_flags & MS_RDONLY)
		return 1;
	return 0;
}