diff options
author | Jan Kara <jack@suse.cz> | 2009-06-09 00:17:05 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2009-06-09 00:17:05 -0400 |
commit | 03f5d8bcf094a5e3b501bd2ae1553656efa8d1be (patch) | |
tree | 04644e9008e7357fd87f14fee6404b7c306bc3e9 /fs/ext4/ext4.h | |
parent | 0b8e58a140cae2ba1c4a21ccae7c6c3c939c51f9 (diff) |
ext4: Get rid of EXTEND_DISKSIZE flag of ext4_get_blocks_handle()
Get rid of EXTEND_DISKSIZE flag of ext4_get_blocks_handle(). This
seems to be a relict from some old days and setting disksize in this
function does not make much sense. Currently it was set only by
ext4_getblk(). Since the parameter has some effect only if create ==
1, it is easy to check by grepping through the sources that the three
callers which end up calling ext4_getblk() with create == 1
(ext4_append, ext4_quota_write, ext4_mkdir) do the right thing and set
disksize themselves.
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r-- | fs/ext4/ext4.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index 4311cc85b534..59657ff7b8f4 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h | |||
@@ -323,15 +323,13 @@ struct ext4_new_group_data { | |||
323 | #define EXT4_GET_BLOCKS_UNINIT_EXT 0x0002 | 323 | #define EXT4_GET_BLOCKS_UNINIT_EXT 0x0002 |
324 | #define EXT4_GET_BLOCKS_CREATE_UNINIT_EXT (EXT4_GET_BLOCKS_UNINIT_EXT|\ | 324 | #define EXT4_GET_BLOCKS_CREATE_UNINIT_EXT (EXT4_GET_BLOCKS_UNINIT_EXT|\ |
325 | EXT4_GET_BLOCKS_CREATE) | 325 | EXT4_GET_BLOCKS_CREATE) |
326 | /* Update the ext4_inode_info i_disksize field */ | ||
327 | #define EXT4_GET_BLOCKS_EXTEND_DISKSIZE 0x0004 | ||
328 | /* Caller is from the delayed allocation writeout path, | 326 | /* Caller is from the delayed allocation writeout path, |
329 | so set the magic i_delalloc_reserve_flag after taking the | 327 | so set the magic i_delalloc_reserve_flag after taking the |
330 | inode allocation semaphore for */ | 328 | inode allocation semaphore for */ |
331 | #define EXT4_GET_BLOCKS_DELALLOC_RESERVE 0x0008 | 329 | #define EXT4_GET_BLOCKS_DELALLOC_RESERVE 0x0004 |
332 | /* Call ext4_da_update_reserve_space() after successfully | 330 | /* Call ext4_da_update_reserve_space() after successfully |
333 | allocating the blocks */ | 331 | allocating the blocks */ |
334 | #define EXT4_GET_BLOCKS_UPDATE_RESERVE_SPACE 0x0010 | 332 | #define EXT4_GET_BLOCKS_UPDATE_RESERVE_SPACE 0x0008 |
335 | 333 | ||
336 | 334 | ||
337 | /* | 335 | /* |