add patch reduce-contention-on-s_orphan_lock
[ext4-patch-queue.git] / silence-sparse-check-warning-for-function-ext4_trim_extent
blob4a7396d9dcf57172d9508466c72f29b23a1ff0b9
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>
13 ---
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:
22   */
23  static int ext4_trim_extent(struct super_block *sb, int start, int count,
24                              ext4_group_t group, struct ext4_buddy *e4b)
25 +__releases(bitlock)
26 +__acquires(bitlock)
27  {
28         struct ext4_free_extent ex;
29         int ret = 0;