diff options
author | Anand Jain <Anand.Jain@oracle.com> | 2018-02-13 12:35:44 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-03-26 15:09:33 +0200 |
commit | ba020491c8d08ec500ce1ddfd0715168a0ab9241 (patch) | |
tree | 6d3eb23b98f8d536a20eed3c0c95af0dc4241d2a /fs/btrfs/extent_io.c | |
parent | 70458a58190ab3aa0267e539cac7c8dcb6dc5dd9 (diff) | |
download | op-kernel-dev-ba020491c8d08ec500ce1ddfd0715168a0ab9241.zip op-kernel-dev-ba020491c8d08ec500ce1ddfd0715168a0ab9241.tar.gz |
btrfs: extent_buffer_uptodate() make it static and inline
extent_buffer_uptodate() is a trivial wrapper around test_bit() and
nothing else. So make it static and inline, save on code space and call
indirection.
Before:
text data bss dec hex filename
1131257 82898 18992 1233147 12d0fb fs/btrfs/btrfs.ko
After:
text data bss dec hex filename
1131090 82898 18992 1232980 12d054 fs/btrfs/btrfs.ko
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r-- | fs/btrfs/extent_io.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 5bd7ece..4e73705 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -5230,11 +5230,6 @@ void set_extent_buffer_uptodate(struct extent_buffer *eb) } } -int extent_buffer_uptodate(struct extent_buffer *eb) -{ - return test_bit(EXTENT_BUFFER_UPTODATE, &eb->bflags); -} - int read_extent_buffer_pages(struct extent_io_tree *tree, struct extent_buffer *eb, int wait, int mirror_num) { |