aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/ext4.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r--fs/ext4/ext4.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index 210e1b53e91f..4cfc2f0edb3f 100644
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
@@ -376,6 +376,12 @@ struct ext4_new_group_data {
376 EXT4_GET_BLOCKS_DIO_CREATE_EXT) 376 EXT4_GET_BLOCKS_DIO_CREATE_EXT)
377 377
378/* 378/*
379 * Flags used by ext4_free_blocks
380 */
381#define EXT4_FREE_BLOCKS_METADATA 0x0001
382#define EXT4_FREE_BLOCKS_FORGET 0x0002
383
384/*
379 * ioctl commands 385 * ioctl commands
380 */ 386 */
381#define EXT4_IOC_GETFLAGS FS_IOC_GETFLAGS 387#define EXT4_IOC_GETFLAGS FS_IOC_GETFLAGS
@@ -1384,8 +1390,8 @@ extern void ext4_discard_preallocations(struct inode *);
1384extern int __init init_ext4_mballoc(void); 1390extern int __init init_ext4_mballoc(void);
1385extern void exit_ext4_mballoc(void); 1391extern void exit_ext4_mballoc(void);
1386extern void ext4_free_blocks(handle_t *handle, struct inode *inode, 1392extern void ext4_free_blocks(handle_t *handle, struct inode *inode,
1387 ext4_fsblk_t block, unsigned long count, 1393 struct buffer_head *bh, ext4_fsblk_t block,
1388 int metadata); 1394 unsigned long count, int flags);
1389extern int ext4_mb_add_groupinfo(struct super_block *sb, 1395extern int ext4_mb_add_groupinfo(struct super_block *sb,
1390 ext4_group_t i, struct ext4_group_desc *desc); 1396 ext4_group_t i, struct ext4_group_desc *desc);
1391extern int ext4_mb_get_buddy_cache_lock(struct super_block *, ext4_group_t); 1397extern int ext4_mb_get_buddy_cache_lock(struct super_block *, ext4_group_t);