Skip to content

Commit 8037da3

Browse files
committed
udf: Drop load_block_bitmap() wrapper
The wrapper is completely pointless as all the checks are already done in __load_block_bitmap(). Just drop it and rename __load_block_bitmap(). Link: https://patch.msgid.link/[email protected] Signed-off-by: Jan Kara <[email protected]>
1 parent a90d447 commit 8037da3

File tree

1 file changed

+3
-20
lines changed

1 file changed

+3
-20
lines changed

fs/udf/balloc.c

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ static int read_block_bitmap(struct super_block *sb,
7373
return 0;
7474
}
7575

76-
static int __load_block_bitmap(struct super_block *sb,
77-
struct udf_bitmap *bitmap,
78-
unsigned int block_group)
76+
static int load_block_bitmap(struct super_block *sb,
77+
struct udf_bitmap *bitmap,
78+
unsigned int block_group)
7979
{
8080
int retval = 0;
8181
int nr_groups = bitmap->s_nr_groups;
@@ -102,23 +102,6 @@ static int __load_block_bitmap(struct super_block *sb,
102102
return block_group;
103103
}
104104

105-
static inline int load_block_bitmap(struct super_block *sb,
106-
struct udf_bitmap *bitmap,
107-
unsigned int block_group)
108-
{
109-
int slot;
110-
111-
slot = __load_block_bitmap(sb, bitmap, block_group);
112-
113-
if (slot < 0)
114-
return slot;
115-
116-
if (!bitmap->s_block_bitmap[slot])
117-
return -EIO;
118-
119-
return slot;
120-
}
121-
122105
static void udf_add_free_space(struct super_block *sb, u16 partition, u32 cnt)
123106
{
124107
struct udf_sb_info *sbi = UDF_SB(sb);

0 commit comments

Comments
 (0)