projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55ad63b
)
ext4: Allow rename to create more than EXT4_LINK_MAX subdirectories
author
Aneesh Kumar K.V
<aneesh.kumar@linux.vnet.ibm.com>
Sat, 29 Aug 2009 01:43:15 +0000
(21:43 -0400)
committer
Theodore Ts'o
<tytso@mit.edu>
Sat, 29 Aug 2009 01:43:15 +0000
(21:43 -0400)
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>
fs/ext4/namei.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ext4/namei.c
b/fs/ext4/namei.c
index fea14dbd3c224ff74511df76941ad1522edcf9d0..ba91bd0f791613f2065293dc1059ac36534a1c34 100644
(file)
--- 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,
goto end_rename;
retval = -EMLINK;
if (!new_inode && new_dir != old_dir &&
-
new_dir->i_nlink >= EXT4_LINK_MAX
)
+
EXT4_DIR_LINK_MAX(new_dir)
)
goto end_rename;
}
if (!new_bh) {