[lvc-project] [PATCH 5.10 2/2] hugetlbfs: fix hugetlbfs_statfs() locking
Fedor Pchelkin
pchelkin at ispras.ru
Thu Jun 27 10:46:11 MSK 2024
On Wed, 26. Jun 23:44, Mikhail Ukhin wrote:
> diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c
> index bf3cda498962..b6440007116e 100644
> --- a/fs/hugetlbfs/inode.c
> +++ b/fs/hugetlbfs/inode.c
> @@ -1069,12 +1069,12 @@ static int hugetlbfs_statfs(struct dentry *dentry, struct kstatfs *buf)
> if (sbinfo->spool) {
> long free_pages;
>
> - spin_lock(&sbinfo->spool->lock);
> + spin_lock_irq(&sbinfo->spool->lock);
Для этого патча также наблюдаются проблемы с отступами, что не позволяет
его применить к целевой ветке.
> buf->f_blocks = sbinfo->spool->max_hpages;
> free_pages = sbinfo->spool->max_hpages
> - sbinfo->spool->used_hpages;
> buf->f_bavail = buf->f_bfree = free_pages;
> - spin_unlock(&sbinfo->spool->lock);
> + spin_unlock_irq(&sbinfo->spool->lock);
> buf->f_files = sbinfo->max_inodes;
> buf->f_ffree = sbinfo->free_inodes;
> }
> --
> 2.25.1
>
>
More information about the lvc-project
mailing list