mm/vmstat: Standardize file operations variable names
Subsystems (2)
PATCH 1/1 mm/vmstat: Standardize file operations variable names
Standardized the file operation variable names related to all four memory management /proc interface files. Also changed all the symbol permissions (S_IRUGO) into octal permissions (0444) as it got complains from checkpatch.pl script. This does not create any functional change to the interface.
Signed-off-by Anshuman Khandual <[email protected]>
--- mm/vmstat.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
mm/vmstat.c +8 -8
@@ -1318,7 +1318,7 @@ static int fragmentation_open(struct inode *inode, struct file *file)return seq_open (file, &fragmentation_op); } -static const struct file_operations fragmentation_file_operations = { +static const struct file_operations buddyinfo_file_operations = { .open = fragmentation_open, .read = seq_read, .llseek = seq_lseek,
@@ -1337,7 +1337,7 @@ static int pagetypeinfo_open(struct inode *inode, struct file *file)return seq_open (file, &pagetypeinfo_op); } -static const struct file_operations pagetypeinfo_file_ops = { +static const struct file_operations pagetypeinfo_file_operations = { .open = pagetypeinfo_open, .read = seq_read, .llseek = seq_lseek,
@@ -1454,7 +1454,7 @@ static int zoneinfo_open(struct inode *inode, struct file *file)return seq_open (file, &zoneinfo_op); } -static const struct file_operations proc_zoneinfo_file_operations = { +static const struct file_operations zoneinfo_file_operations = { .open = zoneinfo_open, .read = seq_read, .llseek = seq_lseek,
@@ -1543,7 +1543,7 @@ static int vmstat_open(struct inode *inode, struct file *file)return seq_open (file, &vmstat_op); } -static const struct file_operations proc_vmstat_file_operations = { +static const struct file_operations vmstat_file_operations = { .open = vmstat_open, .read = seq_read, .llseek = seq_lseek,
@@ -1789,10 +1789,10 @@ void __init init_mm_internals(void)start_shepherd_timer ();#endif #ifdef CONFIG_PROC_FS -proc_create ("buddyinfo" ,S_IRUGO ,NULL , &fragmentation_file_operations); -proc_create ("pagetypeinfo" ,S_IRUGO ,NULL , &pagetypeinfo_file_ops); -proc_create ("vmstat" ,S_IRUGO ,NULL , &proc_vmstat_file_operations); -proc_create ("zoneinfo" ,S_IRUGO ,NULL , &proc_zoneinfo_file_operations); +proc_create ("buddyinfo" ,0444 ,NULL , &buddyinfo_file_operations); +proc_create ("pagetypeinfo" ,0444 ,NULL , &pagetypeinfo_file_operations); +proc_create ("vmstat" ,0444 ,NULL , &vmstat_file_operations); +proc_create ("zoneinfo" ,0444 ,NULL , &zoneinfo_file_operations);#endif }
Signature · 7 lines
1.8.5.2 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>