Re: [PATCH 2/2] Btrfs: kill root from btrfs_is_free_space_inode

2012-07-17 Thread David Sterba
On Tue, Jul 10, 2012 at 07:28:39PM +0800, Liu Bo wrote: Since root can be fetched via BTRFS_I macro directly, we can save an args for btrfs_is_free_space_inode(). I see a great opportunity to rename the function :) It does not cover just the free space inode anymore and it'll be more confusing

Re: [PATCH 2/2] Btrfs: kill root from btrfs_is_free_space_inode

2012-07-17 Thread Liu Bo
On 07/17/2012 09:43 PM, David Sterba wrote: On Tue, Jul 10, 2012 at 07:28:39PM +0800, Liu Bo wrote: Since root can be fetched via BTRFS_I macro directly, we can save an args for btrfs_is_free_space_inode(). I see a great opportunity to rename the function :) It does not cover just the free

[PATCH 2/2] Btrfs: kill root from btrfs_is_free_space_inode

2012-07-10 Thread Liu Bo
Since root can be fetched via BTRFS_I macro directly, we can save an args for btrfs_is_free_space_inode(). Signed-off-by: Liu Bo liubo2...@cn.fujitsu.com --- fs/btrfs/btrfs_inode.h |5 +++-- fs/btrfs/extent-tree.c |2 +- fs/btrfs/file-item.c |2 +- fs/btrfs/inode.c | 22