btrfs: update comment for fields in btrfs_root
PATCH 1/1 btrfs: update comment for fields in btrfs_root
The inode_lock field of struct btrfs_root was removed in
commit e2844cce75c9e61("btrfs: remove inode_lock from struct btrfs_root and use xarray locks") but the related comment is not updated.
Signed-off-by Sun YangKai <[email protected]>
--- fs/btrfs/ctree.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-)
fs/btrfs/ctree.h +2 -8
@@ -224,16 +224,10 @@ struct btrfs_root {struct list_head root_list; -/* -* Xarray that keeps track of in-memory inodes, protected by the lock -* @inode_lock. -*/ +/* Xarray that keeps track of in-memory inodes. */ struct xarray inodes; -/* -* Xarray that keeps track of delayed nodes of every inode, protected -* by @inode_lock. -*/ +/* Xarray that keeps track of delayed nodes of every inode. */ struct xarray delayed_nodes;/* * right now this just gets used so that a root has its own devid
Signature · 1 line
2.49.0
Quoted 6 lines · Sun YangKai
The
inode_lockfield of structbtrfs_rootwas removed in
commite2844cce75c9e61("btrfs: remove inode_lock from struct btrfs_root and use xarray locks")but the related comment is not updated.Signed-off-by Sun YangKai <[email protected]>
Reviewed-by Filipe Manana <[email protected]>
Looks good, thanks.
Quoted 31 lines
--- fs/btrfs/ctree.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-)fs/btrfs/ctree.h +2
-9@@ -224,16 +224,10 @@ struct btrfs_root {struct list_head root_list; -/* -* Xarray that keeps track of in-memory inodes, protected by the lock -* @inode_lock. -*/ +/* Xarray that keeps track of in-memory inodes. */ struct xarray inodes; -/* -* Xarray that keeps track of delayed nodes of every inode, protected -* by @inode_lock. -*/ +/* Xarray that keeps track of delayed nodes of every inode. */ struct xarray delayed_nodes;/* * right now this just gets used so that a root has its own devid -- 2.49.0
Quoted 5 lines · Sun YangKai
The
inode_lockfield of structbtrfs_rootwas removed in
commite2844cce75c9e61("btrfs: remove inode_lock from struct btrfs_root and use xarray locks")but the related comment is not updated.Signed-off-by Sun YangKai <[email protected]>
Added to for-next, thanks.