File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -911,7 +911,7 @@ int ext4_da_write_inline_data_begin(struct address_space *mapping,
911
911
struct page * * pagep ,
912
912
void * * fsdata )
913
913
{
914
- int ret , inline_size ;
914
+ int ret ;
915
915
handle_t * handle ;
916
916
struct page * page ;
917
917
struct ext4_iloc iloc ;
@@ -928,14 +928,9 @@ int ext4_da_write_inline_data_begin(struct address_space *mapping,
928
928
goto out ;
929
929
}
930
930
931
- inline_size = ext4_get_max_inline_size (inode );
932
-
933
- ret = - ENOSPC ;
934
- if (inline_size >= pos + len ) {
935
- ret = ext4_prepare_inline_data (handle , inode , pos + len );
936
- if (ret && ret != - ENOSPC )
937
- goto out_journal ;
938
- }
931
+ ret = ext4_prepare_inline_data (handle , inode , pos + len );
932
+ if (ret && ret != - ENOSPC )
933
+ goto out_journal ;
939
934
940
935
/*
941
936
* We cannot recurse into the filesystem as the transaction
You can’t perform that action at this time.
0 commit comments