diff options
author | Ye Bin <yebin10@huawei.com> | 2023-08-15 19:26:09 +0800 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2023-08-16 17:35:08 +0200 |
commit | 2445a8a1922b46c56189203f7fdc1e1cb2a47cdd (patch) | |
tree | ef3ed45d1299a96c39d76eb8b9afce1cc5b2dd24 /fs/ext2/balloc.c | |
parent | e88076348425b7d0491c8c98d8732a7df8de7aa3 (diff) |
ext2: remove ext2_new_block()
Now, only xattr allocate block use ext2_new_block(), so just opencode it in
the xattr code.
Signed-off-by: Ye Bin <yebin10@huawei.com>
Message-Id: <20230815112612.221145-2-yebin10@huawei.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/ext2/balloc.c')
-rw-r--r-- | fs/ext2/balloc.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/fs/ext2/balloc.c b/fs/ext2/balloc.c index eca60b747c6b..ddaa823fc7f5 100644 --- a/fs/ext2/balloc.c +++ b/fs/ext2/balloc.c @@ -1431,13 +1431,6 @@ out: return 0; } -ext2_fsblk_t ext2_new_block(struct inode *inode, unsigned long goal, int *errp) -{ - unsigned long count = 1; - - return ext2_new_blocks(inode, goal, &count, errp); -} - #ifdef EXT2FS_DEBUG unsigned long ext2_count_free(struct buffer_head *map, unsigned int numchars) |