jbd2: fix journal checksum feature flag handling
[firefly-linux-kernel-4.4.55.git] / fs / ext4 / xattr.c
index e7387337060c96f06fe9360966992bb286c20496..da4df703c211bd95bfb677ba005c3801e408b645 100644 (file)
@@ -899,14 +899,8 @@ inserted:
                        if (!(ext4_test_inode_flag(inode, EXT4_INODE_EXTENTS)))
                                goal = goal & EXT4_MAX_BLOCK_FILE_PHYS;
 
-                       /*
-                        * take i_data_sem because we will test
-                        * i_delalloc_reserved_flag in ext4_mb_new_blocks
-                        */
-                       down_read(&EXT4_I(inode)->i_data_sem);
                        block = ext4_new_meta_blocks(handle, inode, goal, 0,
                                                     NULL, &error);
-                       up_read((&EXT4_I(inode)->i_data_sem));
                        if (error)
                                goto cleanup;