]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: Remove btrfs_inode::delayed_iput_count
authorNikolay Borisov <nborisov@suse.com>
Tue, 16 Jan 2018 07:31:58 +0000 (09:31 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Mar 2018 13:09:37 +0000 (15:09 +0200)
commit678c53c181f4e46df72fa66d11de30e1122c197d
tree5d2a749fcc44b7e7d9d8e3c736e98bb031ee6bfb
parentb453a340bf67f627865e684212f111201d2b402a
btrfs: Remove btrfs_inode::delayed_iput_count

delayed_iput_count wa supposed to be used to implement, well, delayed
iput. The idea is that we keep accumulating the number of iputs we do
until eventually the inode is deleted. Turns out we never really
switched the delayed_iput_count from 0 to 1, hence all conditional
code relying on the value of that member being different than 0 was
never executed. This, as it turns out, didn't cause any problem due
to the simple fact that the generic inode's i_count member was always
used to count the number of iputs. So let's just remove the unused
member and all unused code. This patch essentially provides no
functional changes. While at it, also add proper documentation for
btrfs_add_delayed_iput

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ reformat comment ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/btrfs_inode.h
fs/btrfs/inode.c