Skip to content

Commit 3644286

Browse files
committed
Merge tag 'fsnotify_for_v5.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs
Pull fsnotify updates from Jan Kara: - support for limited fanotify functionality for unpriviledged users - faster merging of fanotify events - a few smaller fsnotify improvements * tag 'fsnotify_for_v5.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs: shmem: allow reporting fanotify events with file handles on tmpfs fs: introduce a wrapper uuid_to_fsid() fanotify_user: use upper_32_bits() to verify mask fanotify: support limited functionality for unprivileged users fanotify: configurable limits via sysfs fanotify: limit number of event merge attempts fsnotify: use hash table for faster events merge fanotify: mix event info and pid into merge key hash fanotify: reduce event objectid to 29-bit hash fsnotify: allow fsnotify_{peek,remove}_first_event with empty queue
2 parents 767fcbc + 59cda49 commit 3644286

File tree

20 files changed

+472
-161
lines changed

20 files changed

+472
-161
lines changed

fs/ext2/super.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1399,7 +1399,6 @@ static int ext2_statfs (struct dentry * dentry, struct kstatfs * buf)
13991399
struct super_block *sb = dentry->d_sb;
14001400
struct ext2_sb_info *sbi = EXT2_SB(sb);
14011401
struct ext2_super_block *es = sbi->s_es;
1402-
u64 fsid;
14031402

14041403
spin_lock(&sbi->s_lock);
14051404

@@ -1453,9 +1452,7 @@ static int ext2_statfs (struct dentry * dentry, struct kstatfs * buf)
14531452
buf->f_ffree = ext2_count_free_inodes(sb);
14541453
es->s_free_inodes_count = cpu_to_le32(buf->f_ffree);
14551454
buf->f_namelen = EXT2_NAME_LEN;
1456-
fsid = le64_to_cpup((void *)es->s_uuid) ^
1457-
le64_to_cpup((void *)es->s_uuid + sizeof(u64));
1458-
buf->f_fsid = u64_to_fsid(fsid);
1455+
buf->f_fsid = uuid_to_fsid(es->s_uuid);
14591456
spin_unlock(&sbi->s_lock);
14601457
return 0;
14611458
}

fs/ext4/super.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6153,7 +6153,6 @@ static int ext4_statfs(struct dentry *dentry, struct kstatfs *buf)
61536153
struct ext4_sb_info *sbi = EXT4_SB(sb);
61546154
struct ext4_super_block *es = sbi->s_es;
61556155
ext4_fsblk_t overhead = 0, resv_blocks;
6156-
u64 fsid;
61576156
s64 bfree;
61586157
resv_blocks = EXT4_C2B(sbi, atomic64_read(&sbi->s_resv_clusters));
61596158

@@ -6174,9 +6173,7 @@ static int ext4_statfs(struct dentry *dentry, struct kstatfs *buf)
61746173
buf->f_files = le32_to_cpu(es->s_inodes_count);
61756174
buf->f_ffree = percpu_counter_sum_positive(&sbi->s_freeinodes_counter);
61766175
buf->f_namelen = EXT4_NAME_LEN;
6177-
fsid = le64_to_cpup((void *)es->s_uuid) ^
6178-
le64_to_cpup((void *)es->s_uuid + sizeof(u64));
6179-
buf->f_fsid = u64_to_fsid(fsid);
6176+
buf->f_fsid = uuid_to_fsid(es->s_uuid);
61806177

61816178
#ifdef CONFIG_QUOTA
61826179
if (ext4_test_inode_flag(dentry->d_inode, EXT4_INODE_PROJINHERIT) &&

0 commit comments

Comments
 (0)