Whamcloud - gitweb
b=7049
[fs/lustre-release.git] / lustre / kernel_patches / patches / lookup_bdev_init_intent.patch
1 Index: linux-2.6.7/fs/block_dev.c
2 ===================================================================
3 --- linux-2.6.7.orig/fs/block_dev.c     2004-06-16 13:20:26.000000000 +0800
4 +++ linux-2.6.7/fs/block_dev.c  2004-08-30 17:36:57.000000000 +0800
5 @@ -832,6 +832,7 @@
6         if (!path || !*path)
7                 return ERR_PTR(-EINVAL);
8  
9 +       intent_init(&nd.intent, IT_LOOKUP);
10         error = path_lookup(path, LOOKUP_FOLLOW, &nd);
11         if (error)
12                 return ERR_PTR(error);