X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=fs%2Fext3%2Fnamei.c;h=0629e09f65115798575e2fb7ea2a293aa41e0a39;hb=65299a3b788bd274bed92f9fa3232082c9f3ea70;hp=6e18a0b7750db81d5900ad813614e8455bf4b82d;hpb=a5d5a914770a81a1f775be2ee35b9fa8fd19d381;p=uclinux-h8%2Flinux.git diff --git a/fs/ext3/namei.c b/fs/ext3/namei.c index 6e18a0b7750d..0629e09f6511 100644 --- a/fs/ext3/namei.c +++ b/fs/ext3/namei.c @@ -922,7 +922,8 @@ restart: bh = ext3_getblk(NULL, dir, b++, 0, &err); bh_use[ra_max] = bh; if (bh) - ll_rw_block(READ_META, 1, &bh); + ll_rw_block(READ | REQ_META | REQ_PRIO, + 1, &bh); } } if ((bh = bh_use[ra_ptr++]) == NULL) @@ -2209,9 +2210,11 @@ static int ext3_symlink (struct inode * dir, /* * For non-fast symlinks, we just allocate inode and put it on * orphan list in the first transaction => we need bitmap, - * group descriptor, sb, inode block, quota blocks. + * group descriptor, sb, inode block, quota blocks, and + * possibly selinux xattr blocks. */ - credits = 4 + EXT3_MAXQUOTAS_INIT_BLOCKS(dir->i_sb); + credits = 4 + EXT3_MAXQUOTAS_INIT_BLOCKS(dir->i_sb) + + EXT3_XATTR_TRANS_BLOCKS; } else { /* * Fast symlink. We have to add entry to directory