]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: do not check -EAGAIN when truncating inodes in the log root
authorJosef Bacik <josef@toxicpanda.com>
Fri, 3 Dec 2021 22:18:20 +0000 (17:18 -0500)
committerDavid Sterba <dsterba@suse.com>
Fri, 7 Jan 2022 13:18:25 +0000 (14:18 +0100)
commitdfe4be968f017f1a53c791149082ee1d03c06495
tree880a3c66168cabaf9b06a6ffd2f6299f8777d272
parent8497f21817094068c37115f9d6b8efe48acbc36f
btrfs: do not check -EAGAIN when truncating inodes in the log root

We only throttle the btrfs_truncate_inode_items if the root is
SHAREABLE, which isn't set on the log root, which means this loop is
unnecessary.

Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/tree-log.c