summaryrefslogtreecommitdiffstats
path: root/fs/ext4/namei.c
diff options
context:
space:
mode:
authorWang Shilong <wshilong@ddn.com>2014-08-29 23:20:44 -0400
committerTheodore Ts'o <tytso@mit.edu>2014-08-29 23:20:44 -0400
commit52c826db6d4b638677683c79e6c465b99074be74 (patch)
treed8679364db2d1eb7befb4924b80b9628650e35b3 /fs/ext4/namei.c
parentf8b3b59d4d561368cf8c92d50218fc0d5be7cb46 (diff)
downloadop-kernel-dev-52c826db6d4b638677683c79e6c465b99074be74.zip
op-kernel-dev-52c826db6d4b638677683c79e6c465b99074be74.tar.gz
ext4: remove a duplicate call in ext4_init_new_dir()
ext4_journal_get_write_access() has just been called in ext4_append() calling it again here is duplicated. Signed-off-by: Wang Shilong <wshilong@ddn.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/namei.c')
-rw-r--r--fs/ext4/namei.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c
index dec92b6..51705f8 100644
--- a/fs/ext4/namei.c
+++ b/fs/ext4/namei.c
@@ -2378,10 +2378,6 @@ static int ext4_init_new_dir(handle_t *handle, struct inode *dir,
dir_block = ext4_append(handle, inode, &block);
if (IS_ERR(dir_block))
return PTR_ERR(dir_block);
- BUFFER_TRACE(dir_block, "get_write_access");
- err = ext4_journal_get_write_access(handle, dir_block);
- if (err)
- goto out;
de = (struct ext4_dir_entry_2 *)dir_block->b_data;
ext4_init_dot_dotdot(inode, de, blocksize, csum_size, dir->i_ino, 0);
set_nlink(inode, 2);
OpenPOWER on IntegriCloud