summaryrefslogtreecommitdiff
path: root/fs/ext2/balloc.c
diff options
context:
space:
mode:
authorYe Bin <yebin10@huawei.com>2023-08-15 14:26:09 +0300
committerJan Kara <jack@suse.cz>2023-08-16 18:35:08 +0300
commit2445a8a1922b46c56189203f7fdc1e1cb2a47cdd (patch)
treeef3ed45d1299a96c39d76eb8b9afce1cc5b2dd24 /fs/ext2/balloc.c
parente88076348425b7d0491c8c98d8732a7df8de7aa3 (diff)
downloadlinux-2445a8a1922b46c56189203f7fdc1e1cb2a47cdd.tar.xz
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.c7
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)