]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ext4: mark possibly unused variable in ext4_mb_normalize_request()
authorCurt Wohlgemuth <curtw@google.com>
Mon, 20 Feb 2012 22:53:03 +0000 (17:53 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 20 Feb 2012 22:53:03 +0000 (17:53 -0500)
The 'orig_size' local variable is only used in a call to
mb_debug().  Mark it with '__maybe_unused'.

Signed-off-by: Curt Wohlgemuth <curtw@google.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/mballoc.c

index 2e467718d413e8c20f8bcc47d29917df44b65ee7..8e01214a4421bca8843accaa9930a1d33a506edb 100644 (file)
@@ -2858,7 +2858,8 @@ ext4_mb_normalize_request(struct ext4_allocation_context *ac,
        struct ext4_sb_info *sbi = EXT4_SB(ac->ac_sb);
        int bsbits, max;
        ext4_lblk_t end;
-       loff_t size, orig_size, start_off;
+       loff_t size, start_off;
+       loff_t orig_size __maybe_unused;
        ext4_lblk_t start;
        struct ext4_inode_info *ei = EXT4_I(ac->ac_inode);
        struct ext4_prealloc_space *pa;