OpenVZ Forum


Home » Mailing lists » Devel » simple_pin_fs issue
simple_pin_fs issue [message #521] Tue, 13 December 2005 06:22
vaverin is currently offline  vaverin
Messages: 708
Registered: September 2005
Senior Member
it is 022stab054.1 kernel

diff -uprN linux-2.6.8.1.orig/fs/libfs.c linux-2.6.8.1-ve022stab054/fs/libfs.c
--- linux-2.6.8.1.orig/fs/libfs.c 2004-08-14 14:54:47.000000000 +0400
+++ linux-2.6.8.1-ve022stab054/fs/libfs.c 2005-12-12 17:51:20.000000000 +0300
@@ -412,10 +412,13 @@ static spinlock_t pin_fs_lock = SPIN_LOC
int simple_pin_fs(char *name, struct vfsmount **mount, int *count)
{
struct vfsmount *mnt = NULL;
+ struct file_system_type *fstype;
spin_lock(&pin_fs_lock);
if (unlikely(!*mount)) {
spin_unlock(&pin_fs_lock);
- mnt = do_kern_mount(name, 0, name, NULL);
+ fstype = get_fs_type(name);
+ mnt = do_kern_mount(fstype, 0, name, NULL);
+ put_filesystem(fstype);
if (IS_ERR(mnt))
return PTR_ERR(mnt);
spin_lock(&pin_fs_lock);


fstype is nod checked. is it a bug?
Previous Topic: Re: [Vserver] VServer vs OpenVZ
Next Topic: [PATCH] fix of BUG_ON in drop_buffers
Goto Forum:
  


Current Time: Mon Aug 25 09:12:28 GMT 2025

Total time taken to generate the page: 0.06923 seconds