diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2009-08-28 21:43:15 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2009-08-28 21:43:15 -0400 |
commit | 2c94eb86c66e1eaaa1e7d8a2120f4fad5e7e7736 (patch) | |
tree | 71f76a0ca097b887986ea0499401c3631f15a0e3 /fs | |
parent | 55ad63bf3a30936aced50f13452735c2f58b234c (diff) |
ext4: Allow rename to create more than EXT4_LINK_MAX subdirectories
Use EXT4_DIR_LINK_MAX so that rename() can move a directory into new
parent directory without running into the EXT4_LINK_MAX limit.
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ext4/namei.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c index fea14dbd3c22..ba91bd0f7916 100644 --- a/fs/ext4/namei.c +++ b/fs/ext4/namei.c | |||
@@ -2421,7 +2421,7 @@ static int ext4_rename(struct inode *old_dir, struct dentry *old_dentry, | |||
2421 | goto end_rename; | 2421 | goto end_rename; |
2422 | retval = -EMLINK; | 2422 | retval = -EMLINK; |
2423 | if (!new_inode && new_dir != old_dir && | 2423 | if (!new_inode && new_dir != old_dir && |
2424 | new_dir->i_nlink >= EXT4_LINK_MAX) | 2424 | EXT4_DIR_LINK_MAX(new_dir)) |
2425 | goto end_rename; | 2425 | goto end_rename; |
2426 | } | 2426 | } |
2427 | if (!new_bh) { | 2427 | if (!new_bh) { |