Skip to content

Commit 0d54b21

Browse files
Alexey Dobriyantorvalds
Alexey Dobriyan
authored andcommitted
const: make struct super_block::s_qcop const
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 61e225d commit 0d54b21

File tree

10 files changed

+11
-11
lines changed

10 files changed

+11
-11
lines changed

fs/cifs/cifsfs.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
#define CIFS_MAGIC_NUMBER 0xFF534D42 /* the first four bytes of SMB PDUs */
5151

5252
#ifdef CONFIG_CIFS_QUOTA
53-
static struct quotactl_ops cifs_quotactl_ops;
53+
static const struct quotactl_ops cifs_quotactl_ops;
5454
#endif /* QUOTA */
5555

5656
int cifsFYI = 0;
@@ -517,7 +517,7 @@ int cifs_xstate_get(struct super_block *sb, struct fs_quota_stat *qstats)
517517
return rc;
518518
}
519519

520-
static struct quotactl_ops cifs_quotactl_ops = {
520+
static const struct quotactl_ops cifs_quotactl_ops = {
521521
.set_xquota = cifs_xquota_set,
522522
.get_xquota = cifs_xquota_get,
523523
.set_xstate = cifs_xstate_set,

fs/ext3/super.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ static const struct dquot_operations ext3_quota_operations = {
737737
.destroy_dquot = dquot_destroy,
738738
};
739739

740-
static struct quotactl_ops ext3_qctl_operations = {
740+
static const struct quotactl_ops ext3_qctl_operations = {
741741
.quota_on = ext3_quota_on,
742742
.quota_off = vfs_quota_off,
743743
.quota_sync = vfs_quota_sync,

fs/ext4/super.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,7 @@ static const struct dquot_operations ext4_quota_operations = {
985985
.destroy_dquot = dquot_destroy,
986986
};
987987

988-
static struct quotactl_ops ext4_qctl_operations = {
988+
static const struct quotactl_ops ext4_qctl_operations = {
989989
.quota_on = ext4_quota_on,
990990
.quota_off = vfs_quota_off,
991991
.quota_sync = vfs_quota_sync,

fs/ocfs2/super.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@ static int ocfs2_quota_off(struct super_block *sb, int type, int remount)
965965
return vfs_quota_disable(sb, type, DQUOT_LIMITS_ENABLED);
966966
}
967967

968-
static struct quotactl_ops ocfs2_quotactl_ops = {
968+
static const struct quotactl_ops ocfs2_quotactl_ops = {
969969
.quota_on = ocfs2_quota_on,
970970
.quota_off = ocfs2_quota_off,
971971
.quota_sync = vfs_quota_sync,

fs/quota/dquot.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2461,7 +2461,7 @@ int vfs_set_dqinfo(struct super_block *sb, int type, struct if_dqinfo *ii)
24612461
}
24622462
EXPORT_SYMBOL(vfs_set_dqinfo);
24632463

2464-
struct quotactl_ops vfs_quotactl_ops = {
2464+
const struct quotactl_ops vfs_quotactl_ops = {
24652465
.quota_on = vfs_quota_on,
24662466
.quota_off = vfs_quota_off,
24672467
.quota_sync = vfs_quota_sync,

fs/reiserfs/super.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ static const struct dquot_operations reiserfs_quota_operations = {
629629
.destroy_dquot = dquot_destroy,
630630
};
631631

632-
static struct quotactl_ops reiserfs_qctl_operations = {
632+
static const struct quotactl_ops reiserfs_qctl_operations = {
633633
.quota_on = reiserfs_quota_on,
634634
.quota_off = vfs_quota_off,
635635
.quota_sync = vfs_quota_sync,

fs/xfs/linux-2.6/xfs_quotaops.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ xfs_fs_set_xquota(
150150
return -xfs_qm_scall_setqlim(mp, id, xfs_quota_type(type), fdq);
151151
}
152152

153-
struct quotactl_ops xfs_quotactl_operations = {
153+
const struct quotactl_ops xfs_quotactl_operations = {
154154
.quota_sync = xfs_fs_quota_sync,
155155
.get_xstate = xfs_fs_get_xstate,
156156
.set_xstate = xfs_fs_set_xstate,

fs/xfs/linux-2.6/xfs_super.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ extern void xfs_blkdev_issue_flush(struct xfs_buftarg *);
9393

9494
extern const struct export_operations xfs_export_operations;
9595
extern struct xattr_handler *xfs_xattr_handlers[];
96-
extern struct quotactl_ops xfs_quotactl_operations;
96+
extern const struct quotactl_ops xfs_quotactl_operations;
9797

9898
#define XFS_M(sb) ((struct xfs_mount *)((sb)->s_fs_info))
9999

include/linux/fs.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1319,7 +1319,7 @@ struct super_block {
13191319
struct file_system_type *s_type;
13201320
const struct super_operations *s_op;
13211321
const struct dquot_operations *dq_op;
1322-
struct quotactl_ops *s_qcop;
1322+
const struct quotactl_ops *s_qcop;
13231323
const struct export_operations *s_export_op;
13241324
unsigned long s_flags;
13251325
unsigned long s_magic;

include/linux/quotaops.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ static inline int sb_any_quota_active(struct super_block *sb)
136136
* Operations supported for diskquotas.
137137
*/
138138
extern const struct dquot_operations dquot_operations;
139-
extern struct quotactl_ops vfs_quotactl_ops;
139+
extern const struct quotactl_ops vfs_quotactl_ops;
140140

141141
#define sb_dquot_ops (&dquot_operations)
142142
#define sb_quotactl_ops (&vfs_quotactl_ops)

0 commit comments

Comments
 (0)