1 ext4: silence sparse check warning for function ext4_trim_extent
3 From: jon ernst <jonernst07@gmail.com>
5 This fixes the following sparse warning:
7 CHECK fs/ext4/mballoc.c
8 fs/ext4/mballoc.c:5019:9: warning: context imbalance in
9 'ext4_trim_extent' - unexpected unlock
11 Signed-off-by: "Jon Ernst" <jonernst07@gmail.com>
12 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
14 fs/ext4/mballoc.c | 2 ++
15 1 file changed, 2 insertions(+)
17 diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
18 index 73ccbb3..c8238a2 100644
19 --- a/fs/ext4/mballoc.c
20 +++ b/fs/ext4/mballoc.c
21 @@ -5016,6 +5016,8 @@ error_return:
23 static int ext4_trim_extent(struct super_block *sb, int start, int count,
24 ext4_group_t group, struct ext4_buddy *e4b)
28 struct ext4_free_extent ex;