Patch "btrfs: fix type of parameter generation in btrfs_get_dentry" has been added to the 6.0-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    btrfs: fix type of parameter generation in btrfs_get_dentry

to the 6.0-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     btrfs-fix-type-of-parameter-generation-in-btrfs_get_dentry.patch
and it can be found in the queue-6.0 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.


>From 2398091f9c2c8e0040f4f9928666787a3e8108a7 Mon Sep 17 00:00:00 2001
From: David Sterba <dsterba@xxxxxxxx>
Date: Tue, 18 Oct 2022 16:05:52 +0200
Subject: btrfs: fix type of parameter generation in btrfs_get_dentry

From: David Sterba <dsterba@xxxxxxxx>

commit 2398091f9c2c8e0040f4f9928666787a3e8108a7 upstream.

The type of parameter generation has been u32 since the beginning,
however all callers pass a u64 generation, so unify the types to prevent
potential loss.

CC: stable@xxxxxxxxxxxxxxx # 4.9+
Reviewed-by: Josef Bacik <josef@xxxxxxxxxxxxxx>
Signed-off-by: David Sterba <dsterba@xxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 fs/btrfs/export.c |    2 +-
 fs/btrfs/export.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

--- a/fs/btrfs/export.c
+++ b/fs/btrfs/export.c
@@ -58,7 +58,7 @@ static int btrfs_encode_fh(struct inode
 }
 
 struct dentry *btrfs_get_dentry(struct super_block *sb, u64 objectid,
-				u64 root_objectid, u32 generation,
+				u64 root_objectid, u64 generation,
 				int check_generation)
 {
 	struct btrfs_fs_info *fs_info = btrfs_sb(sb);
--- a/fs/btrfs/export.h
+++ b/fs/btrfs/export.h
@@ -19,7 +19,7 @@ struct btrfs_fid {
 } __attribute__ ((packed));
 
 struct dentry *btrfs_get_dentry(struct super_block *sb, u64 objectid,
-				u64 root_objectid, u32 generation,
+				u64 root_objectid, u64 generation,
 				int check_generation);
 struct dentry *btrfs_get_parent(struct dentry *child);
 


Patches currently in stable-queue which might be from dsterba@xxxxxxxx are

queue-6.0/btrfs-fix-ulist-leaks-in-error-paths-of-qgroup-self-.patch
queue-6.0/btrfs-fix-lost-file-sync-on-direct-io-write-with-nowait-and-dsync-iocb.patch
queue-6.0/btrfs-fix-type-of-parameter-generation-in-btrfs_get_dentry.patch
queue-6.0/btrfs-fix-inode-list-leak-during-backref-walking-at-.patch
queue-6.0/btrfs-don-t-use-btrfs_chunk-sub_stripes-from-disk.patch
queue-6.0/btrfs-fix-a-memory-allocation-failure-test-in-btrfs_submit_direct.patch
queue-6.0/btrfs-fix-tree-mod-log-mishandling-of-reallocated-nodes.patch
queue-6.0/btrfs-fix-inode-list-leak-during-backref-walking-at-.patch-31031



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux