]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/reiserfs/xattr.c
Merge branch 'uninit-var' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik...
[linux-2.6-omap-h63xx.git] / fs / reiserfs / xattr.c
index c8178b7b92123d3474fb40979ee2c596c432d099..bf6e58214538e8f154420d247d199a681785db9a 100644 (file)
@@ -68,7 +68,7 @@ static struct dentry *get_xa_root(struct super_block *sb, int flags)
        if (!privroot)
                return ERR_PTR(-ENODATA);
 
-       mutex_lock(&privroot->d_inode->i_mutex);
+       mutex_lock_nested(&privroot->d_inode->i_mutex, I_MUTEX_XATTR);
        if (REISERFS_SB(sb)->xattr_root) {
                xaroot = dget(REISERFS_SB(sb)->xattr_root);
                goto out;
@@ -410,11 +410,7 @@ static struct page *reiserfs_get_page(struct inode *dir, unsigned long n)
        mapping_set_gfp_mask(mapping, GFP_NOFS);
        page = read_mapping_page(mapping, n, NULL);
        if (!IS_ERR(page)) {
-               wait_on_page_locked(page);
                kmap(page);
-               if (!PageUptodate(page))
-                       goto fail;
-
                if (PageError(page))
                        goto fail;
        }