diff options
Diffstat (limited to 'fs/ext3/namei.c')
-rw-r--r-- | fs/ext3/namei.c | 9 |
1 files changed, 6 insertions, 3 deletions
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: | |||
922 | bh = ext3_getblk(NULL, dir, b++, 0, &err); | 922 | bh = ext3_getblk(NULL, dir, b++, 0, &err); |
923 | bh_use[ra_max] = bh; | 923 | bh_use[ra_max] = bh; |
924 | if (bh) | 924 | if (bh) |
925 | ll_rw_block(READ_META, 1, &bh); | 925 | ll_rw_block(READ | REQ_META | REQ_PRIO, |
926 | 1, &bh); | ||
926 | } | 927 | } |
927 | } | 928 | } |
928 | if ((bh = bh_use[ra_ptr++]) == NULL) | 929 | if ((bh = bh_use[ra_ptr++]) == NULL) |
@@ -2209,9 +2210,11 @@ static int ext3_symlink (struct inode * dir, | |||
2209 | /* | 2210 | /* |
2210 | * For non-fast symlinks, we just allocate inode and put it on | 2211 | * For non-fast symlinks, we just allocate inode and put it on |
2211 | * orphan list in the first transaction => we need bitmap, | 2212 | * orphan list in the first transaction => we need bitmap, |
2212 | * group descriptor, sb, inode block, quota blocks. | 2213 | * group descriptor, sb, inode block, quota blocks, and |
2214 | * possibly selinux xattr blocks. | ||
2213 | */ | 2215 | */ |
2214 | credits = 4 + EXT3_MAXQUOTAS_INIT_BLOCKS(dir->i_sb); | 2216 | credits = 4 + EXT3_MAXQUOTAS_INIT_BLOCKS(dir->i_sb) + |
2217 | EXT3_XATTR_TRANS_BLOCKS; | ||
2215 | } else { | 2218 | } else { |
2216 | /* | 2219 | /* |
2217 | * Fast symlink. We have to add entry to directory | 2220 | * Fast symlink. We have to add entry to directory |