mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
1a0507d878
- Don't update inode timestamps for direct writes (performance regression fix). - Skip no-op quota records instead of panicing. - Fix a RCU race in gfs2_permission(). - Various other smaller fixes and cleanups all over the place. -----BEGIN PGP SIGNATURE----- iQJIBAABCAAyFiEEJZs3krPW0xkhLMTc1b+f6wMTZToFAmVKReAUHGFncnVlbmJh QHJlZGhhdC5jb20ACgkQ1b+f6wMTZTqZ0Q//RigZFdejtWEJ2GnrZfHCRxXXjF7A uXyK8PKv6xaHmF+I4PcEr/5yBkOxPhld0sBcsqdNUlvFbEl4AqLrXoSTMB2Fbq2h ycPTSPdGTFWjFJBIpN5F1LOQ0urxuS+fKkmxruaFwNywZqbPY0fYs7ZN5K76y0cL OKBcbOg5Q39Z+fqrxB0mf7WNIBfUxAsdelGQM3VK1ptNNxebmvBdNaWIhG7vWyWm MpWpPRwm906tOrMwhmy1oCCY6RrVC2naLlROOi58iodQ9sIF4MqmKOoejbbll6BH 1XMtOPQfO+IWWhq0/AX/xBL+nxuukko6V72Qg15e4sDhbla+vYrYEs4P+MZ5UU0u dM1MxnmV3xjKBw8KrnwMZL88ExuBhm6HLzKWlshJ4wye21Y3s2OKA2zCK2u3NBc3 GwYtNLBidoe8TjVD0ZeKeQJt2nZeKRrIWqQteaTHYpLHlRzCajEpmFS+ejEu59WC 8qw8MjTR2P6m8bPYNTbvxh6Lw4cE6ZHCj71nSPwrEDeU2QPQAmMKQg0bgTM7vpU7 HKl92Av20xhM+vyb/N670KcR/4yXEkUtbOzazyj/r/XB361luCFP9D9dRiNl7tOo TU0otksrkjJ7QrnVd3XUrA2N7iQEIeCVcx0k+KTGrJh7+yVzbUKaJ5W4Tsd+TVzB h/lfHAYS4FTd8nA= =YfOA -----END PGP SIGNATURE----- Merge tag 'gfs2-v6.6-rc2-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2 Pull gfs2 updates from Andreas Gruenbacher: - Don't update inode timestamps for direct writes (performance regression fix) - Skip no-op quota records instead of panicing - Fix a RCU race in gfs2_permission() - Various other smaller fixes and cleanups all over the place * tag 'gfs2-v6.6-rc2-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2: (24 commits) gfs2: don't withdraw if init_threads() got interrupted gfs2: remove dead code in add_to_queue gfs2: Fix slab-use-after-free in gfs2_qd_dealloc gfs2: Silence "suspicious RCU usage in gfs2_permission" warning gfs2: fs: derive f_fsid from s_uuid gfs2: No longer use 'extern' in function declarations gfs2: Rename gfs2_lookup_{ simple => meta } gfs2: Convert gfs2_internal_read to folios gfs2: Convert stuffed_readpage to folios gfs2: Minor gfs2_write_jdata_batch PAGE_SIZE cleanup gfs2: Get rid of gfs2_alloc_blocks generation parameter gfs2: Add metapath_dibh helper gfs2: Clean up quota.c:print_message gfs2: Clean up gfs2_alloc_parms initializers gfs2: Two quota=account mode fixes gfs2: Stop using GFS2_BASIC_BLOCK and GFS2_BASIC_BLOCK_SHIFT gfs2: setattr_chown: Add missing initialization gfs2: fix an oops in gfs2_permission gfs2: ignore negated quota changes gfs2: Don't update inode timestamps for direct writes ...
68 lines
2.2 KiB
C
68 lines
2.2 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
|
|
* Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved.
|
|
*/
|
|
|
|
#ifndef __SUPER_DOT_H__
|
|
#define __SUPER_DOT_H__
|
|
|
|
#include <linux/fs.h>
|
|
#include <linux/dcache.h>
|
|
#include "incore.h"
|
|
|
|
/* Supported fs format version range */
|
|
#define GFS2_FS_FORMAT_MIN (1801)
|
|
#define GFS2_FS_FORMAT_MAX (1802)
|
|
|
|
void gfs2_lm_unmount(struct gfs2_sbd *sdp);
|
|
|
|
static inline unsigned int gfs2_jindex_size(struct gfs2_sbd *sdp)
|
|
{
|
|
unsigned int x;
|
|
spin_lock(&sdp->sd_jindex_spin);
|
|
x = sdp->sd_journals;
|
|
spin_unlock(&sdp->sd_jindex_spin);
|
|
return x;
|
|
}
|
|
|
|
void gfs2_jindex_free(struct gfs2_sbd *sdp);
|
|
|
|
struct gfs2_jdesc *gfs2_jdesc_find(struct gfs2_sbd *sdp, unsigned int jid);
|
|
int gfs2_jdesc_check(struct gfs2_jdesc *jd);
|
|
int gfs2_lookup_in_master_dir(struct gfs2_sbd *sdp, char *filename,
|
|
struct gfs2_inode **ipp);
|
|
|
|
int gfs2_make_fs_rw(struct gfs2_sbd *sdp);
|
|
void gfs2_make_fs_ro(struct gfs2_sbd *sdp);
|
|
void gfs2_online_uevent(struct gfs2_sbd *sdp);
|
|
void gfs2_destroy_threads(struct gfs2_sbd *sdp);
|
|
int gfs2_statfs_init(struct gfs2_sbd *sdp);
|
|
void gfs2_statfs_change(struct gfs2_sbd *sdp, s64 total, s64 free,
|
|
s64 dinodes);
|
|
void gfs2_statfs_change_in(struct gfs2_statfs_change_host *sc,
|
|
const void *buf);
|
|
void gfs2_statfs_change_out(const struct gfs2_statfs_change_host *sc,
|
|
void *buf);
|
|
void update_statfs(struct gfs2_sbd *sdp, struct buffer_head *m_bh);
|
|
int gfs2_statfs_sync(struct super_block *sb, int type);
|
|
void gfs2_freeze_func(struct work_struct *work);
|
|
void gfs2_thaw_freeze_initiator(struct super_block *sb);
|
|
|
|
void free_local_statfs_inodes(struct gfs2_sbd *sdp);
|
|
struct inode *find_local_statfs_inode(struct gfs2_sbd *sdp,
|
|
unsigned int index);
|
|
void free_sbd(struct gfs2_sbd *sdp);
|
|
|
|
extern struct file_system_type gfs2_fs_type;
|
|
extern struct file_system_type gfs2meta_fs_type;
|
|
extern const struct export_operations gfs2_export_ops;
|
|
extern const struct super_operations gfs2_super_ops;
|
|
extern const struct dentry_operations gfs2_dops;
|
|
|
|
extern const struct xattr_handler * const gfs2_xattr_handlers_max[];
|
|
extern const struct xattr_handler * const *gfs2_xattr_handlers_min;
|
|
|
|
#endif /* __SUPER_DOT_H__ */
|
|
|