You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
nilfs2: move next generation counter into nilfs object
Moves s_next_generation counter and a spinlock protecting it to nilfs object from nilfs_sb_info structure. Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
This commit is contained in:
@@ -43,7 +43,6 @@
|
||||
#include <linux/init.h>
|
||||
#include <linux/blkdev.h>
|
||||
#include <linux/parser.h>
|
||||
#include <linux/random.h>
|
||||
#include <linux/crc32.h>
|
||||
#include <linux/vfs.h>
|
||||
#include <linux/writeback.h>
|
||||
@@ -943,16 +942,6 @@ nilfs_fill_super(struct super_block *sb, void *data, int silent)
|
||||
if (err)
|
||||
goto failed_nilfs;
|
||||
|
||||
/*
|
||||
* Following initialization is overlapped because
|
||||
* nilfs_sb_info structure has been cleared at the beginning.
|
||||
* But we reserve them to keep our interest and make ready
|
||||
* for the future change.
|
||||
*/
|
||||
get_random_bytes(&sbi->s_next_generation,
|
||||
sizeof(sbi->s_next_generation));
|
||||
spin_lock_init(&sbi->s_next_gen_lock);
|
||||
|
||||
sb->s_op = &nilfs_sops;
|
||||
sb->s_export_op = &nilfs_export_ops;
|
||||
sb->s_root = NULL;
|
||||
|
||||
Reference in New Issue
Block a user