X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fntfs%2Fnamei.c;h=c5ab58086c2615692035447a44c3173e49cd0c48;hb=9bf4aaab3e101692164d49b7ca357651eb691cb6;hp=6a62738119622f4b89e4960941189803a6183498;hpb=db216c3d5e4c040e557a50f8f5d35d5c415e8c1c;p=linux-2.6.git diff --git a/fs/ntfs/namei.c b/fs/ntfs/namei.c index 6a6273811..c5ab58086 100644 --- a/fs/ntfs/namei.c +++ b/fs/ntfs/namei.c @@ -92,6 +92,8 @@ * file name in the WIN32 namespace corresponding to the matched short file * name. We then convert the name to the current NLS code page, and proceed * searching for a dentry with this name, etc, as in case 2), above. + * + * Locking: Caller must hold i_sem on the directory. */ static struct dentry *ntfs_lookup(struct inode *dir_ino, struct dentry *dent, struct nameidata *nd) @@ -383,7 +385,7 @@ struct dentry *ntfs_get_parent(struct dentry *child_dent) return ERR_PTR(-ENOMEM); } try_next: - if (unlikely(!lookup_attr(AT_FILE_NAME, NULL, 0, IGNORE_CASE, 0, + if (unlikely(!lookup_attr(AT_FILE_NAME, NULL, 0, CASE_SENSITIVE, 0, NULL, 0, ctx))) { put_attr_search_ctx(ctx); unmap_mft_record(ni);